/* V4 presentation only. The V1 plate, image fitting and view coordinates stay intact. */
:root{--gv-ink:#e9e3d8;--gv-muted:#aeb1b4;--gv-gold:#c5b293;--gv-line:rgba(207,195,175,.22)}
*{box-sizing:border-box}html{background:#0c131b;color-scheme:dark}body.gallery-v4{margin:0;background:radial-gradient(ellipse at 0 30%,#18222d 0,transparent 55%),#0c131b;color:var(--gv-ink);font-family:Archivo,sans-serif;font-weight:300;min-width:0}
.gallery-v4 a{color:inherit;text-decoration:none}.gallery-v4 button{font:inherit;color:inherit;cursor:pointer}.gallery-v4 button:focus-visible,.gallery-v4 a:focus-visible{outline:2px solid var(--gv-gold);outline-offset:5px}.skip{position:absolute;left:16px;top:-100px}.skip:focus{top:12px;z-index:200}
.gv-nav{height:90px;max-width:1480px;padding:0 5vw;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--gv-line)}.gv-nav .odn-logo{display:block;width:130px;height:48px}.gv-back{font-size:13px;letter-spacing:.04em}.gv-back span{margin-left:22px;color:var(--gv-gold)}
.gv-gallery{max-width:1360px;margin:auto;padding:48px 5vw 36px;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:7vw;align-items:center;min-height:calc(100svh - 150px)}.gv-intro{align-self:center;padding-bottom:40px}.gv-eyebrow{font-family:'IBM Plex Mono',monospace;font-size:10px;line-height:1.6;letter-spacing:.18em;text-transform:uppercase;color:var(--gv-gold);margin:0 0 25px}.gv-intro h1{font-family:Newsreader,serif;font-size:clamp(48px,5.1vw,76px);line-height:1.02;font-weight:300;letter-spacing:-.035em;margin:0}.gv-intro h1 span{display:block;font-size:.66em;font-style:italic;color:var(--gv-gold);letter-spacing:-.025em;margin-top:12px}.gv-summary{font-size:17px;line-height:1.7;color:#cbcaca;margin:28px 0 0}.gv-context{margin-top:58px;max-width:315px}.gv-rule{display:block;width:40px;height:1px;background:var(--gv-gold);margin-bottom:22px}.gv-context p{font-size:13px;line-height:1.8;color:var(--gv-muted);margin:0 0 24px}.gv-context a{font-size:13px;border-bottom:1px solid var(--gv-line);padding-bottom:8px;display:inline-block}.gv-context a span{margin-left:22px;color:var(--gv-gold)}
.gv-work{min-width:0}.gv-casebar{display:flex;align-items:center;justify-content:space-between;max-width:580px;margin:0 auto 14px}.gv-casebar>span{font-family:Newsreader,serif;font-size:25px}.gv-paging{display:flex;gap:9px;align-items:center}.gv-paging>span{font-family:'IBM Plex Mono',monospace;font-size:10px;color:var(--gv-muted);margin-right:12px}.gv-paging button{border:1px solid var(--gv-line);background:transparent;width:38px;height:38px;border-radius:50%;transition:background .2s,border-color .2s}.gv-paging button:hover{background:#27313c;border-color:var(--gv-gold)}.gv-paging button:disabled{opacity:.28;cursor:default}
.gallery-v4 #gallery-cases{background:none}.gallery-v4 #gallery-cases figure.r1-fig{display:grid!important;grid-template-columns:1fr auto!important;width:100%!important;max-width:580px!important;margin:auto!important;border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;gap:0 12px}.gallery-v4 #gallery-cases figure[hidden]{display:none!important}
.gallery-v4 #gallery-cases .r1-plate{grid-column:1/-1;grid-row:1;width:auto!important;height:clamp(340px,52vh,590px);max-width:100%;justify-self:center;border-radius:3px;box-shadow:0 18px 48px #0003}
.gallery-v4 #gallery-cases figcaption{grid-column:1;grid-row:3;font-family:Archivo,sans-serif;font-size:12px;line-height:1.55;color:#c3c5c5;min-height:0!important;margin:12px 0 0!important;max-width:42ch}.gallery-v4 #gallery-cases figcaption span{color:var(--gv-muted)!important;font-size:9px!important;font-weight:300;letter-spacing:.08em!important;margin-bottom:4px!important}
.gallery-v4 #gallery-cases .r1-ctl{grid-row:3;grid-column:2;justify-self:end;margin-top:12px;gap:8px}.gallery-v4 #gallery-cases .r1-pp{color:var(--gv-gold);width:32px;height:32px}.gallery-v4 #gallery-cases .r1-more{display:none}.gallery-v4 #gallery-cases .r1-views{grid-row:4;grid-column:1/-1;margin-top:12px;gap:8px}.gallery-v4 #gallery-cases .r1-views:empty{display:none}.gallery-v4 #gallery-cases .r1-views:before{content:'View';color:var(--gv-muted);font-size:11px;margin-right:8px}.gallery-v4 #gallery-cases .r1-views button{color:#d9cbb5;border-color:var(--gv-line);width:32px;height:32px}.gallery-v4 #gallery-cases .r1-views button[aria-pressed=true]{background:#dacbb4;color:#101721;border-color:#dacbb4}
.gv-image-labels{grid-row:2;grid-column:1/-1;display:flex;justify-content:space-between;max-width:100%;padding:9px 0 0;color:var(--gv-gold);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.gv-instruction{font-size:10px;color:#a5a8ab;text-align:center;margin:14px 0 20px;letter-spacing:.035em}.gv-thumbs{display:flex;gap:10px;justify-content:center;border-top:1px solid var(--gv-line);padding-top:18px;overflow:auto;scrollbar-width:thin}.gv-thumbs button{flex:0 0 60px;background:none;border:0;padding:0 0 5px;color:var(--gv-muted);opacity:.58;transition:opacity .2s}.gv-thumbs button[aria-current=true],.gv-thumbs button:hover{opacity:1;color:var(--gv-ink)}.gv-thumbs button[aria-current=true]{box-shadow:0 1px var(--gv-gold)}.gv-thumbs .gv-thumb-image{height:62px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.gv-thumbs .r1-plate{height:62px;width:auto;max-width:60px;border-radius:2px}.gv-thumbs button>span:last-child{font-family:'IBM Plex Mono',monospace;font-size:9px;letter-spacing:.06em}.gv-footer{max-width:1360px;margin:auto;padding:24px 5vw;display:flex;justify-content:space-between;border-top:1px solid var(--gv-line);font-size:11px;color:var(--gv-muted)}
@media(min-width:601px) and (max-width:1000px){.gv-gallery{grid-template-columns:1fr;gap:30px;padding-top:44px;max-width:780px}.gv-intro{text-align:center;padding:0}.gv-eyebrow{margin-bottom:18px}.gv-intro h1{font-size:62px}.gv-intro h1 span{font-size:36px;margin-top:8px}.gv-summary{font-size:15px;margin-top:18px}.gv-summary br{display:none}.gv-context{max-width:480px;margin:18px auto 0}.gv-context p{font-size:12px;margin:0}.gv-context .gv-rule,.gv-context a{display:none}.gallery-v4 #gallery-cases .r1-plate{height:min(46svh,550px)}.gv-work{max-width:580px;width:100%;margin:auto}}
@media(max-width:600px){.gv-nav{height:72px;padding:0 24px}.gv-nav .odn-logo{width:112px;height:43px}.gv-back{font-size:12px}.gv-gallery{display:flex;flex-direction:column;gap:22px;padding:29px 24px 30px;min-height:0}.gv-intro{padding:0;align-self:stretch}.gv-eyebrow{font-size:9px;margin-bottom:14px}.gv-intro h1{font-size:46px}.gv-intro h1 span{font-size:29px;margin-top:7px}.gv-summary{display:none}.gv-context{margin-top:15px;max-width:none}.gv-context p{font-size:11px;line-height:1.6;margin:0;max-width:42ch}.gv-context .gv-rule,.gv-context a{display:none}.gv-work{width:100%}.gv-casebar{margin-bottom:12px}.gv-casebar>span{font-size:24px}.gv-paging button{width:36px;height:36px}.gallery-v4 #gallery-cases .r1-plate{height:auto;width:100%!important;max-width:100%;max-height:none}.gallery-v4 #gallery-cases figcaption{font-size:11px;margin-top:10px!important}.gv-instruction{margin:13px 0 17px}.gv-thumbs{justify-content:flex-start;gap:12px;padding-top:16px}.gv-thumbs button{flex-basis:54px}.gv-thumbs .gv-thumb-image,.gv-thumbs .r1-plate{height:57px}.gv-footer{padding:22px 24px;font-size:10px;gap:20px}.gv-image-labels{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Align the caption and before/after labels with the unchanged photo plate. */
@media(min-width:1001px){.gallery-v4 #gallery-cases figure.r1-fig{width:min(100%,calc(clamp(340px,52vh,590px) * var(--gv-shape)))!important}}
@media(min-width:601px) and (max-width:1000px){.gallery-v4 #gallery-cases figure.r1-fig{width:min(100%,calc(min(46svh,550px) * var(--gv-shape)))!important}}
.gv-thumbs .r9-plate>img{object-position:50% 50%!important}
/* Piotr: slightly smaller photographs on phones, without changing V1 framing. */
@media(max-width:600px){.gallery-v4 #gallery-cases figure.r1-fig{width:92%!important}}

/* Automatic comparison: 5 seconds per sweep, 10% faster than V1's 5.5s. */
@media(prefers-reduced-motion:no-preference){
.gallery-v4 #gallery-cases .r1-plate.r1-anim .r1-clip{transition:clip-path 5s cubic-bezier(.4,0,.25,1)}
.gallery-v4 #gallery-cases .r1-plate.r1-anim .r1-edge,.gallery-v4 #gallery-cases .r1-plate.r1-anim .r1-grip{transition:left 5s cubic-bezier(.4,0,.25,1)}
}

/* Hide only the page scrollbar; retain native scrolling and the comparison handle. */
html.gallery-v4-document,body.gallery-v4{scrollbar-width:none}
html.gallery-v4-document::-webkit-scrollbar,body.gallery-v4::-webkit-scrollbar{display:none;width:0;height:0}
/* Phone: alternate views stay visible above the photograph. */
@media(max-width:600px){
 .gallery-v4 #gallery-cases .r1-views{grid-row:1;margin:0 0 12px;justify-content:center}
 .gallery-v4 #gallery-cases .r1-plate{grid-row:2}
 .gallery-v4 #gallery-cases .gv-image-labels{grid-row:3}
 .gallery-v4 #gallery-cases figcaption,.gallery-v4 #gallery-cases .r1-ctl{grid-row:4}
}

/* Phone: one original context note, after the case gallery. */
.gv-mobile-context:empty{display:none}
@media(max-width:600px){
 .gv-mobile-context{padding:0 24px 24px}
 .gv-mobile-context .gv-context{margin:0;max-width:none}
 .gv-mobile-context .gv-context p{font-size:11px;line-height:1.65;max-width:44ch;color:var(--gv-muted)}
}

/* Shared frame position controls image reveal and divider; no independent transitions. */
.gallery-v4 #gallery-cases .r1-clip,.gallery-v4 #gallery-cases .r1-edge,.gallery-v4 #gallery-cases .r1-grip{transition:none!important}

/* V5 uses the shared Group 2 header in normal page flow. */
body.gallery-v5 #top{position:relative;min-height:0;height:auto;margin:0;padding:0;background:transparent;overflow:visible}


/* Collection layouts preserve source proportions, including wide close-ups. */
.gallery-v5 #gallery-cases figcaption>span{display:block}
.gallery-v5 #gallery-cases figure.r1-fig{width:min(100%,calc(52vh * var(--gv-shape)))!important}
.gallery-v5 #gallery-cases .r1-plate{width:100%!important;height:auto!important;aspect-ratio:var(--gv-ratio);overflow:hidden;position:relative}
.gallery-v5 #gallery-cases .r1-plate img{max-width:none}
.gallery-v5 #gallery-cases .r1-views[hidden]{display:none!important}
.gallery-v5 #gallery-cases .r1-pp{background:none;border:0;padding:8px;display:flex;align-items:center;justify-content:center}
.gallery-v5 #gallery-cases .r1-pp svg{width:10px;height:12px;fill:currentColor}
.gallery-v5 #gallery-cases .r1-range{position:absolute;width:1px;height:1px;opacity:0}
.gallery-v5 #gallery-cases .r1-range:focus-visible{position:relative;width:130px;height:24px;opacity:1}
.gallery-v5 #gallery-cases .r1-edge{position:absolute;top:0;bottom:0;left:var(--w,100%);width:1px;background:#fff9;pointer-events:none}
.gallery-v5 #gallery-cases .r1-grip{position:absolute;left:var(--w,100%);top:50%;transform:translate(-50%,-50%);border:1px solid #fff6;border-radius:50%;width:30px;height:30px;background:#17202a66;padding:7px;color:#fff}
.gallery-v5 #gallery-cases .r1-grip svg{width:15px;fill:none;stroke:currentColor}
.gallery-v5 #gallery-cases .r1-views{display:flex;align-items:center;justify-content:center}
.gallery-v5 #gallery-cases .r1-views button{background:transparent;border:1px solid var(--gv-line);border-radius:50%;font-size:11px}
.gallery-v5 #gallery-cases .gv-case-details{margin-top:10px;font-size:12px;line-height:1.6}
.gallery-v5 #gallery-cases .gv-case-details summary{cursor:pointer;color:var(--gv-gold)}
.gallery-v5 #gallery-cases .gv-case-details>span{font:300 12px/1.6 Archivo,sans-serif!important;text-transform:none!important;letter-spacing:0!important;display:block;margin-top:10px}
@media(max-width:600px){.gallery-v5 #gallery-cases figure.r1-fig{width:min(92%,calc(46svh * var(--gv-shape)))!important}}
@media(min-width:601px) and (max-width:1000px){.gallery-v5 #gallery-cases figure.r1-fig{width:min(100%,calc(46svh * var(--gv-shape)))!important}}

.gallery-v5 #gallery-cases figcaption .gv-treatment-title{font-family:inherit;font-size:inherit;line-height:inherit;font-weight:600;color:var(--gv-ink)}
