/* Screenshot presentation for the public pages (TK-102, FR-20).
   Shared by /landing and /tutorials. Logical properties throughout so RTL is
   functional rather than mirrored — same discipline as lb-controls.css. */

.lb-shot,
.lb-shot-frame {
  margin: 0;
  min-inline-size: 0;                 /* without this a flex/grid child overflows 320px */
}

.lb-shot-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg2);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* A faint accent rim reads as "screen" without inventing a new token. */
  outline: 1px solid var(--accent-glow);
  outline-offset: -1px;
}

.lb-shot img,
.lb-shot-frame img {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: auto;                   /* width/height attrs give the aspect ratio */
  background: var(--bg3);
}

.lb-shot figcaption,
.lb-shot-cap {
  margin-block-start: 8px;
  color: var(--text3);
  font-size: .78rem;
  line-height: 1.5;
  text-align: start;
}

/* Absence state. backend/main.py:249 answers a missing file with index.html and
   HTTP 200, so the <img> error event is the only reliable signal — the module
   adds this class from there. */
.lb-shot-missing img { display: none; }

.lb-shot-missing::before {
  content: attr(data-missing-label);
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 160px;
  padding: 24px;
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  background: var(--bg3);
  color: var(--text3);
  font-size: .82rem;
  text-align: center;
}

@media (max-width: 640px) {
  .lb-shot-frame { border-radius: var(--radius); }
  .lb-shot-missing::before { min-block-size: 120px; padding: 16px; }
}
