/* Screenshot previews — shared by the homepage and features page. */
a.screenshot-preview { cursor: zoom-in; }
.shot figcaption a.screenshot-preview { display: inline; color: #84cef9; font-weight: 650; }
.shot figcaption a.screenshot-preview:hover { text-decoration: underline; }
html.screenshot-modal-open { overflow: hidden; }
.screenshot-dialog {
  color: var(--ink); background: #111e2d; border: 1px solid #456077;
  border-radius: 12px; padding: 0; margin: auto;
  width: min(1442px, calc(100% - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  box-shadow: 0 20px 80px #000b; overflow: hidden;
}
.screenshot-dialog[open] { display: flex; flex-direction: column; }
.screenshot-dialog::backdrop { background: rgba(4, 10, 19, .86); }
.screenshot-dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 16px; border-bottom: 1px solid #385068;
  flex-shrink: 0;
}
.screenshot-dialog-title { font-size: .95rem; line-height: 1.4; margin: 0; color: var(--ink); letter-spacing: 0; }
.screenshot-dialog-close {
  display: grid; place-items: center; flex: 0 0 44px; height: 44px;
  color: #e4edf7; background: #26394d; border: 1px solid #526d83;
  border-radius: 8px; font: inherit; font-size: 30px; line-height: 1; cursor: pointer;
}
.screenshot-dialog-close:hover { background: #385068; }
.screenshot-dialog-close:focus-visible { outline: 3px solid #ffad59; outline-offset: 2px; }
.screenshot-dialog-image-area { min-height: 0; display: grid; place-items: center; overflow: auto; background: #0b1420; }
.screenshot-dialog-image {
  display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px); object-fit: contain;
}
.screenshot-dialog-error { padding: 24px; color: var(--muted); }
@media (max-width: 620px) {
  .screenshot-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 9px; }
  .screenshot-dialog-header { padding: 8px 10px; gap: 8px; }
  .screenshot-dialog-title { font-size: .83rem; }
}

.screenshot-dialog [hidden] { display: none; }
