/* ── Lightbox root ────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Dark backdrop that dims the map */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.88);
}

/* Centered image stage — clicks here (outside image) close the gallery */
.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  cursor: zoom-out;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Nav arrows ───────────────────────────────────────────────────────────── */

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 150ms ease, transform 150ms ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.06);
}

.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }

/* ── Close button ─────────────────────────────────────────────────────────── */

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 150ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Counter ──────────────────────────────────────────────────────────────── */

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* ── Clickable view-grid thumbnails ───────────────────────────────────────── */

.photos-view-img {
  cursor: zoom-in;
  transition: opacity 150ms ease;
}

.photos-view-img:hover {
  opacity: 0.85;
}
