/**
 * Simple Carousel – front-end (geen externe libs)
 */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.sc-carousel-wrapper {
	width: 100%;
	max-width: 100%;
	height: var(--sc-h-m, min(70vw, 320px));
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

/* Beeldverhouding (breedte 100%, hoogte volgt ratio) — zie carrousel bewerken */
.sc-carousel-wrapper.sc-size-aspect {
	height: auto;
	aspect-ratio: var(--sc-aspect, 16 / 9);
}

@media (min-width: 768px) {
	.sc-carousel-wrapper {
		height: var(--sc-h-t, 420px);
	}

	.sc-carousel-wrapper.sc-size-aspect {
		height: auto;
		aspect-ratio: var(--sc-aspect, 16 / 9);
	}
}

@media (min-width: 1024px) {
	.sc-carousel-wrapper {
		height: var(--sc-h-d, 520px);
	}

	.sc-carousel-wrapper.sc-size-aspect {
		height: auto;
		aspect-ratio: var(--sc-aspect, 16 / 9);
	}
}

/* Zichtbaarheid per scherm (block: verbergen op …). Zelfde breakpoints als hoogtes. */
@media (max-width: 767px) {
	.sc-carousel-wrapper.sc-hide-bp-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.sc-carousel-wrapper.sc-hide-bp-tablet {
		display: none !important;
	}
}

@media (min-width: 1024px) {
	.sc-carousel-wrapper.sc-hide-bp-desktop {
		display: none !important;
	}
}

.sc-carousel {
	position: relative;
	width: 100%;
	height: 100%;
}

.sc-carousel__track {
	position: relative;
	width: 100%;
	height: 100%;
	outline: none;
}

.sc-carousel__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	box-sizing: border-box;
}

.sc-carousel__slide[hidden] {
	display: none !important;
}

.sc-carousel__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #1a1a1a;
}

.sc-carousel__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.sc-carousel__overlay {
	position: absolute;
	inset: 0;
	display: block;
	padding: clamp(12px, 4vw, 40px);
	box-sizing: border-box;
	pointer-events: none;
}

/* Verloop volgens verticale positie (--sc-pl-y); klassen zet de server */
.sc-carousel.sc-grad-btm .sc-carousel__overlay {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08) 55%, transparent);
}

.sc-carousel.sc-grad-top .sc-carousel__overlay {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08) 55%, transparent);
}

.sc-carousel.sc-grad-mid .sc-carousel__overlay {
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.42) 50%, transparent);
}

.sc-carousel[data-sc-click="button"] .sc-carousel__overlay {
	pointer-events: auto;
}

.sc-carousel__full-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: auto;
}

.sc-carousel__content {
	position: absolute;
	z-index: 2;
	left: calc(var(--sc-pl-x, 8) * 1%);
	bottom: calc(var(--sc-pl-y, 12) * 1%);
	right: auto;
	top: auto;
	max-width: min(36em, 92%);
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.35em;
}

.sc-carousel__text {
	width: 100%;
}

.sc-carousel[data-sc-click="button"] .sc-carousel__content {
	pointer-events: auto;
}

.sc-carousel__title {
	margin: 0 0 0.35em;
	font-size: calc(clamp(1.25rem, 2.8vw, 2rem) * var(--sc-scale-title, 1));
	line-height: 1.15;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sc-carousel__subtitle {
	margin: 0;
	font-size: calc(clamp(0.9rem, 1.6vw, 1.05rem) * var(--sc-scale-sub, 1));
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sc-carousel__text .sc-carousel__subtitle:last-child {
	margin-bottom: 0;
}

.sc-carousel__btn {
	display: inline-block;
	padding: calc(0.55em * var(--sc-scale-btn, 1)) calc(1.15em * var(--sc-scale-btn, 1));
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: calc(0.95rem * var(--sc-scale-btn, 1));
	line-height: 1.2;
	background: var(--sc-btn-bg, #222);
	color: var(--sc-btn-fg, #fff);
	border: none;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.sc-carousel__btn:hover,
.sc-carousel__btn:focus-visible {
	opacity: 0.92;
	transform: translateY(-1px);
}

.sc-carousel__btn--static,
.sc-carousel__btn--look {
	cursor: default;
}

.sc-carousel__btn--look {
	pointer-events: none;
}

.sc-carousel[data-sc-click="full"] .sc-carousel__btn--look {
	pointer-events: none;
}

.sc-carousel__prev,
.sc-carousel__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.sc-carousel__prev:hover,
.sc-carousel__next:hover,
.sc-carousel__prev:focus-visible,
.sc-carousel__next:focus-visible {
	background: rgba(0, 0, 0, 0.65);
}

.sc-carousel__prev {
	left: 8px;
}

.sc-carousel__next {
	right: 8px;
}

.sc-carousel__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	align-items: center;
	pointer-events: auto;
}

.sc-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.sc-carousel__dot[aria-selected="true"] {
	background: #fff;
	transform: scale(1.15);
}

.sc-carousel__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.sc-carousel__btn,
	.sc-carousel__dot,
	.sc-carousel__prev,
	.sc-carousel__next {
		transition: none;
	}
}
