/**
 * Variant CSS: gallery--trio-tall-portrait-row
 *
 * Three slim, tall portrait frames (2:3) in one even row — a strong vertical
 * axis where every photo carries identical weight (hover zoom). Unlike
 * even-trio-row (4:5) and stagger-offset-trio (uneven vertical offsets): here all
 * three stand in a level line but are noticeably TALLER — narrow, poster-like
 * columns. Text stays --ink (polarity aware); kicker + the em take --accent;
 * tiles use --decor-radius and images carry --photo-filter. Image src are swapped
 * by the photo system. Dedicated to exactly three photos.
 * Part of the `gallery` role.
 */

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

/* Intro. */
body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__intro {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

body.aibt-universal .universal-gallery--trio-tall-portrait-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 0 var(--space-sm) 0 !important;
}

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

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

/* Layout: three equal columns; each tile holds its 2:3 aspect-ratio, so the row
   is perfectly even and emphatically tall regardless of source crops. */
body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.7rem, 1.6vw, 1.1rem);
}

body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item {
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--decor-radius, 14px);
}

body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item 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--trio-tall-portrait-row .universal-gallery__item:hover img,
body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item:focus-within img {
	transform: scale(1.04);
}

/* Keyboard focus parity with hover (image becomes focusable when a client links it). */
body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item a:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: var(--decor-radius, 14px);
}

/* Tablet: three tall 2:3 columns get quite narrow — relax to two columns so the
   portrait proportion stays readable; the 3rd wraps below. Grid keeps even rows. */
@media (min-width: 641px) and (max-width: 959px) {
	body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(0.6rem, 1.8vw, 0.9rem);
	}
}

/* Mobile: three tall portraits side by side become slivers — stack into a single
   column. Each tile keeps its 2:3 aspect-ratio so nothing squishes. */
@media (max-width: 640px) {
	body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__row {
		grid-template-columns: 1fr;
		gap: clamp(0.6rem, 3vw, 1rem);
	}
	body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item {
		aspect-ratio: 4 / 5;
	}
	body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item img {
		height: 100%;
	}
	body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__kicker {
		letter-spacing: var(--tracking-wide) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item img {
		transition: none;
	}
	body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item:hover img,
	body.aibt-universal .universal-gallery--trio-tall-portrait-row .universal-gallery__item:focus-within img {
		transform: none;
	}
}
