/* src/modules/gallery/Gallery.css */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-lightbox);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  width: min(1100px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,14,24,0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 35px 120px rgba(0,0,0,0.75);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox__inner {
  transform: scale(1);
}

.lightbox__inner img {
  width: 100%;
  display: block;
  max-height: 72vh;
  object-fit: contain;
  background: rgba(0,0,0,0.35);
}

.lightbox__cap {
  padding: 14px 16px;
  color: rgba(255,255,255,0.7);
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: calc(var(--z-lightbox) + 1);
  transform: scale(0.9);
}

.lightbox.is-open .lightbox__close {
  transform: scale(1);
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

body.is-modal {
  overflow: hidden;
}

@media (max-width: 620px) {
  .lightbox__inner {
    width: 95vw;
  }
  .lightbox__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}