#home-lightbox[hidden] {
  display: none;
}

#home-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  isolation: isolate;
  opacity: 0;
  transition: opacity 0.28s ease;
}

#home-lightbox .lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#home-lightbox .lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 24px));
  margin: 10px auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.56);
  transform-origin: center center;
  transition:
    opacity 0.36s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.lightbox-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: min(1280px, calc(100vw - 56px));
  height: min(86vh, 860px);
  min-height: 460px;
  padding: 0;
  box-sizing: border-box;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: scale(0.82);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.36s ease;
}

#home-lightbox #lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #ffffff;
  transition: opacity 0.28s ease;
  will-change: opacity;
}

#home-lightbox .lightbox-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  text-align: center;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.24s ease;
}

#home-lightbox .lightbox-loading::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 -12px 0 1px rgba(17, 17, 17, 0.98),
    8.5px -8.5px 0 0.6px rgba(17, 17, 17, 0.9),
    12px 0 0 0.2px rgba(17, 17, 17, 0.82),
    8.5px 8.5px 0 -0.2px rgba(17, 17, 17, 0.72),
    0 12px 0 -0.55px rgba(17, 17, 17, 0.6),
    -8.5px 8.5px 0 -0.9px rgba(17, 17, 17, 0.48),
    -12px 0 0 -1.2px rgba(17, 17, 17, 0.38),
    -8.5px -8.5px 0 -1.45px rgba(17, 17, 17, 0.28);
  animation: zr-home-lightbox-spin 1.35s linear infinite;
}

#home-lightbox.is-loading #lightbox-image {
  opacity: 0;
}

#home-lightbox:not(.is-loading) .lightbox-loading {
  opacity: 0;
  pointer-events: none;
}

#home-lightbox #lightbox-caption {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translatex(-50%);
  margin: 0;
  min-width: 78px;
  padding: 7px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: #5a5a5a;
  text-shadow: none;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes zr-home-lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}

#home-lightbox .lightbox-close {
  position: absolute;
  top: 8px;
  right: 0;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

#home-lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translatey(-50%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

#home-lightbox .lightbox-prev {
  left: -56px;
}

#home-lightbox .lightbox-next {
  right: -56px;
}

#home-lightbox .lightbox-actions {
  margin-top: 12px;
  text-align: center;
}

#home-lightbox .lightbox-detail-link {
  display: inline-block;
  min-width: 130px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
}

#home-lightbox .lightbox-detail-link:hover {
  background: #ffffff;
  color: #111111;
}

#home-lightbox.is-loading .lightbox-actions,
#home-lightbox.is-loading #lightbox-caption,
#home-lightbox.is-loading .lightbox-nav {
  opacity: 0;
  pointer-events: none;
}

#home-lightbox.is-open {
  opacity: 1;
}

#home-lightbox.is-open .lightbox-mask {
  opacity: 1;
}

#home-lightbox.is-open .lightbox-dialog {
  opacity: 1;
  transform: scale(1);
  animation: zr-home-lightbox-dialog-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

#home-lightbox.is-open .lightbox-figure {
  transform: scale(1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: zr-home-lightbox-figure-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes zr-home-lightbox-dialog-pop {
  0% {
    opacity: 0;
    transform: scale(0.56);
  }
  72% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zr-home-lightbox-figure-pop {
  0% {
    transform: scale(0.82);
  }
  72% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}
