/*
 * Galerij-stijl "Carrousel": één foto tegelijk met pijltjes naast de foto
 * en bolletjes eronder, zoals op de oude site.
 * Alleen op de website zelf; in de editor zie je de foto's als gewone galerij.
 */

.hesha-carrousel {
	position: relative;
	min-width: 0;
	max-width: min(900px, 100%);
	margin: 1.5rem auto;
}

.hesha-carrousel .wp-block-gallery.is-style-carrousel {
	display: flex;
	flex-wrap: nowrap;
	gap: 0 !important;
	margin: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hesha-carrousel .wp-block-gallery.is-style-carrousel::-webkit-scrollbar {
	display: none;
}

.hesha-carrousel .wp-block-gallery.is-style-carrousel > figure.wp-block-image {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.hesha-carrousel .wp-block-gallery.is-style-carrousel > figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover !important;
	flex: none !important;
}

.hesha-carrousel .wp-block-gallery.is-style-carrousel > figure.wp-block-image figcaption {
	position: static !important;
	background: none !important;
	color: var(--wp--preset--color--grijs) !important;
	text-shadow: none !important;
	text-align: center;
	padding: 6px 0 0 !important;
	max-height: none !important;
	overflow: visible !important;
	font-size: 0.9em;
	line-height: 1.5;
	flex: none;
}

/* Pijltjes: dunne grijze chevrons naast de foto. */
.hesha-carrousel-knop {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 56px;
	padding: 0;
	border: 0;
	background: none;
	color: #6b6b6b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.hesha-carrousel-knop svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hesha-carrousel-knop:hover,
.hesha-carrousel-knop:focus-visible {
	color: var(--wp--preset--color--zwart);
}

.hesha-carrousel-knop.is-vorige {
	left: -54px;
}

.hesha-carrousel-knop.is-volgende {
	right: -54px;
}

/* Bolletjes onder de foto. */
.hesha-carrousel-bolletjes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 2px;
	margin-top: 8px;
}

.hesha-carrousel-bolletje {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hesha-carrousel-bolletje::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #555;
	transition: background 0.2s;
}

.hesha-carrousel-bolletje[aria-current="true"]::before {
	background: var(--wp--preset--color--lila);
}

/* Smallere schermen (en de kamerfoto's in een kolom): pijltjes óp de foto. */
@media (max-width: 1019px) {
	.hesha-carrousel-knop {
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: rgba(253, 250, 246, 0.85);
		color: var(--wp--preset--color--zwart);
	}

	.hesha-carrousel-knop svg {
		width: 18px;
		height: 18px;
	}

	.hesha-carrousel-knop.is-vorige {
		left: 10px;
	}

	.hesha-carrousel-knop.is-volgende {
		right: 10px;
	}
}

.wp-block-column .hesha-carrousel-knop {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(253, 250, 246, 0.85);
	color: var(--wp--preset--color--zwart);
}

.wp-block-column .hesha-carrousel-knop.is-vorige {
	left: 10px;
}

.wp-block-column .hesha-carrousel-knop.is-volgende {
	right: 10px;
}
