.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(244, 243, 239, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 18px 50px rgba(26, 25, 23, 0.18);
}

/* Close */
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  z-index: 10;
  transition: color var(--t-fast), transform var(--t-fast);
  padding: 0.5rem;
}
.lightbox-close:hover { color: var(--fg); transform: rotate(90deg); }

/* Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg);
  font-size: 1.25rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 25, 23, 0.06);
  border: 1px solid rgba(26, 25, 23, 0.15);
  border-radius: 50%;
  transition: color var(--t-fast), background var(--t-fast);
  z-index: 10;
  user-select: none;
}
.lightbox-arrow:hover {
  color: var(--fg);
  background: rgba(26, 25, 23, 0.12);
}
.lightbox-arrow.prev { left: 1.5rem; }
.lightbox-arrow.next { right: 1.5rem; }

/* Counter */
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
