/* Article image lightbox */
.article-lightbox-image {
  cursor: zoom-in;
}
.article-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 1rem;
  background: rgba(9, 9, 11, 0.92);
}
.article-image-lightbox[hidden] { display: none; }
.article-image-lightbox__image {
  display: block;
  max-width: min(96vw, 1600px);
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.article-image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 9999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.article-image-lightbox__close:hover { background: rgba(255,255,255,.24); }
body.article-lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .article-image-lightbox__image { animation: article-lightbox-in .16s ease-out; }
  @keyframes article-lightbox-in {
    from { opacity: 0; transform: scale(.98); }
    to { opacity: 1; transform: scale(1); }
  }
}
