.preview-count{position:absolute;right:8px;bottom:8px;padding:6px 9px;background:var(--bg);border:1px solid var(--border);color:var(--fg);font:9px var(--mono);letter-spacing:.04em}
.project-dialog .dialog-image{max-height:56vh;margin:22px auto 16px;min-height:0}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.gallery-controls[hidden],.gallery-thumbs[hidden]{display:none}
.gallery-controls button{min-width:44px;min-height:44px;font-size:18px}
.gallery-position{text-align:center;flex:1;min-width:0}
.gallery-position p{margin:0;font-size:12px;color:var(--fg)}
.gallery-position span{font:9px var(--mono);color:var(--muted)}
.gallery-full{display:inline-flex;min-height:44px;align-items:center;font:10px var(--mono);border-bottom:1px solid var(--border);white-space:nowrap}
.gallery-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 24px}
.gallery-thumb{display:flex;align-items:center;gap:10px;padding:9px;text-align:left;min-height:65px;color:var(--muted)}
.gallery-thumb[aria-pressed=true]{border-color:var(--fg);background:var(--surface);color:var(--fg)}
.gallery-thumb img{width:42px;height:48px;object-fit:contain;flex-shrink:0}
.gallery-thumb span{font-size:11px;line-height:1.4}
.site-motion-toggle{min-height:44px;padding:0 12px;font:10px var(--mono);letter-spacing:.04em}
.header-end{display:flex;align-items:center;gap:20px}
@media(max-width:600px){.header-end{display:none}.site-motion-toggle{margin:0}.hero-motion-toggle{position:absolute;right:16px;bottom:17px;z-index:5;font-size:9px;padding:0 9px;background:var(--bg)}.hero-orb{bottom:82px}.gallery-controls{flex-wrap:wrap;gap:8px}.gallery-full{order:4;justify-content:center;width:100%;font-size:10px}.gallery-thumbs{gap:6px}.gallery-thumb{flex-direction:column;align-items:center;text-align:center;padding:8px 5px;gap:7px}.gallery-thumb img{height:42px;width:48px}.gallery-thumb span{font-size:10px}.project-dialog .dialog-image{max-height:53vh}}
@media(min-width:601px){.hero-motion-toggle{position:absolute;right:28px;bottom:22px;z-index:5;background:var(--bg)}.hero-bottom{right:220px}}
