.galleryBlock {
  width: 100%;
  padding: 80px 0;
}
.galleryBlock_Header {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto 80px auto;
  text-align: center;
}
.galleryBlock_Title {
  margin: 0 0 24px 0;
  color: #000;
  font-family: "Alata", sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.6px;
}
.galleryBlock_Text {
  color: #000;
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 150%;
}

.galleryBlock_Viewport {
  position: relative;
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
}
.galleryBlock_TrackWrapper {
  overflow: hidden;
}
.galleryBlock_Track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 30px);
  gap: 30px;
  will-change: transform;
  transform: translateX(0);
  transition: transform 0.4s ease;
}
.galleryBlock_Slide {
  width: 100%;
}
.galleryBlock_Image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
  aspect-ratio: 16/9;
  cursor: zoom-in;
}

.galleryBlock_Arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #fff;
  background: #f2f2f2;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10;
}
.galleryBlock_Arrow--prev {
  left: -32px;
}
.galleryBlock_Arrow--next {
  right: 0px;
}

.galleryBlock_Arrow:hover {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.galleryBlock_Dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.galleryBlock_Dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.galleryBlock_Dot.is-active {
  background: #000;
}

@media (max-width: 1024px) {
  .galleryBlock_Title {
    font-size: 40px;
  }
  .galleryBlock_Header {
    margin-bottom: 40px;
  }
  .galleryBlock_Track {
    gap: 20px;
    grid-auto-columns: calc(100% - 20px);
  }
}

@media (max-width: 768px) {
  .galleryBlock {
    padding: 60px 0;
  }
  .galleryBlock_Header {
    width: 90%;
    margin: 0 auto 24px auto;
  }
  .galleryBlock_Text {
    font-size: 18px;
  }
  .galleryBlock_Track {
    gap: 16px;
    grid-auto-columns: calc(100% - 16px);
  }
  .galleryBlock_Image {
    border-radius: 12px;
  }
  .galleryBlock_Arrow {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  .galleryBlock_Arrow--prev {
    left: 8px;
  }
  .galleryBlock_Arrow--next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .galleryBlock {
    padding: 40px 0;
  }
  .galleryBlock_Arrow {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
}

/* Lightbox (fullscreen image viewer) */
.galleryBlock_Lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.galleryBlock_Lightbox.is-open {
  display: flex;
}
.galleryBlock_Lightbox_Image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.galleryBlock_Lightbox_Close,
.galleryBlock_Lightbox_Arrow {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.galleryBlock_Lightbox_Close {
  top: 16px;
  right: 16px;
  font-size: 24px;
  line-height: 1;
}
.galleryBlock_Lightbox_Arrow--prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.galleryBlock_Lightbox_Arrow--next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.galleryBlock_Lightbox button {
  border: none;
}
.galleryBlock_Lightbox svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: #fff;
}
@media (max-width: 768px) {
  .galleryBlock_Lightbox_Image {
    max-width: 94vw;
    max-height: 80vh;
  }
  .galleryBlock_Lightbox_Close,
  .galleryBlock_Lightbox_Arrow {
    width: 40px;
    height: 40px;
  }
}
