/* Click-to-enlarge lightbox for post/page figures.
   Deliberately adds NO shadow, border, or elevation to the in-page images —
   they look exactly the same; only the cursor hints that they can be opened. */

.page__content img,
.page__content figure svg {
  cursor: zoom-in;
}

/* Lock background scroll while the lightbox is open */
html.ei-lightbox-open,
html.ei-lightbox-open body {
  overflow: hidden;
}

.ei-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background: rgba(12, 20, 30, 0.9);
  cursor: zoom-out;
  overscroll-behavior: contain;
}

.ei-lightbox[hidden] {
  display: none;
}

.ei-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 96vw;
  max-height: 90vh;
}

.ei-lightbox__media {
  display: block;
  background: #ffffff;
  cursor: default;
}

img.ei-lightbox__media {
  max-width: min(1500px, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
}

svg.ei-lightbox__media {
  padding: 16px;
  box-sizing: border-box;
}

.ei-lightbox__close {
  position: fixed;
  top: 0.85rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.ei-lightbox__close:hover,
.ei-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}
