.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(0);
}

.lightbox.open {
  display: flex;
  animation: lb-fade 0.35s ease both;
  background: rgba(9, 7, 8, 0.92);
  backdrop-filter: blur(20px);
}

.lightbox-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lb-reveal 0.4s var(--ease-out) both;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--shadow-glow), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: opacity 0.25s;
}

.lightbox-img.is-loading {
  opacity: 0;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  z-index: 2001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s, transform 0.28s var(--ease-spring);
}

.lightbox-close:hover {
  color: #fff;
  transform: rotate(90deg) scale(1.06);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  z-index: 2001;
  user-select: none;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: color 0.2s, transform 0.28s var(--ease-spring);
}

.lightbox-nav:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

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