/* 13-overlays.css · Lightbox and the design-system catalog embed hooks
   Part of the Lumen stylesheet, loaded in numeric order (the cascade depends on it). */

/* ══════════ LIGHTBOX ══════════ */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop {
  background: rgba(2, 4, 10, .95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox__scroll {
  height: 100%;
  overflow: auto;
  display: flex;
  padding: 4.5rem var(--gutter) 2.5rem;
}
.lightbox__fig {
  margin: auto;
  max-width: min(100%, 1400px);
}
.lightbox__fig img {
  border-radius: var(--radius);
  width: auto;
  max-width: 100%;
}
.lightbox__fig figcaption {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--muted);
  text-align: center;
}
.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-3);
  background: rgba(4, 6, 14, .75);
  color: var(--white);
  transition: border-color .3s, background-color .3s, color .3s;
}
.lightbox__close:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}
.lightbox__close .icon {
  width: 18px;
  height: 18px;
}

/* ══════════ CATALOG EMBED (when a design-system catalog frames this page, e.g. Bases/lumen-ds.html): the catalog owns the navbar; parked as a background, only the hero scene stays ══════════ */
.ds-embed .site-header { visibility: hidden; }
.ds-bg, .ds-bg body { overflow: hidden; }
.ds-bg #view-home { display: block !important; }
.ds-bg #view-home > :not(.hero),
.ds-bg #view-case,
.ds-bg .footer,
.ds-bg .hero__inner,
.ds-bg .intro,
.ds-bg .curtain,
.ds-bg .mobile-menu {
  visibility: hidden !important;
}
