/* Shared lightbox and persistent navigation — all iSoft Team pages. */
html, body { overflow-x: clip; }
html { scroll-padding-top: 94px; }
[id] { scroll-margin-top: 94px; }
/* Sticky header must stay inside the root scroll viewport, not a local overflow box. */
body.archive-home-body .archive-topbar,
body.archive-interior-body .archive-topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
}
body.archive-home-body #app,
body.archive-interior-body #app { overflow: visible; }
.archive-topbar-inner { position: relative; }
@supports (backdrop-filter: blur(12px)) {
  body.archive-home-body .archive-topbar,
  body.archive-interior-body .archive-topbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
@media(max-width:980px){
  .archive-nav.open { max-height: calc(100dvh - 86px); overflow-y: auto; }
}
/* Modal is appended to #app on every page, not only on Home. */
.archive-lightbox {
  box-sizing: border-box;
  width: min(1380px, 96vw);
  max-width: 96vw;
  max-height: 95dvh;
  margin: auto;
  border: 1px solid rgba(211,219,250,.65);
  border-radius: 20px;
  padding: 12px 16px 16px;
  background: #fbfcff;
  color: #24346f;
  box-shadow: 0 30px 100px rgba(2,10,40,.55);
  overflow: auto;
  direction: inherit;
}
.archive-lightbox::backdrop { background: rgba(9,15,42,.84); backdrop-filter: blur(8px); }
.archive-lightbox[open] { display: flex; flex-direction: column; gap: 6px; }
.archive-lightbox .lightbox-head { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:38px; }
.archive-lightbox .lightbox-counter { background:#edf1ff; color:#4355a7; font:700 14px Ubuntu,Arial,sans-serif; padding:6px 12px; border-radius:99px; }
.archive-lightbox .lightbox-close { flex:none; width:39px; height:39px; font-size:26px; border:0; background:#e6ecff; color:#25377e; border-radius:11px; cursor:pointer; }
.archive-lightbox figure { display:flex; flex-direction:column; align-items:center; margin:0; min-height:0; }
.archive-lightbox figure img { display:block; width:auto; height:auto; max-width:100%; max-height: min(75dvh, 950px); object-fit:contain; border-radius:8px; }
.archive-lightbox figcaption { text-align:center; padding:8px 8px 3px; font-family:var(--font-heading, Tahoma, sans-serif); font-weight:700; font-size:15px; line-height:1.6; }
.archive-lightbox .lightbox-actions { display:flex; justify-content:center; gap:14px; margin-top:6px; }
.archive-lightbox .lightbox-actions button { border:1px solid #cdd7f5; border-radius:12px; padding:7px 16px; background:#eef2ff; color:#354999; cursor:pointer; font:700 14px var(--font-heading, Tahoma, sans-serif); }
.archive-lightbox .lightbox-actions button:disabled { opacity:.35; cursor:default; }
.archive-lightbox button:focus-visible { outline:3px solid #6f85e4; outline-offset:3px; }
body:has(.archive-lightbox[open]) { overflow: hidden; }
@media(max-width:640px){
  .archive-lightbox { padding:10px; width:98vw; max-width:98vw; max-height:96dvh; border-radius:14px; }
  .archive-lightbox figure img { max-height:72dvh; }
  .archive-lightbox .lightbox-actions button { padding:8px 10px; }
  html { scroll-padding-top: 76px; }
  [id] { scroll-margin-top: 76px; }
}
