.single-gallery-slider {
  margin: 28px 0 24px;
  min-height: 420px;
  background: #111;
  box-shadow: var(--shadow);
}

.single-gallery-slider .single-gallery-slider__track,
.single-gallery-slider .single-gallery-slide {
  min-height: 420px;
}

.single-gallery-slide__image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.single-gallery-slide__image img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.single-gallery-slider__counter,
.single-gallery-lightbox__counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.single-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.single-gallery-lightbox[hidden] {
  display: none !important;
}

.single-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.single-gallery-lightbox__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.single-gallery-lightbox__stage {
  position: relative;
  width: min(100%, 1400px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-gallery-lightbox__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.single-gallery-lightbox__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.single-gallery-lightbox__slide img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.single-gallery-lightbox__caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 900px;
}

.single-gallery-lightbox__close.menu-close {
  display: inline-flex;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.single-gallery-lightbox__close.menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.single-gallery-lightbox .hero-slider__arrow {
  z-index: 5;
  opacity: 1;
  visibility: visible;
}

.single-gallery-lightbox__arrow--prev {
  left: 18px;
}

.single-gallery-lightbox__arrow--next {
  right: 18px;
}

body.single-gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .single-gallery-slider,
  .single-gallery-slider .single-gallery-slider__track,
  .single-gallery-slider .single-gallery-slide,
  .single-gallery-slide__image img {
    min-height: 320px;
    height: 320px;
  }

  .single-gallery-lightbox__inner {
    padding: 18px 14px 22px;
  }

  .single-gallery-lightbox__close.menu-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .single-gallery-lightbox .hero-slider__arrow {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .single-gallery-lightbox__arrow--prev {
    left: 10px;
  }

  .single-gallery-lightbox__arrow--next {
    right: 10px;
  }

  .single-gallery-slider__counter,
  .single-gallery-lightbox__counter {
    right: 12px;
    bottom: 12px;
    font-size: 13px;
  }
}