.lighting-compare { grid-column:1 / -1; min-width:0; margin:0 0 12px; }
.lighting-compare h2 { margin:0 0 8px; color:#fff; }
.lighting-compare p { margin:0 0 16px; color:#dedee2; }
.lighting-compare-stage { --split:50%; position:relative; isolation:isolate;  overflow:hidden; background:#101114; }
.lighting-compare-stage img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; user-select:none; pointer-events:none; }
.lighting-white { clip-path:inset(0 calc(100% - var(--split)) 0 0); }
.lighting-divider { position:absolute; top:0; bottom:0; left:var(--split); width:2px; transform:translateX(-50%); background:#fff; color:#101114; box-shadow:0 0 5px #000; pointer-events:none; }
.lighting-divider span { position:absolute; top:50%; left:50%; display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:#fff; transform:translate(-50%,-50%); box-shadow:0 1px 7px #0008; }
.lighting-range:not([hidden]) { position:absolute; inset:0; opacity:0; width:100%; height:100%; padding:0; margin:0; border:0; appearance:none; cursor:ew-resize; touch-action:pan-y; }
.lighting-range::-webkit-slider-thumb { appearance:none; width:1px; height:44px; }
.lighting-range::-moz-range-thumb { width:1px; height:44px; border:0; }
.lighting-compare-stage:has(.lighting-range:focus-visible) { outline:2px solid #ffe0a2; outline-offset:4px; }
.lighting-compare-stage:has(.lighting-range:focus-visible) .lighting-divider span { outline:2px solid #101114; outline-offset:-4px; }
.lighting-labels { display:flex; justify-content:space-between; gap:12px; padding-top:9px; color:#f2eff4; font-size:clamp(13px,1.5vw,17px); }

.lighting-compare-frame { display:grid; place-items:center; container-type:size; background:#090a0c; }
.lighting-compare-frame .lighting-compare-stage { width:min(100%, calc(100cqh * 4 / 3)); height:min(100%, calc(100cqw * 3 / 4)); }

/* Track horizontal movement on the photo; leave vertical scrolling free away from the handle. */
.lighting-compare-stage.is-interactive { touch-action:pan-y; cursor:ew-resize; }
.lighting-compare-stage.is-interactive .lighting-range { pointer-events:none; }
.lighting-compare-stage.is-interactive .lighting-divider span { pointer-events:auto; touch-action:none; }
@media (pointer:coarse) { .lighting-compare-stage.is-interactive .lighting-divider span { width:52px; height:52px; } }
@media (min-width:1024px) { .gallery-tile.lighting-compare-frame { height:clamp(375px,44vw,748px); } }
