/* ─────────────────────────────────────────────────────────────
   Lisa Zigel — Works lightbox
   A private viewing state. Warm espresso overlay, bone text,
   thin controls, quiet dissolve. Auto-wired by lightbox.js to
   every .work in .gallery. Relies on the page's --serif / --sans.
   ───────────────────────────────────────────────────────────── */

.lz-lb{
  position:fixed; inset:0; z-index:1000;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  /* deep brown-black, espresso with warmth — not pure black */
  background:rgba(23,17,12,0.985);
  opacity:0; visibility:hidden;
  transition:opacity .3s ease, visibility 0s linear .3s;
  -webkit-font-smoothing:antialiased;
}
.lz-lb.is-open{
  opacity:1; visibility:visible;
  transition:opacity .3s ease;
}

/* stage holds image + metadata; it is what dissolves on navigation */
.lz-lb__stage{
  display:flex; flex-direction:column;
  align-items:center; gap:clamp(18px,2.8vh,32px);
  max-width:92vw;
  padding:clamp(20px,4vh,52px);
  opacity:1;
  transition:opacity .26s ease;
}
.lz-lb__stage.is-changing{ opacity:0; transition:opacity .16s ease; }

/* image rises + fades on open, a fraction before the metadata */
.lz-lb__figure{
  opacity:0; transform:translateY(10px);
}
.lz-lb.is-open .lz-lb__figure{
  opacity:1; transform:none;
  transition:opacity .3s ease .04s, transform .32s cubic-bezier(.2,.7,.2,1) .04s;
}

.lz-lb__img{
  display:block;
  max-width:min(90vw,1120px);
  max-height:72vh;
  width:auto; height:auto;
  box-shadow:0 30px 90px rgba(0,0,0,0.55);
}
/* held space for works not yet photographed */
.lz-lb__plate{
  display:none;
  aspect-ratio:var(--ar, 1.2 / 1);
  height:min(64vh, 560px);
  max-width:86vw;
  background:#E7DECB;
  box-shadow:inset 0 0 0 1px rgba(201,191,172,0.5), 0 30px 90px rgba(0,0,0,0.5);
}

.lz-lb__meta{
  text-align:center;
  opacity:0;
}
.lz-lb.is-open .lz-lb__meta{
  opacity:1;
  transition:opacity .32s ease .16s;   /* later than the image */
}
.lz-lb__title{
  font-family:var(--serif, Georgia, serif);
  font-weight:400;
  font-size:clamp(1.3rem,2.2vw,1.72rem);
  line-height:1.1;
  letter-spacing:-0.005em;
  color:#EAE1CF;                        /* soft bone, never bright white */
  margin:0;
}
.lz-lb__lines{
  font-family:var(--sans, system-ui, sans-serif);
  font-size:12.5px;
  font-weight:400;
  letter-spacing:0.06em;
  line-height:1.85;
  color:#A99E8B;                        /* muted ivory — low in the hierarchy */
  margin:10px 0 0;
}
.lz-lb__lines span{ display:block; }

/* ── thin, discreet controls ── */
.lz-lb__btn{
  position:fixed;
  display:flex; align-items:center; justify-content:center;
  width:48px; height:48px;
  border:0; background:none; padding:0; margin:0;
  color:rgba(234,225,207,0.5);
  cursor:pointer;
  transition:color .3s ease, opacity .3s ease;
  -webkit-tap-highlight-color:transparent;
}
.lz-lb__btn:hover{ color:rgba(234,225,207,0.9); }
.lz-lb__btn:focus-visible{
  outline:1px solid rgba(234,225,207,0.55);
  outline-offset:4px;
}
.lz-lb__btn svg{ width:24px; height:24px; }
.lz-lb__close{ top:clamp(14px,2.4vh,26px); right:clamp(14px,2.4vw,30px); }
.lz-lb__prev{ left:clamp(6px,1.6vw,26px);  top:50%; transform:translateY(-50%); }
.lz-lb__next{ right:clamp(6px,1.6vw,26px); top:50%; transform:translateY(-50%); }
.lz-lb__btn[disabled]{ opacity:0.16; pointer-events:none; }

@media (max-width: 720px){
  .lz-lb__img{ max-height:58vh; max-width:90vw; }
  .lz-lb__plate{ height:min(52vh,460px); }
  .lz-lb__btn{ color:rgba(234,225,207,0.62); }
  .lz-lb__prev{ left:4px; }
  .lz-lb__next{ right:4px; }
}

@media (prefers-reduced-motion: reduce){
  .lz-lb, .lz-lb__stage, .lz-lb__figure, .lz-lb__meta{ transition-duration:0.01ms !important; }
  .lz-lb__figure{ transform:none; }
}
