.appstudio-gallery-lock {
  overflow: hidden;
}

.appstudio-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  color: #ffffff;
  font-family: inherit;
}

.appstudio-gallery-lightbox.is-open {
  display: block;
}

.appstudio-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 22, 23, 0.88);
}

.appstudio-gallery-lightbox__dialog {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 48px 70px 26px;
  box-sizing: border-box;
}

.appstudio-gallery-lightbox__stage {
  position: relative;
  width: min(1180px, 100%);
  height: min(72vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.appstudio-gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.appstudio-gallery-lightbox.is-loading .appstudio-gallery-lightbox__image {
  opacity: 0.35;
}

.appstudio-gallery-lightbox__status {
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  min-width: 210px;
  max-width: 80%;
  padding: 13px 16px;
  box-sizing: border-box;
  justify-content: center;
  background: rgba(8, 25, 27, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.appstudio-gallery-lightbox.is-loading .appstudio-gallery-lightbox__status,
.appstudio-gallery-lightbox.is-error .appstudio-gallery-lightbox__status {
  display: inline-flex;
}

.appstudio-gallery-lightbox.is-error .appstudio-gallery-lightbox__spinner {
  display: none;
}

.appstudio-gallery-lightbox__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: appstudio-gallery-spin 800ms linear infinite;
}

.appstudio-gallery-lightbox__close,
.appstudio-gallery-lightbox__nav,
.appstudio-gallery-lightbox__zoom {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.appstudio-gallery-lightbox__close:hover,
.appstudio-gallery-lightbox__nav:hover,
.appstudio-gallery-lightbox__zoom:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.58);
}

.appstudio-gallery-lightbox__close:active,
.appstudio-gallery-lightbox__nav:active,
.appstudio-gallery-lightbox__zoom:active {
  transform: translateY(1px);
}

.appstudio-gallery-lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.appstudio-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 58px;
  transform: translateY(-50%);
  font-size: 42px;
}

.appstudio-gallery-lightbox__nav:active {
  transform: translateY(calc(-50% + 1px));
}

.appstudio-gallery-lightbox__nav--prev {
  left: 22px;
}

.appstudio-gallery-lightbox__nav--next {
  right: 22px;
}

.appstudio-gallery-lightbox__footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(1180px, 100%);
  margin-top: 13px;
}

.appstudio-gallery-lightbox__toolbar {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.appstudio-gallery-lightbox__zoom {
  min-width: 48px;
  height: 38px;
  padding: 0 12px;
  font-size: 16px;
}

.appstudio-gallery-lightbox__zoom--reset {
  min-width: 74px;
}

.appstudio-gallery-lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.appstudio-gallery-lightbox__count {
  font-weight: 700;
}

[data-appstudio-gallery-lightbox-ready="1"] img[data-zoom-src],
[data-appstudio-gallery-lightbox-ready="1"] [data-appstudio-gallery-main] {
  cursor: pointer;
}

@keyframes appstudio-gallery-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .appstudio-gallery-lightbox__dialog {
    padding: 56px 14px 20px;
  }

  .appstudio-gallery-lightbox__stage {
    width: 100%;
    height: 68vh;
  }

  .appstudio-gallery-lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .appstudio-gallery-lightbox__nav {
    width: 42px;
    height: 52px;
    font-size: 34px;
  }

  .appstudio-gallery-lightbox__nav--prev {
    left: 8px;
  }

  .appstudio-gallery-lightbox__nav--next {
    right: 8px;
  }
}
