.bth-gallery-lightbox-open {
  overflow: hidden;
}

.bth-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
}

.bth-gallery-lightbox.is-open {
  display: flex;
}

.bth-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(7, 13, 11, 0.88);
  cursor: zoom-out;
}

.bth-gallery-lightbox__stage {
  position: relative;
  z-index: 1;
  width: calc(100vw - 128px);
  height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bth-gallery-lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.bth-gallery-lightbox__close,
.bth-gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bth-gallery-lightbox__close:hover,
.bth-gallery-lightbox__close:focus-visible,
.bth-gallery-lightbox__nav:hover,
.bth-gallery-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.bth-gallery-lightbox__close {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 32px;
}

.bth-gallery-lightbox__nav {
  top: 50%;
  width: 52px;
  height: 64px;
  border-radius: 8px;
  font-size: 54px;
  transform: translateY(-50%);
}

.bth-gallery-lightbox__nav:hover,
.bth-gallery-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.03);
}

.bth-gallery-lightbox__nav--prev {
  left: 0;
}

.bth-gallery-lightbox__nav--next {
  right: 0;
}

.bth-gallery-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .bth-gallery-lightbox {
    padding: 40px 14px 56px;
  }

  .bth-gallery-lightbox__stage {
    width: calc(100vw - 28px);
    height: calc(100vh - 96px);
  }

  .bth-gallery-lightbox__close {
    top: -28px;
    right: 0;
  }

  .bth-gallery-lightbox__nav {
    width: 42px;
    height: 54px;
    font-size: 44px;
  }
}
