/* Reusable app screenshot gallery; only included by overview pages with screenshots. */
.screenshot-gallery{margin:28px 0 34px}
.screenshot-gallery h3{margin-bottom:6px}
.refined-subpage .gallery-hint{font-size:14px;line-height:1.5;color:var(--muted)}
.screenshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 16px}
.screenshot-grid figure{margin:0;min-width:0}
.screenshot-link{display:block;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:var(--bg);box-shadow:var(--shadow);cursor:zoom-in}
.screenshot-link img{display:block;width:100%;height:auto;aspect-ratio:944/2048;object-fit:contain}
.screenshot-grid figcaption{margin:9px 0 0;font-size:13px;line-height:1.4;text-align:center;color:var(--muted)}
.screenshot-dialog{border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);padding:12px;max-width:96vw;max-height:95dvh;width:min(620px,96vw);overflow:auto}
.screenshot-dialog::backdrop{background:rgba(0,0,0,.83)}
.screenshot-dialog-top{display:flex;justify-content:flex-end}
.screenshot-dialog button{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:12px;min-width:40px;min-height:40px;font-size:26px;cursor:pointer}
.screenshot-dialog-body{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px}
.screenshot-dialog-body img{display:block;max-width:100%;max-height:calc(95dvh - 110px);width:auto;height:auto;justify-self:center;object-fit:contain;border-radius:10px}
.screenshot-dialog-caption{margin:10px 0 2px;text-align:center;font-size:14px}
@media(max-width:650px){.screenshot-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding:3px 3px 12px;overscroll-behavior-inline:contain}.screenshot-grid figure{flex:0 0 75%;max-width:280px;scroll-snap-align:start}.screenshot-dialog{padding:8px}.screenshot-dialog-body{gap:4px;grid-template-columns:34px minmax(0,1fr) 34px}.screenshot-dialog button{min-width:34px}}
