.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.9);
}

.gallery-lightbox.is-open {
  display: grid;
}

.gallery-lightbox__image {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 2rem;
  line-height: 1;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}

.gallery-lightbox__close {
  top: 1rem;
  right: 1rem;
}

.gallery-lightbox__prev {
  left: 1rem;
}

.gallery-lightbox__next {
  right: 1rem;
}

.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
