/**
 * Variant CSS: before-after--duo-slider-frames
 * Layer 2 — Path B before-after role (2026-06-10).
 * Exactly TWO cases, each a single comparison frame: a "Przed" half | a faux
 * vertical slider grip (track + circular knob with ‹ › arrows) | a "Po" half.
 * The two photos kiss either side of the grip, reading as one draggable slider
 * (purely static — no JS). Below each frame: a number + case title.
 * Distinct from center-seam-pair (one thin spine dividing the WHOLE section into
 * two halves, no knob) and slider-divider count-1 (a single frame): here there
 * are two independent frames, each with its own grip handle.
 */

body.aibt-universal .universal-before-after--duo-slider-frames {
	background: var(--background-alt);
	color: var(--text-primary);
}

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

body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__intro > * {
	margin-inline: auto !important;
}

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

/* Duo — two equal cases side by side, stretch so frames + heads align. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__duo {
	align-items: stretch;
}

body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__case {
	display: flex;
	flex-direction: column;
}

/* Frame — before | grip | after, no gaps so the photos meet the track.
   Equal-height halves via stretch alignment from the block layout. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__frame {
	position: relative;
	gap: 0 !important;
	border-radius: var(--decor-radius);
	overflow: hidden;
	box-shadow: 0 18px 44px -28px color-mix(in srgb, var(--ink) 50%, transparent);
}

/* Halves — each takes just under half so the slim grip can sit between them. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__half {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
}

body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__img {
	margin: 0 !important;
	display: block;
	height: 100%;
}

body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: var(--photo-filter, none);
}

/* Grip — the slider handle column: a slim track with a circular knob centred. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__grip {
	position: relative;
	z-index: 3;
	flex: 0 0 auto;
	align-self: stretch;
	width: 0;
}

/* The track — a vertical white line spanning the frame height. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__grip::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* The knob — circular grip carrying the ‹ › drag arrows. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__grip-knob {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	margin: 0 !important;
	border-radius: var(--decor-radius-pill);
	background: rgba(255, 255, 255, 0.95);
	color: var(--accent) !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.12em !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Corner tags — sit on each half.
   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--duo-slider-frames .universal-before-after__tag {
	position: absolute;
	top: var(--space-xs);
	z-index: 4;
	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), pinned to the left half. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__tag--before {
	left: var(--space-xs);
	background: var(--background-dark, #141414);
	color: var(--text-on-dark, #fff) !important;
}

/* "Po" — accent CTA chip to signal the win, pinned to the right half. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__tag--after {
	right: var(--space-xs);
	background: var(--cta-bg-primary);
	color: var(--cta-text-primary) !important;
}

/* Head — number + case title beneath each frame. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__head {
	gap: var(--space-sm) !important;
	margin-top: var(--space-md);
}

body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__num {
	flex: 0 0 auto;
	font-family: var(--font-display) !important;
	font-size: var(--text-xl) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
	color: var(--accent) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__case-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 so the two
   cases stack. Each frame keeps its own grip, so no changes needed there. */
@media (max-width: 781px) {
	body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__duo {
		flex-wrap: wrap !important;
	}
	body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__case {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__case + .universal-before-after__case {
		margin-top: var(--space-lg);
	}
}

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

/* Keyboard affordance — case focus-within ring + image focus-visible. */
body.aibt-universal .universal-before-after--duo-slider-frames .universal-before-after__case:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

body.aibt-universal .universal-before-after--duo-slider-frames .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--duo-slider-frames.universal-before-after--duo-slider-frames .universal-before-after__kicker,
body.aibt-universal .universal-before-after--duo-slider-frames.universal-before-after--duo-slider-frames .universal-before-after__headline { margin-inline: auto !important; }
