.screenshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.screenshot-card{margin:0;min-width:0}
.screenshot-card a{display:block;text-decoration:none}
.screenshot-card img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:contain;background:#101820;border:1px solid var(--line)}
.screenshot-card figcaption{padding:7px 0;font-size:.95rem}
.screenshot-card a:hover img{border-color:var(--blue)}
.gallery-dialog{max-width:calc(100vw - 24px);width:1100px;max-height:calc(100dvh - 24px);padding:16px;border:1px solid var(--line);background:var(--paper);color:var(--text)}
.gallery-dialog::backdrop{background:rgba(0,0,0,.8)}
.gallery-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px}
.gallery-controls button{min-width:44px;min-height:44px}
.gallery-dialog [data-gallery-full]{display:block;max-width:100%;width:auto;height:auto;max-height:calc(100dvh - 170px);margin:auto;object-fit:contain}
.gallery-dialog #gallery-caption{margin:10px 0 0;text-align:center}
body.gallery-open{overflow:hidden}
@media(max-width:800px){.screenshot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:480px){.screenshot-grid{grid-template-columns:1fr}.gallery-dialog{padding:10px}.gallery-controls{gap:8px}.gallery-controls button{padding:7px 9px}}
