.gallery-page,.gallery-intro,.gallery-panel{background:#000;color:#fff}
.gallery-intro,.gallery-panel{position:relative;display:grid;place-items:center;margin:0;text-align:center;isolation:isolate}
.gallery-intro{min-height:100svh}
.gallery-intro a,.gallery-caption h2{font:400 clamp(58px,10.4vw,190px)/.9 "Bodoni 72","Didot","Times New Roman",serif;letter-spacing:-.069em;text-transform:uppercase;color:white}
.gallery-caption h2{font-size:clamp(48px,8vw,150px);margin:0}
.gallery-caption p{margin:12px 0 30px;color:#fff}
.gallery-open,.gallery-view button{display:inline-flex;align-items:center;gap:9px;border:1px solid #fffa;border-radius:99px;padding:8px 12px;background:#171717aa;color:white;font:inherit}
.gallery-open span{background:white;color:black;border-radius:50%;padding:0 4px}
.gallery-view{border:0;padding:0;background:#080808;color:white;width:min(94vw,1300px);max-width:96vw}
.gallery-view::backdrop{background:#000e}
.gallery-view button{display:block;margin:8px 8px 8px auto;cursor:pointer}
.gallery-view video,.gallery-view img{display:block;width:100%;height:min(76svh,820px);object-fit:contain}

.gallery-intro{min-height:100vh;margin-bottom:30px}
#gallery-work{display:grid;grid-template-columns:1px minmax(0,1fr) 1px;position:relative;overflow:clip}
.gallery-strip{min-width:0}
.gallery-panel{height:100vh;overflow:visible}
.gallery-plane{position:absolute;z-index:-1;top:10%;left:-10%;width:120%;height:80%;transform:rotate(-4deg);overflow:clip}
.gallery-window{position:absolute;inset:-2% 0;overflow:hidden}
.gallery-window video{position:absolute;left:0;top:-44%;width:100%;height:188%;max-width:none;object-fit:cover;transform:translate3d(0,var(--gallery-shift,0px),0)}
.edge{position:sticky;top:0;height:100vh;align-self:start;z-index:2;pointer-events:none}
.edge::before{content:"";position:absolute;inset-block:0;width:100vh;background-repeat:no-repeat;background-size:contain}
.edge.left::before{left:0;background-position:left top;background-image:var(--left-edge)}
.edge.right::before{right:0;background-position:right top;background-image:var(--right-edge)}
#gallery-work{--left-edge:url(desktop-left.svg);--right-edge:url(desktop-right.svg)}
@media(max-width:1199.98px){#gallery-work{--left-edge:url(tablet-left.svg);--right-edge:url(tablet-right.svg)}}
@media(max-width:809.98px){#gallery-work{--left-edge:url(mobile-left.svg);--right-edge:url(mobile-right.svg)}.gallery-panel{height:50vh}.gallery-caption p{margin:8px 0 18px}}
