.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox--visible {
  display: flex;
}

.lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  background: #fff;
}

.lightbox__caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #f3f3f3;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox__close {
  top: 16px;
  right: 16px;
  font-size: 32px;
}

.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__nav { width: 36px; height: 36px; font-size: 22px; }
  .lightbox__close { width: 36px; height: 36px; font-size: 26px; }
}
