.screenshot-card,
.screenshot-card a,
.screenshot-gallery a {
  cursor: zoom-in;
}

.lightbox {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #f0e6d8;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(5, 8, 20, 0.94);
}

.lightbox-frame {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(calc(100% - 2rem), 72rem);
  max-width: calc(100% - 7.5rem);
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 7.5rem);
  object-fit: contain;
  background: #050814;
  border: 1px solid rgba(117, 223, 245, 0.24);
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  max-width: min(100%, 46rem);
  margin: 0.85rem 0 0;
  color: #d7c6b4;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.lightbox-caption[hidden] {
  display: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(117, 223, 245, 0.55);
  border-radius: 999px;
  color: #f0e6d8;
  background: rgba(13, 17, 40, 0.96);
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-prev:hover,
.lightbox-prev:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible {
  color: #050814;
  background: #75dff5;
  border-color: #75dff5;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close[hidden],
.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none;
}

.lightbox-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .lightbox-frame {
    max-width: calc(100% - 2rem);
    padding-bottom: 4rem;
  }

  .lightbox-image {
    max-height: calc(100vh - 10.5rem);
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-prev,
  .lightbox-next {
    transition: none;
  }
}
