/* Frontend block styles: gallery. */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
  }
  
  .lightbox.hidden {
    display: none;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
  }
  
  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
  }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-content {
    touch-action: pan-y;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.6);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.lightbox-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
  }
  
  .lightbox-thumbs {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 100%;
    padding: 8px 4px;
  }
  
  .lightbox-thumb {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
  }
  
  .lightbox-thumb:hover {
    opacity: 0.9;
  }
  
  .lightbox-thumb.active {
    opacity: 1;
    transform: scale(1.05);
  }
  
  .lightbox-thumbs::-webkit-scrollbar {
    height: 8px;
  }
  
  .lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35);
    border-radius: 999px;
  }

  .lightbox-content {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    touch-action: pan-y;
  }

  .lightbox-content {
    transition: opacity 0.25s ease;
    opacity: 1;
    cursor: pointer;
  }
  
  .lightbox-content.fade {
    opacity: 0;
  }

.gallery-header {
  display: grid;
  gap: 1.2rem;
  max-width: 58rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.gallery-eyebrow {
  margin-bottom: -.75rem;
}

.gallery {
    columns: 1;
    gap: clamp(.75rem, 1.4vw, 1.25rem);

    @media(width > 800px) {
        columns: 3;
    }

    @media(width > 1200px) {
        columns: 4;
    }
  }

  .gallery-item {
    break-inside: avoid;
    margin-bottom: clamp(.75rem, 1.4vw, 1.25rem);
  }
  
  .gallery-item img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
    border-radius: .4rem;
    display: block;
    margin-bottom: 0;
    filter: saturate(.92) contrast(.98);
  }

.block-gallery .block__title {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
}

.block-gallery .block__title::after {
  content: none;
}
