.js-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.js-lightbox.is-open {
  display: block;
}

.js-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.js-lightbox__content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 1100px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.js-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

.js-lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.js-lightbox__prev,
.js-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.js-lightbox__prev {
  left: -72px;
}

.js-lightbox__next {
  right: -72px;
}

.js-lightbox__prev svg,
.js-lightbox__next svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media screen and (max-width: 767px) {
  .js-lightbox__content {
    width: calc(100% - 20px);
  }

  .js-lightbox__prev,
  .js-lightbox__next {
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .js-lightbox__prev {
    left: 0;
  }

  .js-lightbox__next {
    right: 0;
  }
}