/* Gallery: a bento grid of renders, films and live 3D tiles. No captions. */
/* It sits in the same split layout as the other pages: the left column carries the title, the grid scrolls on the right. */
.gallerypage .body article.wide{max-width:none}
.gallerypage .body .steps{display:none}
.gallerypage .body{padding-left:2.4vw;padding-right:2.4vw;padding-bottom:4vh}
.gallerypage .lead h2{display:none}
.bento{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:clamp(110px,15.5vh,170px);grid-auto-flow:dense;gap:10px}
@media (max-width:1180px){.bento{grid-template-columns:repeat(2,1fr)}.w3{grid-column:span 2}}
.tile{position:relative;overflow:hidden;border-radius:14px;background:#d9d6cb;padding:0;border:0;display:block;cursor:zoom-in;min-width:0}
.w1{grid-column:span 1}.w2{grid-column:span 2}.w3{grid-column:span 3}.h1{grid-row:span 1}.h2{grid-row:span 2}.h3{grid-row:span 3}
.tile>img,.tile>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:scale .6s cubic-bezier(.2,.7,.2,1)}
button.tile:hover>img{scale:1.04}
button.tile:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.tile.vid{cursor:default;background:#141010}
.titletile{background:linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,0) 42%,rgba(0,0,0,.3)),var(--rust);color:var(--cream);cursor:default;
  display:flex;flex-direction:column;justify-content:flex-end;padding:22px 24px}
.titletile h1{font-family:'Bowlby One SC',serif;font-weight:400;font-size:clamp(40px,5.4vw,96px);line-height:.86}
.titletile p{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;opacity:.85;margin-top:12px}
/* live 3D tiles */
.tile.live{cursor:default;background:linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,0) 42%,rgba(0,0,0,.3)),var(--rust)}
.tile.live>img{object-fit:contain;object-position:50% 100%;padding:6% 6% 0;filter:drop-shadow(0 2vh 2.4vh rgba(20,8,4,.35))}
.tile.live .v3d{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .5s;cursor:grab}
.tile.live.v3d-on .v3d{opacity:1}.tile.live.v3d-on>img{opacity:0}
.go{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px 0 10px;border-radius:17px;
  background:rgba(241,240,233,.92);color:var(--rust);font-weight:700;font-size:11px;letter-spacing:.12em;z-index:2}
.go svg{width:17px;height:17px}.go:hover{background:#fff}
.tile.live.busy .go span::after{content:"…"}
.tile.live.v3d-on .go{display:none}
.looks{position:absolute;right:12px;top:12px;display:flex;gap:6px;z-index:2}.looks[hidden]{display:none}
.lk{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--rust) 84%,#fff);color:var(--cream)}
.lk svg{width:17px;height:17px}
.lk[aria-pressed=true]{background:var(--cream);color:var(--dark)}
.lk.gold{background:radial-gradient(circle at 32% 28%,#fff3c4 0,#f4c95a 22%,#d99a24 52%,#9a5f10 82%,#6f430c 100%);box-shadow:inset 0 0 0 1px rgba(255,236,170,.55)}
.lk.gold[aria-pressed=true]{box-shadow:0 0 0 2px var(--cream),0 0 0 3.5px rgba(29,18,16,.55)}
/* viewer */
.lightbox{position:fixed;inset:0;z-index:60;background:rgba(20,14,12,.92);display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .3s}
.lightbox.open{opacity:1;pointer-events:auto}
.lightbox img{max-width:92vw;max-height:88vh;border-radius:10px;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.lb{position:absolute;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(241,240,233,.14);color:var(--cream)}
.lb:hover{background:rgba(241,240,233,.28)}.lb svg{width:20px;height:20px}
.lb.x{top:16px;right:16px}.lb.prev{left:16px;top:50%;translate:0 -50%}.lb.next{right:16px;top:50%;translate:0 -50%}
@media (max-width:820px){
  .bento{grid-template-columns:repeat(2,1fr);grid-auto-rows:clamp(100px,26vw,170px);gap:8px}
  .w2,.w3{grid-column:span 2}
  .gallerypage .body{padding:14px 12px 40px}
  .lb.prev{left:6px}.lb.next{right:6px}
}
@media (prefers-reduced-motion:reduce){.tile>img{transition:none}}
