.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .94);
}
.lightbox.open {
  display: block;
}
.lightbox-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.lightbox-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 70px 40px;
  box-sizing: border-box;
}
.lightbox-slide img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
  display: block;
}
.lightbox-caption {
  color: #fff;
  margin-top: var(--space-4);
  font-size: var(--fs-base);
  font-style: italic;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: var(--fs-title);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, .2);
}
.lightbox-close {
  top: 20px;
  right: 20px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
@media (max-width: 680px) {
  .lightbox-nav {
    display: none;
  }
  .lightbox-slide {
    padding: 60px 20px 30px;
  }
}
