/* Real product screenshots: a legible crop of the capture, with tap-to-enlarge.
   Shared by the Aerethis home page and the Aerenium product page.
   Inline custom properties describe the capture and the crop, in source pixels:
   --iw (image width), --d-* (desktop crop x/y/width/height), --m-* (phone crop). */
.shot { margin: 0; min-width: 0; }
.shot-link {
  --cx: var(--d-cx); --cy: var(--d-cy); --cw: var(--d-cw); --ch: var(--d-ch);
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--cw) / var(--ch);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  background: var(--bg-1); box-shadow: var(--shadow-card);
}
.shot-link img {
  position: absolute; display: block; max-width: none; height: auto;
  width: calc(var(--iw) / var(--cw) * 100%);
  left: calc(var(--cx) / var(--cw) * -100%);
  top: calc(var(--cy) / var(--ch) * -100%);
}
.shot-hint {
  position: absolute; right: 12px; bottom: 12px; padding: 6px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(10, 11, 18, .86); color: var(--text-1);
  font-size: 12px; font-weight: 600; line-height: 1.4;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.shot-link:hover .shot-hint, .shot-link:focus-visible .shot-hint { border-color: var(--accent-3); background: var(--bg-3); }
.shot-link:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; }
.shot figcaption { margin-top: 12px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
@media (max-width: 640px) {
  .shot-link { --cx: var(--m-cx, var(--d-cx)); --cy: var(--m-cy, var(--d-cy)); --cw: var(--m-cw, var(--d-cw)); --ch: var(--m-ch, var(--d-ch)); }
}

.shot-zoom {
  /* styles.css resets every margin to 0, which would pin the native dialog to the top-left. */
  margin: auto; padding: 0; overflow: hidden;
  width: fit-content; min-width: min(360px, 96vw); max-width: 96vw; max-height: 94vh; max-height: 94dvh;
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  background: var(--bg-0); color: var(--text-1);
}
.shot-zoom[open] { display: flex; flex-direction: column; }
.shot-zoom.is-actual { width: 96vw; }
.shot-zoom::backdrop { background: rgba(5, 6, 10, .84); }
.shot-zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.shot-zoom-bar form { margin: 0; }
.shot-zoom-scroll { display: flex; overflow: auto; min-height: 0; }
/* Fit by default: the whole screenshot is visible, aspect preserved, centered both ways.
   Auto margins keep it centered when small and scrollable from its edge when larger. */
.shot-zoom-scroll img {
  display: block; margin: auto; cursor: zoom-in;
  width: auto; height: auto; max-width: calc(96vw - 2px); max-height: calc(94vh - 72px); max-height: calc(94dvh - 72px);
}
.shot-zoom.is-actual .shot-zoom-scroll img { max-width: none; max-height: none; cursor: zoom-out; }
