.galleryBlock {
  padding: 80px 0;
  background: #eef5ff;
}

.galleryBlock__container {
  max-width: 1280px;
  margin: 0 auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.galleryBlock__active {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.galleryBlock__activeButton {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.galleryBlock__activeImage {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
}

.galleryBlock__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2vw, 16px);
}
.galleryBlock__thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}
.galleryBlock__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Lightbox */
.galleryBlock__lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.galleryBlock__lightbox[aria-hidden="false"] {
  display: flex;
}
.galleryBlock__lightboxBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}
.galleryBlock__lightboxInner {
  position: relative;
  z-index: 1;
  width: min(1280px, 94vw);
  padding: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.galleryBlock__lightboxStage {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.galleryBlock__lightboxImage {
  display: none;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
}
.galleryBlock__lightboxClose,
.galleryBlock__lightboxPrev,
.galleryBlock__lightboxNext {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 6vw, 48px);
  height: clamp(36px, 6vw, 48px);
  background: rgba(58, 83, 168, 0.9);
  color: #fff;
  border: 1px solid #3a53a8;
  border-radius: 6px;
  cursor: pointer;
  z-index: 100;
}
.galleryBlock__lightboxClose {
  top: clamp(8px, 2vw, 16px);
  right: clamp(8px, 2vw, 16px);
}
.galleryBlock__lightboxPrev {
  left: clamp(8px, 2vw, 16px);
  top: 50%;
  transform: translateY(-50%);
}
.galleryBlock__lightboxNext {
  right: clamp(8px, 2vw, 16px);
  top: 50%;
  transform: translateY(-50%);
}

/* Prevent body scroll when open */
body.galleryBlock--open {
  overflow: hidden;
}

@media (max-width: 992px) {
  .galleryBlock__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .galleryBlock {
    padding: 50px 0;
  }
  .galleryBlock__thumbs {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .galleryBlock__lightboxImage {
    max-width: 94vw;
    max-height: 80vh;
  }
}
