/* =========================================================
   Evenementen Kaarten Carousel
   Visueel afgestemd op de aangeleverde afbeelding.
   ========================================================= */

.evkc-events {
	--evkc-ink: #6d1119;
	--evkc-body: #173c63;
	--evkc-border: #e8e8e6;
	--evkc-gap: 32px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.evkc-viewport {
	width: 100%;
	overflow: hidden;
}

.evkc-track {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--evkc-gap);
}

.evkc-is-carousel .evkc-track {
	display: flex;
	gap: var(--evkc-gap);
	will-change: transform;
	transition: transform .35s ease;
}

.evkc-is-carousel .evkc-card {
	flex: 0 0 calc((100% - (2 * var(--evkc-gap))) / 3);
}

.evkc-card {
	min-width: 0;
	background: #fff;
	border: 1px solid var(--evkc-border);
	box-sizing: border-box;
	overflow: hidden;
}

.evkc-card__head {
	padding: 31px 31px 29px;
	min-height: 132px;
	box-sizing: border-box;
}

.evkc-card__date {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--evkc-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	white-space: nowrap;
}

.evkc-calendar {
	position: relative;
	display: inline-block;
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	border: 2px solid var(--evkc-ink);
	box-sizing: border-box;
}

.evkc-calendar::before,
.evkc-calendar::after {
	content: "";
	position: absolute;
	top: -4px;
	width: 2px;
	height: 5px;
	background: var(--evkc-ink);
}

.evkc-calendar::before { left: 2px; }
.evkc-calendar::after { right: 2px; }

.evkc-card__title {
	margin: 23px 0 0;
	color: var(--evkc-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.18;
}

.evkc-card__image {
	width: 100%;
	aspect-ratio: 1.77 / 1;
	background: #ddd;
	overflow: hidden;
}

.evkc-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.evkc-card__body {
	padding: 30px 31px 32px;
	box-sizing: border-box;
}

.evkc-card__body p {
	margin: 0 0 22px;
	color: var(--evkc-body);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	line-height: 1.38;
}

.evkc-readmore {
	display: inline-block;
	color: var(--evkc-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 3px;
}

.evkc-readmore:hover {
	text-decoration: none;
	opacity: .75;
}

.evkc-readmore span {
	margin-left: 5px;
}

.evkc-carousel-controls {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin: 0 0 14px;
}

.evkc-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--evkc-ink);
	border-radius: 50%;
	background: #fff;
	color: var(--evkc-ink);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.evkc-arrow:hover:not(:disabled) {
	background: var(--evkc-ink);
	color: #fff;
}

.evkc-arrow:disabled {
	opacity: .3;
	cursor: default;
}

.evkc-carousel-status {
	margin-top: 12px;
	text-align: center;
	color: var(--evkc-body);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13px;
}

.evkc-empty {
	padding: 25px;
	border: 1px solid var(--evkc-border);
	background: #fff;
	color: var(--evkc-body);
	font-family: Georgia, "Times New Roman", serif;
}

/* On smaller screens the carousel still scrolls horizontally when there
   are more than 3 active events, while showing fewer cards at once. */
@media (max-width: 1024px) {
	.evkc-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.evkc-is-carousel .evkc-card {
		flex-basis: calc((100% - var(--evkc-gap)) / 2);
	}
}

@media (max-width: 640px) {
	.evkc-track {
		grid-template-columns: 1fr;
	}

	.evkc-is-carousel .evkc-card {
		flex-basis: 100%;
	}

	.evkc-card__head {
		padding: 24px 22px 23px;
		min-height: 0;
	}

	.evkc-card__date {
		font-size: 12px;
		white-space: normal;
	}

	.evkc-card__title {
		margin-top: 17px;
		font-size: 20px;
	}

	.evkc-card__body {
		padding: 24px 22px 27px;
	}

	.evkc-card__body p {
		font-size: 16px;
	}

	.evkc-carousel-controls {
		margin-bottom: 12px;
	}
}
