/* Both photos always share exactly the same box and crop. */
.hero-comparison{position:absolute;inset:0;--before:100%;background:#F1A06A;overflow:hidden}
.comparison-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;user-select:none;-webkit-user-drag:none;pointer-events:none}
.comparison-before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--before)) 0 0);pointer-events:none}
.comparison-divider{position:absolute;top:0;bottom:0;left:clamp(25px,var(--before),calc(100% - 25px));width:1px;background:#fff7efb0;pointer-events:none;z-index:1}
.comparison-handle{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;border:1px solid #fff7ef;background:#76513fdc;color:#FFFFFF;box-shadow:0 2px 14px #513b3026;display:grid;place-items:center}
.comparison-handle svg{width:29px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.comparison-range{position:absolute;left:0;top:calc(50% - 32px);width:100%;height:64px;margin:0;padding:0;opacity:0;z-index:4;cursor:ew-resize;touch-action:pan-y;-webkit-appearance:none;appearance:none;background:transparent}
.comparison-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:50px;height:64px;background:transparent;border:0}
.comparison-range::-moz-range-thumb{width:50px;height:64px;background:transparent;border:0}
.comparison-range::-moz-range-track{background:transparent;border:0}
.hero-comparison:has(.comparison-range:focus-visible) .comparison-handle{outline:3px solid #76513F;outline-offset:5px;background:#76513F}
.comparison-hint{position:absolute;right:24px;top:calc(50% + 42px);z-index:2;border-radius:20px;padding:6px 12px;background:#fff7efd9;color:#5C3D2D;font-size:12px;line-height:1.4;cursor:ew-resize;transition:opacity .2s}
.comparison-used .comparison-hint{opacity:0;pointer-events:none}
.comparison-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.photo-preview-hero:has(.hero-comparison) .hero-editorial{bottom:clamp(145px,18vw,290px)}
.photo-preview-hero:has(.hero-comparison) .hero-word{color:#FFF7EF;z-index:2;text-shadow:0 2px 12px #76513f0b}
/* Picture elements select separate portrait Before/After photographs. */
.comparison-image>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;pointer-events:none;user-select:none;-webkit-user-drag:none}
@media(max-width:600px){
 .home-hero:has(.hero-comparison){height:100svh;min-height:580px;max-height:950px;background:#F1A06A}
 .comparison-handle{width:42px;height:42px}
 .comparison-hint{right:15px;top:calc(50% + 36px);font-size:11px}
 .photo-preview-hero:has(.hero-comparison) .hero-editorial{bottom:120px}
 .photo-preview-hero:has(.hero-comparison) .hero-word{bottom:.02em;font-size:24vw}
}
@media(prefers-reduced-motion:reduce){.comparison-hint{transition:none}}
