.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.lightbox.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.lightbox__content {
  position: relative;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox__image {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1;
}

.lightbox__arrow--prev {
  left: 10px;
}
.lightbox__arrow--next {
  right: 10px;
}
.lightbox__arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: solid #516EAD;
  border-width: 0 5px 5px 0;
  transform: translate(-50%, -50%) rotate(135deg);
}
.lightbox__arrow--next::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}