/**
 * Variant CSS: gallery--full-bleed-band-row
 *
 * Gallery as one horizontal strip running edge to edge of the screen (alignfull,
 * 5 portrait 3:4 frames, gapless). Unlike the constrained grids and the impact
 * duo: it forms a panoramic, full-width "film strip". The intro stays centered
 * in a normal container; the band itself breaks out to the viewport edges. On
 * small screens the strip becomes a horizontal scroll-snap rail so 5 portraits
 * never get crushed. Image src are swapped by the photo system.
 * Part of the `gallery` role.
 */

body.aibt-universal .universal-gallery--full-bleed-band-row {
	padding-block: clamp(3rem, 7vw, 5rem) 0;
	overflow-x: hidden;
}

/* Center the intro text blocks. */
body.aibt-universal .universal-gallery--full-bleed-band-row .has-text-align-center {
	margin-inline: auto !important;
}

/* Intro. */
body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__intro {
	margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

body.aibt-universal .universal-gallery--full-bleed-band-row .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 auto var(--space-sm) auto !important;
}

body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

/* Edge-to-edge band — 5 equal columns, gapless, no rounding (true bleed). */
body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	width: 100%;
}

body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band .universal-gallery__img {
	position: relative;
	margin: 0 !important;
	overflow: hidden;
	aspect-ratio: 3 / 4;
}

body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band .universal-gallery__img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform 700ms var(--ease-default, ease),
		filter var(--duration-fast, 200ms) var(--ease-default, ease);
}

/* Hover: lift the focused frame, gently push back the rest of the strip. */
body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band:hover .universal-gallery__img img {
	filter: var(--photo-filter, none) brightness(0.82);
}

body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band .universal-gallery__img:hover img {
	transform: scale(1.05);
	filter: var(--photo-filter, none) brightness(1);
}

/* Tablet: 3 across keeps portraits tall enough. */
@media (max-width: 900px) {
	body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Mobile: horizontal scroll-snap rail so all 5 stay viewable, 0 overflow. */
@media (max-width: 640px) {
	body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__kicker {
		letter-spacing: 0 !important;
	}
	body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band::-webkit-scrollbar {
		display: none;
	}
	body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band .universal-gallery__img {
		flex: 0 0 72%;
		scroll-snap-align: center;
	}
}

/* Reduced motion: the global guard makes transitions instant, which would turn
   the spotlight brightness shift into a hard flicker as the pointer crosses the
   strip. Disable the dim/un-dim entirely (and the zoom) for opted-out users. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band:hover .universal-gallery__img img,
	body.aibt-universal .universal-gallery--full-bleed-band-row .universal-gallery__band .universal-gallery__img:hover img {
		filter: var(--photo-filter, none);
		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--full-bleed-band-row.universal-gallery--full-bleed-band-row .universal-gallery__headline { margin-inline: auto !important; }
