.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox__frame {
  max-width: min(1100px, 100%);
  max-height: min(85vh, 100%);
  background: #0b0f1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.55);
}

.gallery-lightbox__image {
  width: 100%;
  height: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  background: #0b0f1a;
}

.gallery-lightbox__caption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.gallery-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(248, 250, 252, 0.2);
  color: #f8fafc;
  font-size: 1.4rem;
  cursor: pointer;
}

.gallery-lightbox__close:hover {
  background: rgba(248, 250, 252, 0.35);
}

@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 1rem;
  }

  .gallery-lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
  }
}
