/* One centered repair pair, sized from the space available under the header. */
.work.paired-work{
 container-type:inline-size;
 --pair-divider:6px;
 --pair-height:clamp(128px,calc(100svh - 320px),520px);
 --ideal-pair-width:calc(var(--pair-height) * 1.5 + var(--pair-divider));
 --rail-width:min(100cqw,calc(var(--ideal-pair-width) + 224px));
 --pair-width:min(var(--ideal-pair-width),calc(var(--rail-width) - 132px));
 --pair-inset:calc((var(--rail-width) - var(--pair-width)) / 2);
 --pair-gap:68px;
 padding:24px 0 42px;overflow:hidden;background:#090c10
}
.paired-work .section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;width:var(--pair-width);margin:0 auto 10px;padding:0}
.paired-work .section-heading :is(h1,h2){font-size:clamp(31px,3.8vw,48px);line-height:1.06;letter-spacing:-.035em;margin:0}
.paired-work .gallery-all-link{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 0;background:transparent;border:0;color:#c4d0da;font-size:12px;white-space:nowrap}
.paired-work .gallery-all-link:hover{color:#fff}
.paired-gallery{width:var(--rail-width);max-width:100%;min-width:0;margin-inline:auto}
.paired-instruction{width:var(--pair-width);margin:0 auto 10px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#dbe4eb;line-height:1.4}
.paired-gesture{display:flex;align-items:center;gap:8px;color:#aebecb;font-size:12px}
.paired-gesture>span:first-child{font-size:21px;line-height:1}.for-touch{display:none}
.paired-frame{position:relative}
.paired-track{display:flex;gap:var(--pair-gap);padding-inline:var(--pair-inset);overflow-x:auto;overflow-y:hidden;position:relative;scroll-padding-inline:var(--pair-inset);scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;touch-action:pan-x pan-y;max-width:100%}
.paired-track::-webkit-scrollbar,.paired-thumbnails::-webkit-scrollbar{display:none}
.paired-track.is-dragging{scroll-snap-type:none;cursor:grabbing;user-select:none}.paired-track.is-dragging button{cursor:grabbing}
.paired-slide{flex:0 0 var(--pair-width);min-width:0;scroll-snap-align:start;scroll-snap-stop:always;opacity:.44;transition:opacity .16s ease}
.paired-slide.is-current{opacity:1}
.paired-slide:not(.is-current) :is(.paired-stage,.paired-expand){visibility:hidden}
.paired-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--pair-divider)}
.paired-photo{position:relative;display:block;width:100%;padding:0;overflow:hidden;border:0;border-radius:4px;background:#111820;text-align:left;cursor:zoom-in;min-width:0}
.paired-slide:not(.is-current) .paired-photo{cursor:pointer}
.paired-photo img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;display:block;pointer-events:none;user-select:none}
.paired-stage{position:absolute;top:12px;left:12px;background:#090c10e8;border:1px solid #586774;color:#edf1f4;border-radius:3px;padding:7px 13px;font-size:12px;line-height:1.2;pointer-events:none}
.paired-expand{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#090c10d9;border:1px solid #6b7c89;font-size:21px;color:#f0f4f5;pointer-events:none}
.paired-controls{width:var(--pair-width);margin:6px auto 0;min-height:30px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
.paired-controls button{position:absolute;z-index:2;top:calc((var(--pair-width) - var(--pair-divider)) / 3);transform:translateY(-50%);width:48px;height:48px;padding:0;display:grid;place-items:center;border:1px solid #697d8e;border-radius:50%;color:#f3f7fa;background:#17242f;box-shadow:0 4px 18px #03060966}
.paired-controls button span{display:none}
.paired-controls [data-work-prev]{left:calc(var(--pair-inset) - 60px)}.paired-controls [data-work-next]{right:calc(var(--pair-inset) - 60px)}
.paired-controls button:disabled{opacity:.38;cursor:default;box-shadow:none}.paired-controls button:hover:not(:disabled){background:#2b4050;border-color:#a6bfce}
.paired-controls .work-count{grid-column:2;font-size:13px;min-width:53px;color:#dbe6ee;text-align:center}
.paired-caption{width:var(--pair-width);min-height:40px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;line-height:1.4}
.paired-caption p{color:#c6d0d8;font-size:13px;margin:0}
.paired-caption button{background:transparent;border:0;color:#e6eef3;padding:6px 0 6px 10px;display:flex;gap:12px;align-items:center;white-space:nowrap;font-size:12px;min-height:40px}
.paired-progress{width:var(--pair-width);height:2px;background:#29343e;margin:5px auto 14px;overflow:hidden}
.paired-progress span{display:block;width:5%;height:100%;background:#b0c5d4;transition:transform .2s ease}
.paired-bottom{width:var(--pair-width);margin:0 auto}
.paired-bottom>p{display:flex;justify-content:space-between;align-items:center;color:#c7d2db;font-size:12px;margin-bottom:8px;gap:16px}
.paired-bottom>p span{color:#98acbb;font-size:11px}
.paired-thumbnails{display:flex;gap:9px;overflow-x:auto;max-width:100%;padding:3px 2px 7px;scrollbar-width:none;overscroll-behavior-x:contain}
.paired-thumbnails button{padding:2px;flex:0 0 50px;height:65px;border:1px solid #34424e;border-radius:3px;background:#111820;opacity:.58}
.paired-thumbnails button[aria-pressed=true]{opacity:1;border:2px solid #d0dfe9;padding:1px}
.paired-thumbnails img{width:100%;height:100%;object-fit:contain;display:block}
.paired-track:focus-visible,.paired-gallery button:focus-visible,.repair-viewer button:focus-visible,.repair-viewer-stage:focus-visible{outline:2px solid #9cc5e3;outline-offset:4px}
dialog.repair-viewer{--viewer-height:min(66svh,760px);width:min(1120px,calc(100vw - 48px));max-width:none;max-height:calc(100svh - 32px);padding:22px;background:#0c1218;color:#edf1f4;border:1px solid #41515f;border-radius:5px;overflow:auto}
.repair-viewer::backdrop{background:#020405ed}.repair-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.repair-viewer-top>div{min-width:0}
.repair-viewer-top h2{font:500 20px/1.25 'Segoe UI',Arial,sans-serif;letter-spacing:0;margin:4px 0 0}
.repair-viewer-count{color:#92a5b4;font-size:12px;font-variant-numeric:tabular-nums}
.repair-viewer button{color:#e6eef3;background:#17232d;border:1px solid #475d6e;border-radius:3px;min-height:44px;font:inherit;font-size:13px;cursor:pointer}
.repair-viewer button:disabled{opacity:.3;cursor:default}.repair-viewer .repair-viewer-close{flex:0 0 44px;width:44px;font-size:28px;padding:0;background:transparent}
.repair-viewer-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 0 14px}.repair-viewer-modes{display:flex;gap:4px}
.repair-viewer-modes button{padding:8px 16px;background:transparent;border-color:transparent}.repair-viewer-modes button[aria-pressed=true]{border-color:#718a9d;background:#233746}
.repair-viewer-zoom{padding:8px 14px;white-space:nowrap}
.repair-viewer-stage{height:var(--viewer-height);width:100%;overflow:auto;background:#070a0d;overscroll-behavior:contain;scrollbar-color:#647b8b #111820;touch-action:pan-x pan-y}
.repair-viewer:not(.is-zoomed) .repair-viewer-stage{touch-action:pan-y}
.repair-viewer-canvas{width:100%;height:var(--viewer-height);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.repair-viewer-canvas[data-mode=before],.repair-viewer-canvas[data-mode=after]{grid-template-columns:minmax(0,1fr)}
.repair-viewer-canvas figure{position:relative;min-width:0;margin:0;height:100%;overflow:hidden}
.repair-viewer-canvas img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;user-select:none}
.repair-viewer-canvas figcaption{position:absolute;top:10px;left:10px;padding:6px 12px;background:#0b1118d9;color:#edf1f4;font-size:12px;border-radius:3px}
.repair-viewer.is-zoomed .repair-viewer-canvas{width:200%;height:calc(var(--viewer-height)*2)}.repair-viewer.is-zoomed .repair-viewer-stage{cursor:grab}
.repair-viewer-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}
.repair-viewer-footer button{display:flex;align-items:center;gap:8px;padding:8px 12px;flex-shrink:0}.repair-viewer-hint{font-size:11px;line-height:1.4;color:#92a5b4;text-align:center}
@media(max-width:700px){
 .work.paired-work{--pair-divider:4px;--pair-height:clamp(116px,calc(100svh - 302px - env(safe-area-inset-bottom,0px)),440px);--rail-width:min(100cqw,calc(var(--ideal-pair-width) + 42px));--pair-width:calc(var(--rail-width) - 42px);--pair-gap:10px;padding:18px 0 32px}
 .paired-work .section-heading{width:calc(100% - 36px);margin-bottom:6px;gap:12px}
 .paired-work .section-heading :is(h1,h2){font-size:clamp(25px,6.7vw,36px);line-height:1.07}
 .paired-work .gallery-all-link{font-size:11px;padding:6px 0;gap:5px}
 .paired-instruction{justify-content:center;font-size:11px;margin-bottom:9px}
 .paired-desktop-label,.for-pointer{display:none}.for-touch{display:inline}
 .paired-controls{width:max(var(--pair-width),220px);max-width:calc(100cqw - 24px);gap:6px;margin-top:8px}
 .paired-controls button{position:static;transform:none;width:auto;height:44px;padding:0 10px;display:flex;align-items:center;gap:5px;border-radius:4px;font-size:11px}
 .paired-controls button svg{width:17px;height:17px}
 .paired-controls button span{display:inline}.paired-controls [data-work-prev]{grid-column:1;justify-self:start}.paired-controls [data-work-next]{grid-column:3;justify-self:end}
 .paired-controls .work-count{font-size:11px}
 .paired-stage{top:8px;left:7px;padding:5px 8px;font-size:10px}.paired-expand{width:25px;height:25px;right:7px;bottom:7px;font-size:17px}
 .paired-slide:not(.is-current){opacity:.64}
 .paired-caption{min-height:36px;gap:8px}.paired-caption p{font-size:11px}.paired-caption button{font-size:11px;gap:7px;min-height:40px}
 .paired-progress{margin-top:4px;margin-bottom:12px}.paired-bottom>p{font-size:11px}.paired-bottom>p span{font-size:10px}.paired-thumbnails{gap:7px}.paired-thumbnails button{flex-basis:42px;height:56px}
 dialog.repair-viewer{--viewer-height:calc(100svh - 240px);width:calc(100vw - 16px);padding:14px;max-height:calc(100svh - 16px)}
 .repair-viewer-top h2{font-size:16px}.repair-viewer-tools{gap:4px;padding:12px 0}.repair-viewer-modes{gap:0}.repair-viewer-modes button{padding:7px 10px;font-size:12px}.repair-viewer-zoom{padding:7px 9px;font-size:11px!important}
 .repair-viewer-footer button{padding:8px;min-width:44px}.repair-viewer-footer button span{display:none}.repair-viewer-hint{max-width:190px;font-size:10px}
}
/* The site's narrow-screen anchor padding is 35px, below its 78px fixed header. */
@media(max-width:560px){.wheel-page .paired-work{scroll-margin-top:52px}}
@media(pointer:coarse){.for-touch{display:inline}.for-pointer{display:none}}
@media(prefers-reduced-motion:reduce){.paired-slide,.paired-progress span{transition:none}.paired-track{scroll-behavior:auto}}
