/**
 * Variant CSS: gallery--duo-wide-stacked
 *
 * Two wide panoramic (16:9) frames stacked one above the other, flush to the same
 * edges (no lateral offset), separated only by a single hairline rule — a calm,
 * cinematic full-width stack. Unlike the stacked-offset pair (16:10 frames shoved
 * in a zigzag with their own captions): here both frames sit on one axis, flush,
 * like two scenes of the same shot. The pair shares one rounded frame; the second
 * image carries a hairline border-top that reads as the seam. Text stays --ink
 * (polarity aware); kicker + em take --accent; images carry --photo-filter. Image
 * src are swapped by the photo system. Dedicated to exactly two photos. Part of
 * the `gallery` role.
 */

body.aibt-universal .universal-gallery--duo-wide-stacked {
	padding-block: calc(clamp(3rem, 7vw, 5.5rem) * var(--density, 1));
	background: var(--background);
	color: var(--text-primary);
}

/* Intro. */
body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__intro {
	margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

body.aibt-universal .universal-gallery--duo-wide-stacked .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--duo-wide-stacked .universal-gallery__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 !important;
}

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

/* The stack: one shared rounded frame holding the two flush 16:9 images. */
body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__stack {
	display: flex;
	flex-direction: column;
	border-radius: var(--decor-radius, 16px);
	overflow: hidden;
	box-shadow: var(--decor-shadow, none);
}

body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img {
	margin: 0 !important;
	overflow: hidden;
}

/* The hairline seam between the two frames. */
body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img--second {
	border-top: 2px solid var(--divider-primary);
}

body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-slow, 500ms) var(--ease-default, ease);
}

body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img:hover img,
body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img:focus-within img {
	transform: scale(1.03);
}

/* Keyboard focus parity with hover (image becomes focusable when a client links it). */
body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img a:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -3px;
}

/* Mobile: hold the stack, drop to a slightly taller crop so each frame keeps presence. */
@media (max-width: 640px) {
	body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img img {
		aspect-ratio: 3 / 2;
	}
	body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__kicker {
		letter-spacing: var(--tracking-wide) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img img {
		transition: none;
	}
	body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img:hover img,
	body.aibt-universal .universal-gallery--duo-wide-stacked .universal-gallery__img:focus-within img {
		transform: none;
	}
}
