/**
 * Variant CSS: gallery--arched-print-passe
 * Layer 2 (Path B gallery role, 2026-06-10).
 *
 * One photograph presented like a gallery print — an arched (rounded-top) 4:5 frame
 * set inside a light passe-partout mat with a soft shadow, centered, with a plaque
 * (kicker + headline + one caption) beneath. Unlike the wide cinematic cover
 * (single-statement-frame): an intimate, "museum print" treatment of a single shot.
 * The mat is a polarity-aware surface (--background-card) and the plaque text uses
 * polarity-aware --ink, so both flip together per theme — no KI-020 mismatch. The
 * image src is swapped by the photo system. Element Count [1]. `gallery` role.
 */

body.aibt-universal .universal-gallery--arched-print-passe {
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
	text-align: center;
}

/* Passe-partout mat: a light card surface that frames the arched print + plaque. */
body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__mat {
	background: var(--background-card, var(--background-alt));
	border: var(--decor-border-width, 1px) solid var(--line, color-mix(in srgb, var(--ink) 12%, transparent));
	border-radius: var(--radius-lg, 16px);
	padding: clamp(1.1rem, 3vw, 1.8rem) clamp(1.1rem, 3vw, 1.8rem) clamp(1.6rem, 4vw, 2.4rem);
	box-shadow: 0 24px 60px -32px color-mix(in srgb, var(--ink) 44%, transparent);
}

/* The arch: a tall 4:5 frame whose top corners round into a soft arch. */
body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: 50vw 50vw var(--radius-md, 8px) var(--radius-md, 8px);
}

body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__img {
	margin: 0 !important;
	height: 100%;
}

body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-slower, 700ms) var(--ease-expressive, ease);
}

body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__frame:hover .universal-gallery__img img {
	transform: scale(1.03);
}

/* Plaque: kicker + headline + caption beneath the print, centered. */
body.aibt-universal .universal-gallery--arched-print-passe .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.16em) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: clamp(1.2rem, 3vw, 1.8rem) auto var(--space-sm, 0.6rem) auto !important;
}

body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 auto !important;
}

body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__headline em {
	color: var(--accent);
	font-style: italic;
}

body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__caption {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 500 !important;
	color: var(--ink) !important;
	opacity: 0.78;
	margin: var(--space-sm, 0.7rem) auto 0 auto !important;
	line-height: var(--leading-relaxed, 1.5);
	max-width: 40ch;
}

/* Tablet: nudge the mat narrower so the arch reads on a mid screen. */
@media (max-width: 959px) and (min-width: 641px) {
	body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__mat {
		max-width: 460px;
	}
}

/* Mobile: full-width mat within the column; tighten tracking. */
@media (max-width: 640px) {
	body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__kicker {
		letter-spacing: 0.04em !important;
	}
	body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__frame {
		aspect-ratio: 4 / 5;
	}
}

/* Keyboard focus parity with hover. */
body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__img a:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
	border-radius: 50vw 50vw var(--radius-md, 8px) var(--radius-md, 8px);
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-gallery--arched-print-passe .universal-gallery__frame:hover .universal-gallery__img img {
		transform: none;
	}
}

/* A8/A9 left-shift fix: centered children (kicker/headline/caption) are capped by
   the constrained mat but pinned left by horizontal margin:0 from the inline/heading
   styles. Force margin-inline:auto. Section class doubled -> specificity beats the
   inline h2 typography rule; harmless on already-auto elements. */
body.aibt-universal .universal-gallery--arched-print-passe.universal-gallery--arched-print-passe .universal-gallery__headline { margin-inline: auto !important; }
