/* Shotbox — AxonVet app-screenshot template: thumb + click-to-zoom lightbox.
   Shared by help articles and marketing pages. Markup template:
   <figure class="shot"><a href="X-full.webp" data-shotbox="alt"><img src="X-thumb.webp" …></a><figcaption>…</figcaption></figure>
   JS companion: assets/shotbox.js */
figure.shot { margin: 0; position: relative; }
/* help articles need their own vertical rhythm; marketing galleries keep the
   margin:0 their layout sets (shotbox.css loads after fieldwork.css) */
.help figure.shot { margin: 1.4em 0; }
figure.shot > a { display: block; cursor: zoom-in; border-radius: 4px; }
/* NOTE: no `display` here — base.css img.shot-dark swap relies on
   toggling display, and `figure.shot img` outranks `img.shot-dark`. */
figure.shot img { width: 100%; height: auto; vertical-align: bottom; border: 1px solid var(--line, #d7d5c8); border-radius: 4px; background: var(--white, #fff); transition: transform 0.25s ease; }
figure.shot > a:hover img, figure.shot > a:focus-visible img { transform: scale(1.015); }
figure.shot > a:focus-visible { outline: 2px solid var(--accent, #1c6b4a); outline-offset: 2px; }

/* overlay */
.shotbox { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 4vmin; opacity: 0; visibility: hidden; transition: opacity 0.18s ease, visibility 0s linear 0.18s; }
/* visibility flips instantly on open (delay 0) so focus() lands; the 0.18s
   delay above only applies when closing, after the fade completes. */
.shotbox.open { opacity: 1; visibility: visible; transition: opacity 0.18s ease, visibility 0s; }
.shotbox-backdrop { position: absolute; inset: 0; background: rgba(14, 16, 14, 0.84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.shotbox-frame { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 96vw; transform: scale(0.96); transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shotbox.open .shotbox-frame { transform: scale(1); }
.shotbox-stage { position: relative; display: grid; place-items: center; }
.shotbox-stage img { max-width: min(96vw, 2560px); max-height: 80vh; display: block; border-radius: 8px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); }
.shotbox figcaption { color: #eceade; font: 13px/1.6 "Courier New", monospace; text-align: center; max-width: min(96vw, 900px); }
.shotbox-x, .shotbox-nav { -webkit-appearance: none; appearance: none; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(20, 22, 20, 0.55); color: #f2f0e4; cursor: pointer; display: grid; place-items: center; transition: background 0.15s ease, border-color 0.15s ease; }
.shotbox-x:hover, .shotbox-nav:hover { background: rgba(60, 64, 58, 0.8); border-color: rgba(255, 255, 255, 0.5); }
.shotbox-x:focus-visible, .shotbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.shotbox-x { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; font: 500 20px/1 sans-serif; }
.shotbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; font: 500 26px/1 sans-serif; padding: 0 0 3px; }
.shotbox-prev { left: -62px; }
.shotbox-next { right: -62px; }
html.shotbox-lock, html.shotbox-lock body { overflow: hidden; }
@media (max-width: 820px) {
  .shotbox-x { top: 8px; right: 8px; }
  .shotbox-prev { left: 8px; }
  .shotbox-next { right: 8px; }
  .shotbox-stage img { max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) {
  .shotbox, .shotbox-frame, figure.shot img { transition: none; }
}
