/* Local fallback controls for archived gallery runtime. */
.module.gallery .slides .slide[aria-hidden="true"] {
  display: none !important;
}

.module.gallery .slides .slide[aria-hidden="false"] {
  display: block !important;
}

.module.gallery .slides .arrow {
  z-index: 5;
}

.local-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.local-lightbox.is-open {
  display: flex;
}

.local-lightbox__frame {
  position: relative;
  max-width: min(95vw, 1400px);
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.local-lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
}

.local-lightbox__caption {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  min-height: 20px;
}

.local-lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}

.local-lightbox__btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.local-lightbox__btn--prev {
  left: 6px;
}

.local-lightbox__btn--next {
  right: 6px;
}

.local-lightbox__close {
  position: absolute;
  top: -4px;
  right: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 767px) {
  .local-lightbox {
    padding: 8px;
  }

  .local-lightbox__frame {
    max-width: 100%;
  }

  .local-lightbox__img {
    max-height: 78vh;
  }
}
