.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: rgba(8, 6, 4, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  position: relative;
  max-width: min(1200px, 90vw);
  max-height: 86vh;
  text-align: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__caption {
  margin-top: 14px;
  color: rgba(255, 253, 249, 0.62);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 253, 249, 0.25);
  border-radius: 50%;
  background: rgba(20, 17, 14, 0.45);
  color: var(--bone);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--bone);
  color: var(--ink);
}

.lightbox__close {
  top: 22px;
  right: 22px;
}

.lightbox__prev {
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
}

.lightbox__next {
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: rgba(8, 6, 4, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__inner {
  width: min(1100px, 100%);
}

.video-modal video {
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.video-modal__title {
  margin-top: 14px;
  color: rgba(255, 253, 249, 0.6);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .lightbox__prev {
    left: 10px;
  }

  .lightbox__next {
    right: 10px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }

  .lightbox {
    padding: 4vw;
  }
}
