/* ===========================================
   LIGHTBOX
   =========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(5, 5, 5, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cream-300);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  background: transparent;
}

.lightbox-close:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--cream-100);
  transition: stroke 0.3s;
}

.lightbox-close:hover svg {
  stroke: var(--noir-900);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-caption {
  text-align: center;
  padding: 1.5rem 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--cream-300);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cream-300);
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
}

.lightbox-nav:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
  stroke: var(--cream-100);
  transition: stroke 0.3s;
}

.lightbox-nav:hover svg {
  stroke: var(--noir-900);
}

.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--cream-300);
}

.lightbox-counter .current {
  color: var(--gold-400);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
