/* Gallery lightbox */
.gallery-lightbox-trigger {
  padding: 0;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: zoom-in;
  background: transparent;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(2, 6, 23, 0.92);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-content {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-content figcaption {
  margin-top: 1rem;
  max-width: 900px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(8px);
}

.gallery-lightbox-close,
.gallery-lightbox-arrow {
  position: fixed;
  z-index: 10000;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.gallery-lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  font-size: 2rem;
  display: grid;
  place-items: center;
}

.gallery-lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox-prev {
  left: 1.25rem;
}

.gallery-lightbox-next {
  right: 1.25rem;
}

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

  .gallery-lightbox-content img {
    max-height: 72vh;
  }

  .gallery-lightbox-content figcaption {
    border-radius: 1rem;
    font-size: 0.95rem;
  }

  .gallery-lightbox-arrow {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.5rem;
  }

  .gallery-lightbox-prev {
    left: 0.5rem;
  }

  .gallery-lightbox-next {
    right: 0.5rem;
  }

  .gallery-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}
