/* ---- Lightbox ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.97);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lb-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#lb-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}
#lb-img.loading { opacity: 0.2; }
.lb-caption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(232,228,220,0.4);
  text-align: center;
  font-family: 'Instrument Sans', sans-serif;
}
.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(232,228,220,0.3);
  font-family: 'Instrument Sans', sans-serif;
}
.lb-close {
  position: fixed;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: rgba(232,228,220,0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s;
  z-index: 1001;
}
.lb-close:hover { color: #fff; }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(232,228,220,0.35);
  font-size: 48px;
  cursor: pointer;
  padding: 16px 20px;
  line-height: 1;
  transition: color 0.2s;
  z-index: 1001;
  font-family: Georgia, serif;
  user-select: none;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-prev:hover, .lb-next:hover { color: rgba(232,228,220,0.9); }

@media (max-width: 600px) {
  .lb-prev { left: 2px; font-size: 36px; }
  .lb-next { right: 2px; font-size: 36px; }
}
