/* The big screenshot viewer, shared by the home page's tour and the docs' pictures (viewer.js). */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,22,16,.94); color: var(--bone); }
.viewer::backdrop { background: rgba(20,22,16,.7); }
.viewer figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 48px 72px 18px; gap: 12px; }
.viewer picture { display: contents; }
.viewer img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); border-radius: 3px; }
.viewer figcaption { color: var(--dim); font-weight: 600; text-align: center; max-width: 72ch; }
.viewer button { position: absolute; border: 0; background: var(--panel); color: var(--bone); box-shadow: var(--raised); border-radius: 2px; cursor: pointer; font: 700 28px/1 var(--text); }
.viewer button:hover { color: var(--signal); }
.viewer button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.viewer button[hidden] { display: none; }
.viewer .nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; }
.viewer .prev { left: 14px; }
.viewer .next { right: 14px; }
.viewer .close { top: 14px; right: 14px; width: 44px; height: 44px; }
.viewer .count { position: absolute; top: 24px; left: 18px; color: var(--faint); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) {
  .viewer figure { padding: 60px 12px 90px; }
  .viewer .nav { top: auto; bottom: 18px; transform: none; }
  .viewer .prev { left: calc(50% - 58px); }
  .viewer .next { right: calc(50% - 58px); }
}
/* a docs picture that opens the viewer */
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; border-radius: 3px; }
.shot-open:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
