.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}
.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #ccc;
  border-radius: 1px;
}
.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lightbox-close:hover::before,
.lightbox-close:hover::after {
  background: #fff;
}
.lightbox-counter {
  position: absolute;
  top: 22px;
  left: 24px;
  color: #aaa;
  font-size: 14px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.5px;
  z-index: 10;
  user-select: none;
}
.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 60px 0;
  overflow: hidden;
}
.lightbox-media-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-media-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.lightbox-media-wrap video {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  outline: none;
  background: #000;
}
.lightbox-media-wrap.is-diptych {
  gap: 24px;
}
.lightbox-diptych-half {
  width: calc((100% - 24px) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-diptych-half img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.lightbox-diptych-half video {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  outline: none;
  background: #000;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: background 150ms ease;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-nav::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
}
.lightbox-nav:hover::before {
  border-color: #fff;
}
.lightbox-prev {
  left: 16px;
}
.lightbox-prev::before {
  transform: translate(-35%, -50%) rotate(45deg);
}
.lightbox-next {
  right: 16px;
}
.lightbox-next::before {
  transform: translate(-65%, -50%) rotate(-135deg);
}
.lightbox-report {
  width: min(700px, 100%);
  max-height: 20vh;
  overflow-y: auto;
  padding: 16px 60px 24px;
  color: #bbb;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  word-break: break-word;
  overflow-wrap: break-word;
  scrollbar-width: none;
}
.lightbox-report::-webkit-scrollbar {
  display: none;
}
.lightbox-report h1,
.lightbox-report h2,
.lightbox-report h3,
.lightbox-report h4,
.lightbox-report h5,
.lightbox-report h6 {
  color: #ddd;
  line-height: 1.4;
  margin: 0.8em 0 0.4em;
}
.lightbox-report h1 { font-size: 1.4em; }
.lightbox-report h2 { font-size: 1.2em; }
.lightbox-report h3 { font-size: 1.1em; }
.lightbox-report p,
.lightbox-report ul,
.lightbox-report ol,
.lightbox-report blockquote {
  margin: 0 0 0.6em;
}
.lightbox-report a {
  color: inherit;
  text-decoration: underline;
}
.lightbox-report img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 700px) {
  .lightbox-body {
    padding: 50px 12px 0;
  }
  .lightbox-report {
    padding: 12px 16px 20px;
    max-height: 25vh;
  }
  .lightbox-nav {
    width: 36px;
    height: 36px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-media-wrap.is-diptych {
    flex-direction: column;
    gap: 12px;
  }
  .lightbox-diptych-half {
    width: 100%;
  }
  .lightbox-diptych-half img,
  .lightbox-diptych-half video {
    max-height: 38vh;
  }
}
