/* Legacy article-lightbox markup retained for older static article pages. */
.article-lightbox[hidden] { display: none; }
.article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
}
.article-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(7 19 23 / 88%);
  backdrop-filter: blur(4px);
}
.article-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(96vw, 1440px);
  max-height: 94vh;
  outline: none;
}
.article-lightbox__image {
  display: block;
  width: auto;
  max-width: 96vw;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 34%);
}
.article-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #102328;
  font: 400 30px/1 Arial, sans-serif;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
  cursor: pointer;
}
.article-lightbox__close:hover { background: #d8f4e5; }
.article-lightbox__close:focus-visible { outline: 3px solid #a7f36b; outline-offset: 3px; }
.article-lightbox__caption {
  max-width: 92ch;
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}
.article-lightbox-open { overflow: hidden; }

/* Full-size article screenshots — shared by case studies, playbooks and OS demos. */
.art-content-wrap img.article-zoomable,
.cab-shot-btn { cursor: zoom-in; }
.art-content-wrap figure { margin: var(--sp-6) 0; }
.art-content-wrap figure > img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.art-content-wrap figure > figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--fg-3);
  text-align: center;
}
.art-content-wrap img.article-zoomable:focus-visible,
.cab-shot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: color-mix(in oklab, oklch(8% 0 0) 84%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-lightbox.is-open { display: flex; }
.lightbox-dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line));
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--bg-2) 94%, transparent);
  box-shadow: 0 28px 90px -24px rgb(0 0 0 / 72%);
}
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.lightbox-figure img {
  display: block;
  width: auto;
  max-width: min(92vw, 1400px);
  height: auto;
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: 0 12px 36px rgb(0 0 0 / 25%);
}
.lightbox-figure figcaption {
  max-width: min(92vw, 1100px);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--fg-2);
  text-align: center;
}
.lightbox-figure figcaption[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in oklab, var(--bg-2) 90%, transparent);
  color: var(--fg);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .article-lightbox { padding: 12px; }
  .article-lightbox__dialog { width: 100%; }
  .article-lightbox__image { max-width: calc(100vw - 24px); max-height: 82vh; border-radius: 5px; }
  .article-lightbox__close { top: -10px; right: -4px; width: 36px; height: 36px; font-size: 27px; }
}
@media (max-width: 600px) {
  .image-lightbox { padding: 10px; }
  .lightbox-dialog { padding: 10px; border-radius: var(--radius-md); }
  .lightbox-figure img { max-width: 96vw; max-height: calc(100dvh - 78px); }
  .lightbox-close { top: 4px; right: 4px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-lightbox__backdrop,
  .article-lightbox__image { transition: none; }
  .image-lightbox { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
