/* Gallery lightbox: full-screen viewer opened by clicking a gallery image. */

.gallery-swiper .swiper-slide {
  cursor: zoom-in;
  position: relative;
}

.gallery-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery-swiper .swiper-slide:hover::after {
  opacity: 1;
}

.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 12, 0.94);
  padding: 24px;
}

.gallery-lightbox-overlay[hidden] {
  display: none;
}

.gallery-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(1100px, 90vw);
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-counter {
  font-family: 'Alata', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  border-color: #b98d58;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-lightbox-close {
  top: 24px;
  right: 24px;
}

.gallery-lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 38px;
    height: 38px;
  }
  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
  }
  .gallery-lightbox-prev {
    left: 12px;
  }
  .gallery-lightbox-next {
    right: 12px;
  }
}
