.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 22, 16, .94);
  animation: lb-in .3s var(--ease);
  touch-action: pan-y;
}
@keyframes lb-in { from { opacity: 0; } }
.lightbox__img {
  max-width: min(92vw, 1100px); max-height: 84vh; max-height: 84dvh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  border: 0; background: none; color: var(--cream);
  cursor: pointer; line-height: 1;
}
.lightbox__close { top: max(10px, env(safe-area-inset-top)); right: 12px; font-size: 40px; padding: 8px 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 54px; padding: 16px 12px; opacity: .8; }
.lightbox__nav--prev { left: 4px; }
.lightbox__nav--next { right: 4px; }
.lightbox__count {
  position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0;
  text-align: center; font-size: 12.5px; letter-spacing: .2em; color: var(--beige);
}
body.lb-open { overflow: hidden; }
