/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}
.lightbox-caption {
  color: #eee;
  font-size: 0.95rem;
  margin-top: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 12px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.lightbox-close:hover,
.lightbox-close:focus {
  opacity: 1;
}
body.lightbox-open {
  overflow: hidden;
}
/* Native-size standardized images (capped so they don't overflow narrow screens) */
.page-image {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
}
