.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(23, 23, 23, 0.88);
  box-sizing: border-box;
}

.lightbox.is-open,
.lightbox.is-open:not([hidden]) {
  display: flex;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__img {
  display: block;
  max-width: min(100%, 1200px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 100%;
  background: #fff;
  color: #171717;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid #fff;
  border-radius: 100%;
  background: transparent;
  cursor: pointer;
}

.lightbox__prev::before,
.lightbox__next::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.lightbox__prev {
  left: 16px;
}

.lightbox__prev::before {
  transform: rotate(-135deg);
}

.lightbox__next {
  right: 16px;
}

.lightbox__next::before {
  transform: rotate(45deg);
}
