/**
 * Variant CSS: before-after--quad-diptych-band
 * Layer 2 — Path B before-after role (before-after count-4 expansion 2026-06-10).
 * FOUR tight diptychs along ONE horizontal band. Each cell = a small ordinal,
 * a compact HORIZONTAL "Przed | Po" pair split by a hairline vertical divider,
 * and a short bound title underneath. No card frames or fills — it reads as a
 * dense contact-strip of mini-diptychs.
 * Distinct from compact-quartet-columns (four columns of VERTICAL before-over-after
 * stacks), quad-grid-cards (framed 2x2 cards with a thick centre seam) and
 * register-rows-quad (full-width rows): here it is a slim four-up diptych band.
 */

body.aibt-universal .universal-before-after--quad-diptych-band {
	background: var(--background);
	color: var(--text-primary);
}

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

body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__intro > * {
	margin-inline: auto !important;
}

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

/* Band — four equal cells in a single row via CSS grid (no clip on ≥782px). */
body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__band {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
}

/* Cell — number, diptych, title; a thin vertical rule between cells keeps the
   strip legible without card chrome. */
body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__cell {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	min-width: 0;
}

body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__num {
	font-family: var(--font-display) !important;
	font-size: var(--text-sm) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: var(--tracking-wide) !important;
	color: var(--accent) !important;
	margin: 0 !important;
}

/* Diptych — before half | after half, kissing on a hairline divider.
   gap:0 so the two thumbs meet; the hairline is painted on the after-half. */
body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__diptych {
	position: relative;
	gap: 0 !important;
	border-radius: var(--decor-radius);
	overflow: hidden;
}

body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__half {
	position: relative;
	flex: 1 1 50%;
	min-width: 0;
	overflow: hidden;
}

/* Hairline vertical divider between the two thumbs. */
body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__half--after::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1px;
	background: var(--background, #fff);
	z-index: 2;
}

body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__img {
	margin: 0 !important;
	display: block;
	height: 100%;
}

body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-slow, 900ms) var(--ease-elegant, ease);
}

/* Gentle paired zoom on the cell's thumbs on hover — tactile result cue
   (reduced-motion handled globally by the skeleton). */
body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__cell:hover .universal-before-after__img img {
	transform: scale(1.05);
}

/* Corner tags — tiny chips on each thumb.
   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--quad-diptych-band .universal-before-after__tag {
	position: absolute;
	top: var(--space-3xs);
	z-index: 3;
	font-family: var(--font-body) !important;
	font-size: 0.62rem !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	margin: 0 !important;
	padding: 0.25em 0.55em !important;
	border-radius: var(--decor-radius-pill);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* "Przed" — neutral dark chip (text-on-dark), pinned to the left thumb. */
body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__tag--before {
	left: var(--space-3xs);
	background: var(--background-dark, #141414);
	color: var(--text-on-dark, #fff) !important;
}

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

/* Title — short caption under each diptych.
   overflow-wrap:normal so narrow band cells never break Polish titles mid-word
   (register-rows-quad trap, 2026-06-10). */
body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__cell-title {
	font-family: var(--font-display) !important;
	font-size: var(--text-base) !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
	overflow-wrap: normal;
}

/* Tablet — band becomes 2x2 so the diptychs keep a usable width. */
@media (max-width: 781px) {
	body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__band {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Phone — single column; the in-cell horizontal diptych is preserved (two small
   thumbs side by side fit fine at 375px). Cap wide tracking (A5). */
@media (max-width: 480px) {
	body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__band {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__kicker,
	body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__num,
	body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__tag {
		letter-spacing: 0 !important;
	}
}

/* Keyboard affordance — cell focus-within outline + image focus-visible. */
body.aibt-universal .universal-before-after--quad-diptych-band .universal-before-after__cell:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

body.aibt-universal .universal-before-after--quad-diptych-band .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. The section class is doubled to lift
   specificity to (0,4,1) so this beats element-tag-qualified rules like
   h2.__headline (0,3,2); harmless on already-centered elements. Only left/right overridden. */
body.aibt-universal .universal-before-after--quad-diptych-band.universal-before-after--quad-diptych-band .universal-before-after__kicker,
body.aibt-universal .universal-before-after--quad-diptych-band.universal-before-after--quad-diptych-band .universal-before-after__headline { margin-inline: auto !important; }
