/* Screenshot figures for "Sixty Lines and a Hinge". Each shot's width comes
   from the physical width of its screen in inches (--in), so the screens in
   a row are drawn to scale against each other. */
.editorial-figure.ef-shots {
  --ef-bg: #101118;
  --ef-cyan: #67e8e0;
  --ef-amber: #f3c17a;
  --ef-text: #eef0f5;
  --ef-muted: #a6abbc;
  --span: 10.6;
  box-sizing: border-box;
  width: min(1000px, calc(100vw - 32px));
  margin: 3.25rem 50% 3.25rem;
  padding: clamp(1.1rem, 3vw, 2.4rem);
  transform: translateX(-50%);
  color: var(--ef-text);
  background: radial-gradient(circle at 12% 0%, rgba(103, 232, 224, .09), transparent 34%), var(--ef-bg);
  border: 1px solid rgba(166, 171, 188, .2);
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
}
.ef-shots *, .ef-shots *::before, .ef-shots *::after { box-sizing: border-box; }
.ef-shots p { margin: 0; color: inherit; }
.ef-shots .ef-eyebrow { color: var(--ef-cyan); font: 700 .67rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .15em; text-transform: uppercase; }
.ef-shots .ef-rowlabel { margin-top: 1.9rem; color: var(--ef-amber); font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.ef-shots__row { display: flex; justify-content: center; align-items: flex-end; gap: 4%; margin-top: 1rem; }
.ef-shot { flex: 0 0 auto; width: calc(var(--in) / var(--span) * 100%); }
.ef-shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(166, 171, 188, .28); border-radius: 10px; background: #000; }
.ef-shot p { margin-top: .6rem; color: var(--ef-muted); font: 400 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: center; }
.ef-shot p strong { display: block; color: var(--ef-text); font-weight: 600; }
.ef-shot--duo-open { --in: 4.37; }
.ef-shot--honor-open { --in: 5.39; }
.ef-shot--duo-folded { --in: 3.06; }
.ef-shot--honor-folded { --in: 2.66; }
.ef-shots--three { --span: 12.9; }
.ef-shots > figcaption { max-width: 72ch; margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid rgba(166, 171, 188, .18); color: var(--ef-muted); font: 400 .81rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* On a narrow page each row fills the width, so a pair stays to scale with
   itself but the rows no longer share one scale. */
@media (max-width: 640px) {
  .ef-shots__row { gap: 5%; }
  .ef-shots__row--open { --span: 10.3; }
  .ef-shots__row--folded { --span: 6.4; }
  .ef-shots--three .ef-shots__row { flex-wrap: wrap; row-gap: 1.2rem; --span: 9.4; }
  .ef-shot img { border-radius: 6px; }
}
