.process-comparison{margin:40px 0 0}
.process-comparison-labels{display:flex;justify-content:space-between;gap:20px;margin:0 2px 14px;font-size:13px;color:#666}
.process-comparison-frame{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:20px;background:#eee;isolation:isolate}
.process-comparison-frame img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;margin:0;border-radius:0}
.process-comparison-initial{clip-path:inset(0 calc(100% - var(--reveal)) 0 0)}
.process-comparison-divider{position:absolute;inset:0 auto 0 var(--reveal);width:2px;transform:translateX(-50%);background:#fff;box-shadow:0 0 8px #0004;pointer-events:none}
.process-comparison-divider span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;border:1px solid #ffffffa3;border-radius:50%;background:#ffffffbf;backdrop-filter:blur(12px);color:#222;font-size:23px;letter-spacing:3px;padding-left:3px;box-shadow:0 4px 18px #0003}
.process-comparison-control{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y}
.process-comparison-frame:focus-within{outline:2px solid #222;outline-offset:5px}
.process-comparison figcaption{margin:14px 2px 0;font-size:13px;line-height:1.6;color:#777}
@media(max-width:600px){.process-comparison{margin-top:28px}.process-comparison-frame{border-radius:14px}.process-comparison-divider span{width:38px;height:38px;font-size:20px}.process-comparison-labels,.process-comparison figcaption{font-size:12px}}

.process-variants figure{margin:0;min-width:0}
.process-variant-zoom{display:block;width:100%;padding:0;border:0;border-radius:16px;overflow:hidden;background:#eee;cursor:pointer;transition:transform .6s cubic-bezier(.22,1,.36,1),box-shadow .6s ease}
.process-variant-zoom img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;margin:0;border-radius:0}
.process-variants figcaption{margin:14px 2px 0;font-size:13px;color:#666}
.process-variant-zoom:focus-visible{outline:2px solid #222;outline-offset:5px}
@media(hover:hover){.process-variant-zoom:hover{transform:scale(1.018);box-shadow:0 12px 30px #00000012}}
@media(prefers-reduced-motion:reduce){.process-variant-zoom{transition:none}}

/* Empty comparison slot, ready for supplied original and upscaled images. */
.upscaling-placeholder{border:1px dashed #d4d4cf;background:#f4f4f1}
.upscaling-placeholder-layer{position:absolute;inset:0;display:flex;align-items:center;background:#f4f4f1;color:#999992;font-size:14px;line-height:1.5}
.upscaling-placeholder-layer>span{position:absolute;width:42%;text-align:center;padding:16px}
.upscaling-placeholder-after>span{right:4%}
.upscaling-placeholder-before{background:#eaeae6}
.upscaling-placeholder-before>span{left:4%}
@media(max-width:600px){.upscaling-placeholder-layer{font-size:12px}.upscaling-placeholder-layer>span{padding:10px}}

/* Stack gallery section descriptions beneath their headings, like other projects. */
:is(.gallery-preview-behind,.gallery-preview-upscaling) .case-editorial-row{grid-template-columns:minmax(0,1fr);gap:20px;align-items:start;margin-bottom:32px}
:is(.gallery-preview-behind,.gallery-preview-upscaling) .case-editorial-row>.case-copy-column{padding-top:0}
:is(.gallery-preview-behind,.gallery-preview-upscaling) .case-copy-column p{margin:0;max-width:900px}
@media(max-width:600px){:is(.gallery-preview-behind,.gallery-preview-upscaling) .case-editorial-row{gap:16px;margin-bottom:28px}}

:is(.gallery-preview-behind,.gallery-preview-upscaling) .case-split-title,
:is(.gallery-preview-behind,.gallery-preview-upscaling) .case-split-title span{color:var(--muted)}

/* Match the case studies' chapter and subsection hierarchy. */
.gallery-preview .thumbnail-chapter-head h2{color:var(--muted);letter-spacing:-.065em}
.gallery-preview-behind{border-top:1px solid var(--line);padding-top:88px}
.thumbnail-chapter-description,.thumbnail-subsection-description{font-size:17px;line-height:1.8;color:#777;max-width:900px;margin:0 0 28px}
.gallery-preview .thumbnail-subsection{border-top:1px solid var(--line);margin-top:42px;padding-top:36px}
.thumbnail-subsection-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:22px}
.thumbnail-subsection-head h3{font-size:24px;line-height:1.3;font-weight:500;letter-spacing:-.04em;color:var(--ink);margin:0}
@media(max-width:600px){.gallery-preview-behind{padding-top:48px}.thumbnail-chapter-description,.thumbnail-subsection-description{font-size:15px}.gallery-preview .thumbnail-subsection{margin-top:32px;padding-top:28px}}

/* Process link follows the illustrative sketch. */
.gallery-preview-behind .gallery-process-compact{margin:28px 0 0}
.gallery-preview .thumbnail-process-note{font-size:14px;line-height:1.65}
