/**
 * Variant CSS: gallery--portrait-landscape-mix
 *
 * Two photos of differing proportions side by side — one tall portrait (3:4) and
 * one wide landscape (4:3), each with a short caption (hover zoom). Unlike an even
 * duo of identical tiles: clashing a vertical against a horizontal crop builds a
 * natural rhythm and compositional tension. Asymmetric columns (portrait narrower,
 * landscape wider); cells bottom-align so the captions sit on a shared baseline.
 * Text stays --ink (polarity aware); kicker + the 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--portrait-landscape-mix {
	padding-block: calc(clamp(3rem, 7vw, 5.5rem) * var(--density, 1));
	background: var(--background);
	color: var(--text-primary);
}

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

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

body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

/* Asymmetric pair: portrait gets less width, landscape more; bottom-align the
   cells so their captions share a baseline despite the height difference. */
body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__mix {
	display: grid;
	grid-template-columns: 5fr 7fr;
	align-items: end;
	gap: clamp(1.2rem, 3vw, 2.2rem);
}

body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__cell {
	margin: 0 !important;
}

/* Photo. */
body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__img {
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--decor-radius, 16px);
	box-shadow: var(--decor-shadow, none);
}

body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-slow, 500ms) var(--ease-default, ease);
}

body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__cell--portrait .universal-gallery__img img {
	aspect-ratio: 3 / 4;
}

body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__cell--landscape .universal-gallery__img img {
	aspect-ratio: 4 / 3;
}

body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__cell:hover .universal-gallery__img img,
body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__cell:focus-within .universal-gallery__img img {
	transform: scale(1.05);
}

/* Caption below each photo. */
body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__caption {
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	font-weight: 600 !important;
	color: var(--ink) !important;
	opacity: 0.84;
	margin: var(--space-sm) 0 0 0 !important;
}

body.aibt-universal .universal-gallery--portrait-landscape-mix .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--portrait-landscape-mix .universal-gallery__img a:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: var(--decor-radius, 16px);
}

/* Tablet: keep the side-by-side mix, ease the asymmetry a touch. */
@media (min-width: 641px) and (max-width: 959px) {
	body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__mix {
		grid-template-columns: 1fr 1.3fr;
		gap: clamp(1rem, 2.4vw, 1.6rem);
	}
}

/* Mobile: stack portrait over landscape, full width each. */
@media (max-width: 640px) {
	body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__mix {
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: clamp(1.4rem, 5vw, 2rem);
	}
	body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__cell--portrait .universal-gallery__img img {
		aspect-ratio: 4 / 3;
	}
	body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__kicker {
		letter-spacing: var(--tracking-wide) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__img img {
		transition: none;
	}
	body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__cell:hover .universal-gallery__img img,
	body.aibt-universal .universal-gallery--portrait-landscape-mix .universal-gallery__cell:focus-within .universal-gallery__img img {
		transform: none;
	}
}
