/* Click-to-enlarge for images in post content (see js/lightbox.js) */
.post-content img.lightbox-target {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
  box-sizing: border-box;
  background: var(--background, #0e141b);
  cursor: zoom-out;
}

/* Raster images shrink to fit but never grow past their natural size */
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Vector images have no natural resolution, so they fill the screen */
.lightbox-overlay img.lightbox-vector {
  width: 100%;
  height: 100%;
}

.lightbox-open {
  overflow: hidden;
}
