/**
 * Variant CSS: gallery--wide-strip-scroller
 *
 * Gallery as one full-bleed, edge-to-edge strip of wide 16:10 frames scrolled
 * horizontally with CSS scroll-snap (drag / swipe, zero JS) — plus a clear
 * "drag sideways" hint and a soft fade at both edges. Unlike grids, mosaics and
 * the static full-bleed band: panoramic frames glide like a film reel. The
 * scrollbar is hidden; an arrow next to the hint nudges to invite interaction.
 * Image src are swapped by the photo system. Part of the `gallery` role.
 */

body.aibt-universal .universal-gallery--wide-strip-scroller {
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
	overflow: hidden; /* contain the full-bleed strip; the strip itself scrolls */
}

/* Center every aligned-center text block in this variant. */
body.aibt-universal .universal-gallery--wide-strip-scroller .has-text-align-center {
	margin-inline: auto !important;
}

/* Intro. */
body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__intro {
	margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}

body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest, 0.18em) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 auto var(--space-sm, 0.6rem) auto !important;
}

body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

/* The strip — full-bleed horizontal scroller with scroll-snap. */
body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__strip {
	display: flex;
	flex-wrap: nowrap;
	gap: clamp(0.8rem, 1.8vw, 1.4rem);
	/* Inset first/last frames from the viewport edges. */
	padding-inline: clamp(1rem, 5vw, 4rem);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: clamp(1rem, 5vw, 4rem);
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none; /* Firefox */
	/* Soft fade at both edges. */
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

/* Hide scrollbar — WebKit. */
body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__strip::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

/* Keyboard focus ring on the scrollable strip (it can receive focus + arrow-scroll). */
body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__strip:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--decor-radius, 14px);
}

/* Each wide frame. */
body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__frame {
	flex: 0 0 clamp(280px, 64vw, 760px);
	margin: 0 !important;
	scroll-snap-align: center;
}

body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__frame img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--decor-radius, 14px);
	filter: var(--photo-filter, none);
	transition: transform var(--duration-slow, 500ms) var(--ease-expressive, ease);
}

body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__frame img:hover {
	transform: scale(1.02);
}

/* Drag hint — arrow + label, centered under the strip. */
body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__hint {
	align-items: center;
	gap: 0.5rem;
	margin-top: clamp(1.1rem, 2.6vw, 1.6rem);
}

body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__hint-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	animation: gallery-wss-nudge 1.7s var(--ease-in-out, ease-in-out) infinite;
}

body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__hint-arrow svg {
	display: block;
	width: 20px;
	height: 20px;
}

body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__hint-text {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wide, 0.04em) !important;
	text-transform: uppercase !important;
	color: color-mix(in srgb, var(--ink) 64%, transparent) !important;
	margin: 0 !important;
}

@keyframes gallery-wss-nudge {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(4px); }
}

/* Mobile: drop wide uppercase tracking; near-full-width frames. */
@media (max-width: 640px) {
	body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__kicker,
	body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__hint-text {
		letter-spacing: 0 !important;
	}
	body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__frame {
		flex-basis: 82vw;
	}
}

/* Respect reduced-motion: stop the perpetual nudge, hover zoom + snap jump. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__strip {
		scroll-snap-type: none;
		scroll-behavior: auto;
	}
	body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__hint-arrow {
		animation: none;
	}
	body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__frame img {
		transition: none;
	}
	body.aibt-universal .universal-gallery--wide-strip-scroller .universal-gallery__frame img:hover {
		transform: none;
	}
}

/* A8/A9 left-shift fix (2026-06-08): centered intro element(s) were max-width-capped by
   WP constrained layout but pinned left by horizontal margin:0. Force margin-inline:auto.
   Section class doubled -> specificity (0,4,1) beats h2.__headline-style rules; harmless on
   already-centered elements (auto margins compute to 0). Only left/right are overridden. */
body.aibt-universal .universal-gallery--wide-strip-scroller.universal-gallery--wide-strip-scroller .universal-gallery__headline { margin-inline: auto !important; }
