/* ==================================================
EVENT CARD
================================================== */
.event-card {
	width: 100%;
	min-width: 0;
	color: inherit;
}

/* ==================================================
LINK
================================================== */
.event-card__link {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: inherit;
	text-decoration: none;
}

/* ==================================================
CARD MEDIA
================================================== */
.event-card__media {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 30px;
}

/* 3 événements */
.event-card__media {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 30px;
	/* valeur par défaut partout */
	aspect-ratio: 4 / 3;
}

.event-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
	transform 350ms ease,
	filter 300ms ease;
}

/* HOME : 2 événements */
.home-events__list[data-count="2"] .event-card__media {
	aspect-ratio: 16 / 9;
}

/* HOME : 1 événement */
.home-events__list[data-count="1"] .event-card__media {
	aspect-ratio: 16 / 10;
}

.event-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
	transform 350ms ease,
	filter 300ms ease;
}

/* ==================================================
CARD BODY
================================================== */
.event-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ==================================================
TITLE
================================================== */
.event-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--geist);
	font-size: var(--wp--preset--font-size--card-title);
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

/* ==================================================
SEPARATORS
================================================== */
.event-card__separator {
	width: 100%;
	height: 2px;
	background: currentColor;
}

/* ==================================================
GUEST
================================================== */
.event-card__guest {
	margin: 0;
	line-height: 1.25;
	font-weight:500;
	font-size:16px;
}

/* ==================================================
META
================================================== */
.event-card__meta {
	display: flex;
	flex-direction:row;
	align-items: flex-end;
	gap: 16px;
	font-size:16px;
}

.event-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	line-height: 1.2;
	font-size:16px;
}

.event-card__meta-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

/* ==================================================
HOVER
================================================== */
.event-card__link:hover .event-card__image {
	transform: scale(1.03);
}

/* ==================================================
EVENT CARD - PAST
================================================== */
.event-card--past .event-card__image {
	filter: grayscale(1);
}

/* Badge */
.event-card__status {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 8px 14px;
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--dark-violet);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--geist);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

/* ==================================================
EVENT CARD - FEATURED
================================================== */
.event-card--featured .event-card__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: stretch;
}

.event-card--featured .event-card__media {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
}

.event-card--featured .event-card__body {
	justify-content: flex-start;
}

.event-card--featured .event-card__excerpt {
	margin: 0;
	line-height: 1.4;
}

@media (max-width: 782px) {
	.event-card--featured .event-card__link {
		grid-template-columns: 1fr;
	}

	.event-card--featured .event-card__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

}
