/* Screenshot gallery – used by screenshots.html together with style.css */
.gallery-head{padding-block:64px 8px}
.gallery-head h1{font-size:clamp(40px,5vw,64px);margin:22px 0 18px}
.gallery-head p{color:#4c5253;max-width:58ch;font-size:19px;margin:0}

.chips{position:sticky;top:0;z-index:5;background:var(--paper);border-bottom:1px solid var(--line);margin-top:34px}
.chips .wrap{display:flex;gap:10px;overflow-x:auto;padding-block:12px;scrollbar-width:thin}
.chips a{flex:none;text-decoration:none;font-size:14px;font-weight:650;padding:6px 14px;border:1px solid var(--line);border-radius:30px;background:var(--paper)}
.chips a:hover{background:var(--ink);color:#fff;border-color:var(--ink)}

.shots{padding-block:56px 8px;scroll-margin-top:60px}
.shots h2{font-size:clamp(28px,3.2vw,40px);margin:14px 0 26px}

/* Cards reflow by themselves: as many as fit, at least 280px wide, never wider than the page */
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:28px 24px;margin:0;padding:0;list-style:none}
.gal li{min-width:0}
.shot{margin:0;min-width:0}

/* Fixed frame: whatever size or shape the screenshot has, it is scaled to fit inside – the layout never changes */
.frame{position:relative;display:block;width:100%;aspect-ratio:16/10;border:1px solid #39424c;border-radius:10px;overflow:hidden;background:#242c35;padding:0;font:inherit;color:inherit}
.frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.frame.has-img{cursor:zoom-in;background:#202730;transition:box-shadow .15s,transform .15s}
.frame.has-img:hover{box-shadow:0 14px 28px -18px #202730;transform:translateY(-2px)}

/* Placeholder shown until the image file exists */
.ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px;text-align:center;
  background-image:radial-gradient(#4e5660 .7px,transparent .9px);background-size:13px 13px;color:#b4bcc4}
.ph svg{width:34px;height:34px;opacity:.7}
.ph b{font:700 11px/1.5 ui-monospace,Consolas,monospace;letter-spacing:1.2px;color:#ffba85}
.ph code{font:12px/1.4 ui-monospace,Consolas,monospace;color:#f2c398;overflow-wrap:anywhere}
.has-img .ph{display:none}

.shot figcaption{padding-top:12px}
.shot h3{font-size:19px;margin:0 0 4px;letter-spacing:-.03em}
.shot p{margin:0;font-size:15px;color:#464e50}

.note{margin-top:56px}

/* Lightbox */
dialog.lb{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100%;height:100%;color:#fff}
dialog.lb::backdrop{background:rgba(20,26,32,.92)}
.lb-in{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:16px;gap:12px}
.lb-in img{max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;border-radius:6px;background:#202730}
.lb-in p{margin:0;font-size:15px;text-align:center;max-width:70ch}
.lb-in button{background:#333e48;border:1px solid #77818a;border-radius:30px;color:#fff;padding:8px 16px;font:inherit;font-size:14px;cursor:pointer;min-height:40px}
.lb-in button:hover{background:#43515c}

@media(max-width:580px){
  .gallery-head{padding-block:42px 4px}
  .gallery-head p{font-size:17px}
  .shots{padding-block:40px 4px}
  .gal{gap:24px}
}
@media(prefers-reduced-motion:reduce){.frame.has-img{transition:none}}
.chips a[hidden],.shots[hidden],.gal li[hidden]{display:none}
