.acb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.acb-lightbox[hidden] {
  display: none;
}

.acb-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.acb-lightbox__stage {
  position: relative;
  width: min(100%, 1440px);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.acb-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(76vh, 860px);
  object-fit: contain;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.acb-lightbox__caption {
  width: min(100%, 980px);
  color: #fff;
  text-align: center;
}

.acb-lightbox__caption strong {
  display: block;
  color: #d8c1a3;
  font-size: 18px;
  line-height: 1.35;
}

.acb-lightbox__caption span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.acb-lightbox__button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 8, 8, 0.72);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.acb-lightbox__button:hover,
.acb-lightbox__button:focus-visible {
  border-color: #cf1f34;
  color: #fff;
  background: #cf1f34;
  outline: none;
}

.acb-lightbox__close {
  top: 0;
  right: 0;
}

.acb-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.acb-lightbox__prev {
  left: 0;
}

.acb-lightbox__next {
  right: 0;
}

body.acb-lightbox-open {
  overflow: hidden;
}

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

  .acb-lightbox__stage {
    gap: 12px;
  }

  .acb-lightbox__button {
    width: 40px;
    height: 40px;
  }

  .acb-lightbox__close {
    top: -4px;
    right: -4px;
  }

  .acb-lightbox__prev {
    left: -6px;
  }

  .acb-lightbox__next {
    right: -6px;
  }
}
