/**
 * Variant CSS: before-after--twin-vertical-columns
 * Layer 2 — Path B before-after role (2026-06-10).
 * Exactly TWO wide columns side by side. Each column is a VERTICAL stack of a
 * "Przed" frame over an "Po" frame (the eye reads top-to-bottom from the
 * starting state to the result), joined by a small accent arrow on the seam,
 * with corner tags and a number + title caption beneath.
 * Distinct from duo-split-cards (horizontal pair inside a card) and
 * compact-quartet-columns (four slim columns): here just two wide columns,
 * read vertically, each frame large.
 */

body.aibt-universal .universal-before-after--twin-vertical-columns {
	background: var(--background-alt);
	color: var(--text-primary);
}

/* Intro — centred block, A8-safe. */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__intro {
	margin-bottom: var(--space-xl);
	text-align: center;
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__intro > * {
	margin-inline: auto !important;
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__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-before-after--twin-vertical-columns h2.universal-before-after__headline,
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* Twins — two equal wide columns, stretch so caption baselines align. */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__twins {
	align-items: stretch;
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__col {
	display: flex;
	flex-direction: column;
}

/* Stack — before frame over after frame; relative so the seam arrow can sit
   on the boundary between the two shots. */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__stack {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-xs) !important;
}

/* Progress arrow on the seam between Przed and Po — an accent disc with a
   downward chevron, signalling "this becomes that". */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__stack::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 2.4rem;
	height: 2.4rem;
	transform: translate(-50%, -50%) rotate(45deg);
	background: var(--accent);
	border: 3px solid var(--background, #fff);
	border-radius: var(--decor-radius);
	z-index: 3;
	pointer-events: none;
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__shot {
	position: relative;
	overflow: hidden;
	border-radius: var(--decor-radius);
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__img {
	margin: 0 !important;
	display: block;
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-slow, 900ms) var(--ease-elegant, ease);
}

/* Gentle paired zoom on the column's photos on hover — tactile result cue
   (reduced-motion is handled globally by the skeleton). */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__col:hover .universal-before-after__img img {
	transform: scale(1.04);
}

/* Corner tags — sit on each frame.
   Fixed rgba drop-shadow lifts the chip off any photo (theme-independent,
   correct text-on-photo pattern) so light chips stay crisp on bright shots. */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__tag {
	position: absolute;
	top: var(--space-xs);
	left: var(--space-xs);
	z-index: 2;
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	margin: 0 !important;
	padding: 0.35em 0.8em !important;
	border-radius: var(--decor-radius-pill);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* "Przed" — neutral dark chip (text-on-dark). */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__tag--before {
	background: var(--background-dark, #141414);
	color: var(--text-on-dark, #fff) !important;
}

/* "Po" — accent CTA chip to signal the win. */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__tag--after {
	background: var(--cta-bg-primary);
	color: var(--cta-text-primary) !important;
}

/* Caption — number + project title beneath each column. */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__cap {
	gap: var(--space-sm) !important;
	margin-top: var(--space-md);
	padding-top: var(--space-sm);
	border-top: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__num {
	flex: 0 0 auto;
	font-family: var(--font-display) !important;
	font-size: var(--text-lg) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: var(--tracking-wide) !important;
	color: var(--accent) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__col-title {
	min-width: 0;
	font-family: var(--font-display) !important;
	font-size: var(--text-lg) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* Tablet/phone — the WP columns block wraps to one column ≤781px; each twin
   then stacks full-width. */
@media (max-width: 781px) {
	body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__col + .universal-before-after__col {
		margin-top: var(--space-xl);
	}
}

/* Phone — cap uppercase tracking on small screens (A5 — wide tracking hurts
   small text). */
@media (max-width: 640px) {
	body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__kicker,
	body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__num,
	body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__tag {
		letter-spacing: 0 !important;
	}
}

/* Keyboard affordance — column focus-within outline + image focus-visible. */
body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__col:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

body.aibt-universal .universal-before-after--twin-vertical-columns .universal-before-after__img img:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* A8/A9 left-shift fix (2026-06-10): centered intro children (kicker/headline) were
   max-width-capped by WP constrained layout but had horizontal margin 0, pinning them
   to the left. Force margin-inline:auto. Section class doubled -> specificity (0,4,1)
   beats element-tag-qualified rules like h2.__headline; harmless on already-centered
   elements (auto margins compute to 0). Only left/right are overridden. */
body.aibt-universal .universal-before-after--twin-vertical-columns.universal-before-after--twin-vertical-columns .universal-before-after__kicker,
body.aibt-universal .universal-before-after--twin-vertical-columns.universal-before-after--twin-vertical-columns .universal-before-after__headline { margin-inline: auto !important; }
