/* Image lightbox overlay */
#image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#image-lightbox[hidden] {
  display: none;
}

#image-lightbox__img {
  max-width: 98vw;
  max-height: 96vh;
  min-width: 60vw;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}

#image-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
}

#image-lightbox__close:hover {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

/* Show zoom cursor on article images */
article.doc img {
  cursor: zoom-in;
}
