/**
 * Variant CSS: gallery--duo-framed-portraits
 *
 * Two portrait (3:4) frames side by side, each one seated in a generous
 * passe-partout mat (card background, even padding all round) with a caption
 * plaque under the photo — a pair of prints presented gallery-style. Unlike the
 * full-bleed duo (no mat, photo to the card edge) and the split-seam pair
 * (squares butted, no frames): here the museum mat and the breathing room around
 * both photos do the work. Text stays --ink (polarity aware); kicker + em + the
 * caption tick 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-framed-portraits {
	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-framed-portraits .universal-gallery__intro {
	margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

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

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

/* Two framed columns. */
body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__duo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.2rem, 3vw, 2.2rem);
	align-items: start;
}

/* The passe-partout mat — a card with even padding around the print + a caption. */
body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__mat {
	background: var(--background-card);
	border: 1px solid var(--divider-primary);
	border-radius: var(--decor-radius, 16px);
	padding: clamp(0.9rem, 2.2vw, 1.6rem);
	box-shadow: var(--decor-shadow, none);
}

body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__img {
	margin: 0 !important;
	overflow: hidden;
	border-radius: calc(var(--decor-radius, 16px) - 6px);
}

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

body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__mat:hover .universal-gallery__img img,
body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__mat:focus-within .universal-gallery__img img {
	transform: scale(1.04);
}

/* Caption plaque under each print. */
body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__caption {
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 600 !important;
	color: var(--text-secondary) !important;
	margin: clamp(0.8rem, 1.8vw, 1.1rem) 0 0 0 !important;
}

body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__caption::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	transform: translateY(-2px);
}

/* Keyboard focus parity with hover (image becomes focusable when a client links it). */
body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__img a:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: calc(var(--decor-radius, 16px) - 6px);
}

/* Mobile: stack the two framed prints. */
@media (max-width: 640px) {
	body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__duo {
		grid-template-columns: 1fr;
		gap: clamp(1.4rem, 5vw, 2rem);
	}
	body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__img img {
		aspect-ratio: 4 / 3;
	}
	body.aibt-universal .universal-gallery--duo-framed-portraits .universal-gallery__kicker {
		letter-spacing: var(--tracking-wide) !important;
	}
}

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