/* Gallery page overrides. Sphere mode: the stage fills the viewport below the
   header (--hdr is measured by the page script), so nothing sits under it. */
.gal-intro{position:absolute;z-index:3;top:clamp(4.75rem,11vh,6.5rem);left:clamp(1.25rem,5vw,4rem);max-width:30rem;pointer-events:none;padding-right:1rem}
.gal-intro::before{content:"";position:absolute;inset:-2rem -4rem -2rem -4rem;z-index:-1;background:radial-gradient(60% 70% at 30% 40%,rgba(34,6,15,.72),rgba(34,6,15,0) 100%)}
.gal-title{margin:.35rem 0 0;font-family:"Instrument Serif",Georgia,serif;font-size:clamp(1.8rem,3.2vw,2.8rem);line-height:1.05;color:var(--cream,#fbf3e6)}
.gal-sub{margin:.6rem 0 0;font-size:.95rem;line-height:1.45;color:var(--rose,#e9b9c4)}
.drag-hint{background:none;padding:0;font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:rgba(251,243,230,.7);transition:opacity .6s ease}
@media (max-height:760px){.gal-sub{display:none}}
.grid-cap{display:block;padding:.5rem .2rem 0;font-size:.85rem;color:var(--rose,#e9b9c4)}
#photo-grid{columns:2 9rem;column-gap:.7rem}
#photo-grid li{margin-bottom:.7rem}
#photo-grid a{display:block;border-radius:8px;overflow:hidden}
#photo-grid img{display:block;width:100%;height:auto}
.sg-lb-nav{width:3rem;height:3rem}
@media (min-width:900px){#photo-grid{columns:3 18rem;column-gap:1rem}#photo-grid li{margin-bottom:1rem}}
@media (max-width:700px){
  .sg-lightbox{grid-template-columns:1fr;padding:3.5rem .75rem 5rem}
  .sg-lb-nav{position:absolute;bottom:1rem;width:3.25rem;height:3.25rem}
  .sg-lb-prev{left:1rem}.sg-lb-next{right:1rem}
  .sg-lb-media img{max-height:calc(100svh - 12rem)}
  .sg-lb-close{width:3.25rem;height:3.25rem}
}
.sg-lightbox{background:color-mix(in srgb,var(--ink,#1b1410) 97%,transparent)}
.grid-cap{text-decoration:none}

/* immersive page chrome */
body.gal{margin:0;background:var(--deep,#22060f);color:var(--cream,#fbf3e6)}
html.sphere-on,html.sphere-on body{overflow:hidden;height:100%}
.gal-top{position:fixed;z-index:30;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.8rem clamp(.8rem,2.5vw,1.6rem);pointer-events:none}
.gal-top>*{pointer-events:auto}
.gal-brand{display:flex;align-items:center;gap:.6rem;padding:.35rem .9rem .35rem .6rem;border-radius:999px;background:var(--cream,#fbf3e6);color:var(--maroon,#891839);text-decoration:none;box-shadow:0 8px 24px -10px rgba(0,0,0,.6)}
.gal-brand .mark{height:34px}
.gal-brand-name{display:flex;flex-direction:column;line-height:1.1;font-size:.9rem}
.gal-brand-name span{font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ember,#b8431a);font-weight:700}
.gal-actions{display:flex;align-items:center;gap:.6rem}
.gal-back{display:inline-flex;align-items:center;min-height:44px;padding:0 1.1rem;border-radius:999px;border:1px solid rgba(251,243,230,.4);background:rgba(34,6,15,.6);color:var(--cream,#fbf3e6);font-weight:700;font-size:.82rem;text-decoration:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.gal-back:hover{background:rgba(34,6,15,.85)}
.gal-sponsor{padding:.6rem 1.1rem;font-size:.86rem}
.gal-sponsor-flow{display:none}
.gal-hero{padding:5.5rem 1.25rem 1.5rem;max-width:40rem}
.gal-hero h1{font-family:"Instrument Serif",Georgia,serif;font-weight:400;font-size:clamp(2.4rem,9vw,3.4rem);line-height:1.02;margin:0}
.gal-hero p{margin:.8rem 0 1.1rem;color:var(--rose,#e9b9c4);line-height:1.5}
html.sphere-on .gal-hero{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%)}
html.sphere-on #sphere-stage{position:fixed;inset:0;width:100vw;height:100vh;height:100svh;z-index:1}
html.sphere-on .grid-sec{position:absolute}
.grid-sec{padding:0 .8rem 4rem}
.gal-credit{font-size:.72rem;line-height:1.4;color:rgba(251,243,230,.6);padding:1rem 1rem 5rem}
.gal-credit p{margin:.3rem 0}
.gal-credit a{color:inherit;margin-right:.6rem}
.gal-credit .footer-credit a{margin:0}
html.sphere-on .gal-credit{position:fixed;z-index:25;right:1rem;bottom:.7rem;max-width:21rem;padding:0;text-align:right;text-shadow:0 1px 6px rgba(0,0,0,.8)}
@media (max-width:700px){
  .gal-sponsor{display:none}.gal-sponsor-flow{display:inline-flex}
  .gal-brand-name span{display:none}
  .gal-back{padding:0 .85rem}
}
body .niggun-pill{position:fixed}
html.sphere-on .gal-credit{background:rgba(34,6,15,.62);padding:.45rem .7rem;border-radius:10px;color:rgba(251,243,230,.85)}
/* operator 2026-10-07: no text on the gallery; the credit and legal links sit behind a small info button */
.gal-credit{background:none!important;padding:0!important;max-width:none!important}
.gal-info{width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(246,233,215,.55);background:rgba(62,10,27,.6);color:var(--cream,#F6E9D7);font:italic 600 1.15rem/1 "Instrument Serif",Georgia,serif;cursor:pointer;display:grid;place-items:center;margin-left:auto}
.gal-info:hover,.gal-info:focus-visible{border-color:#FFC56B;color:#FFC56B}
.gal-info-panel{position:absolute;right:0;bottom:54px;width:min(360px,86vw);padding:.9rem 1rem;border-radius:12px;background:rgba(40,8,20,.92);color:var(--cream,#F6E9D7);font-size:.82rem;line-height:1.45;text-align:right;box-shadow:0 12px 30px rgba(0,0,0,.4)}
.gal-info-panel[hidden]{display:none}
.gal-info-panel a{color:inherit}
.gal-credit{position:relative}
html:not(.sphere-on) .gal-credit{display:flex;justify-content:flex-end;padding:0 16px 20px!important}
html:not(.sphere-on) .gal-info-panel{right:16px;bottom:72px}
