/**
 * Variant CSS: gallery--carousel-scroll-snap
 * Layer 2 (Path B gallery role, 2026-05-28).
 * Horizontal CSS scroll-snap strip, hidden scrollbar, no JS.
 */

body.aibt-universal .universal-gallery--carousel-scroll-snap {
	background: var(--background);
	color: var(--text-primary);
}

body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__intro {
	margin-bottom: var(--space-xl);
}

body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-gallery--carousel-scroll-snap h2.universal-gallery__headline,
body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* Horizontal snap track. Negative inline margin + padding lets the strip bleed
   to the viewport edge so the last/first slide hints at more content. */
body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: var(--space-sm);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scroll-padding-left: 0;
	padding-bottom: var(--space-xs);
	/* Hide scrollbar (Firefox). */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

/* Hide scrollbar (WebKit/Blink). */
body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__track::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__slide {
	margin: 0 !important;
	flex: 0 0 clamp(280px, 42vw, 460px);
	scroll-snap-align: start;
	overflow: hidden;
	border-radius: var(--decor-radius);
}

body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__slide img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-medium, 360ms) var(--ease-elegant, ease);
}

body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__slide:hover img {
	transform: scale(1.04);
}

@media (max-width: 781px) {
	body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__slide {
		flex-basis: 78vw;
	}
	body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__slide img {
		aspect-ratio: 4 / 5;
	}
}

/* Drop wide uppercase tracking on small screens so the short kicker stays tight. */
@media (max-width: 640px) {
	body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__kicker {
		letter-spacing: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__track {
		scroll-behavior: auto;
	}
	body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__slide img {
		transition: none;
	}
	body.aibt-universal .universal-gallery--carousel-scroll-snap .universal-gallery__slide:hover img {
		transform: none;
	}
}
