/* Bloc The Events Calendar « Évènements Sainte Famille » */
.crestois-family-events .crestois-family-events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding-inline: 3rem;
}

.crestois-family-events .crestois-family-event-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 4px solid var(--crestois-event-category-color, #d7a52b);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 5px 17px rgba(7, 26, 95, .09);
}

.crestois-family-events .crestois-family-event-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: calc(100% - 48px);
	aspect-ratio: 16 / 10;
	margin: 24px auto 0;
	overflow: hidden;
	background: #fff;
}

.crestois-family-events .crestois-family-event-card__image.is-placeholder {
	background: #f7f4ee;
}

.crestois-family-events .crestois-family-event-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.crestois-family-events .crestois-family-event-card__image span {
	display: block;
	width: 100%;
	height: 100%;
}

.crestois-family-events .crestois-family-event-card__image--under-title {
	width: 100%;
	margin: 0 0 20px;
}

.crestois-family-events .crestois-family-event-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 24px 25px;
}

.crestois-family-events .crestois-family-event-card__date,
.crestois-family-events .crestois-family-event-card__time,
.crestois-family-events .crestois-family-event-card__venue {
	margin: 0;
	line-height: 1.4;
}

.crestois-family-events .crestois-family-event-card__date {
	color: #8d6812;
	font-weight: 700;
}

.crestois-family-events .crestois-family-event-card__time,
.crestois-family-events .crestois-family-event-card__venue {
	color: #071a5f;
}

.crestois-family-events .crestois-family-event-card__venue {
	min-height: 1.4em;
	margin-bottom: 14px;
}

.crestois-family-events .crestois-family-event-card__title {
	margin: 0;
	padding: 0 0 14px;
	font-size: 1.35rem;
	line-height: 1.3;
}

.crestois-family-events .crestois-family-event-card__title a {
	color: #071a5f;
	text-decoration: none;
}

.crestois-family-events .crestois-family-event-card__title a:hover,
.crestois-family-events .crestois-family-event-card__title a:focus {
	text-decoration: underline;
}

.crestois-family-events .crestois-family-event-card__venue a {
	color: #071a5f;
	overflow-wrap: anywhere;
}

.crestois-family-events__notice {
	padding: 18px 20px;
	border-left: 5px solid #d7a52b;
	background: #f7f4ee;
	color: #071a5f;
}

.crestois-family-events-editor {
	padding: 28px;
	border: 1px solid #d7a52b;
	background: #f7f4ee;
	color: #071a5f;
	text-align: center;
}

.crestois-family-events-editor__icon {
	width: auto;
	height: auto;
	margin-bottom: 8px;
	font-size: 32px;
}

/* Accueil — OClocher conservé après retrait de l'ancien bloc Events List */
body.home iframe[src*="widget.oclocher.app/organization/"][src*="/news"] {
	display: block;
	width: 100%;
	height: 900px;
	border: 0;
}

body.home .crestois-oclocher-open {
	display: flex;
	width: fit-content;
	max-width: calc(100% - 3rem);
	margin: 20px auto 32px;
	padding: 10px 16px;
	border-radius: 4px;
	background: #071a5f;
	color: #fff !important;
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

@media (min-width: 922px) {
	body.home .crestois-oclocher-open {
		margin-bottom: 48px;
	}
}

@media (max-width: 921px) {
	.crestois-family-events .crestois-family-events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-inline: 2rem;
	}

	body.home iframe[src*="widget.oclocher.app/organization/"][src*="/news"] {
		height: 1320px;
	}
}

@media (max-width: 544px) {
	.crestois-family-events .crestois-family-events__grid {
		grid-template-columns: 1fr;
		gap: 20px;
		padding-inline: 1.5rem;
	}

	.crestois-family-events .crestois-family-event-card__image {
		width: calc(100% - 36px);
		margin-top: 18px;
	}

	.crestois-family-events .crestois-family-event-card__image--under-title {
		width: 100%;
		margin: 0 0 18px;
	}

	.crestois-family-events .crestois-family-event-card__content {
		padding: 18px 18px 22px;
	}

	body.home iframe[src*="widget.oclocher.app/organization/"][src*="/news"] {
		height: 2640px;
		pointer-events: none;
		touch-action: pan-y !important;
	}

	body.home .crestois-oclocher-open {
		text-align: left;
	}
}
