/* ── Fullscreen image lightbox ─────────────────────────────────── */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 4rem;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity .12s ease;
}

/* ── Close button ────────────────────────────────────────────────── */
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .6;
  line-height: 1;
  z-index: 1;
}
#lightbox-close:hover { opacity: 1; }

/* ── Prev / Next arrows ──────────────────────────────────────────── */
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: .5rem .85rem;
  cursor: pointer;
  border-radius: 8px;
  opacity: .75;
  transition: opacity .15s, background .15s;
  z-index: 1;
}
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }

#lightbox-prev:hover,
#lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .22);
}

#lightbox-prev:disabled,
#lightbox-next:disabled {
  opacity: .2;
  cursor: default;
}

/* ── Counter ─────────────────────────────────────────────────────── */
#lightbox-counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .55);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  pointer-events: none;
  user-select: none;
}
