.gallery-stage{position:relative;touch-action:pan-y pinch-zoom}.gallery-expand{display:block;width:100%;padding:0;border:1px solid var(--border);background:var(--surface2);color:var(--text);cursor:zoom-in;text-align:start}.gallery-expand img{width:100%;height:100%;object-fit:cover}.gallery-expand.is-screenshot img{object-fit:contain}.gallery-zoom{position:absolute;right:14px;top:14px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;background:#14101de0;color:white;border:1px solid #ffffff38;border-radius:6px;font-size:10px}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:44px;display:grid;place-items:center;border:1px solid #ffffff50;border-radius:50%;background:#17131fe8;color:white;z-index:2}.gallery-arrow:hover{background:#352c46}.gallery-prev{left:12px}.gallery-prev svg{transform:rotate(180deg)}.gallery-next{right:12px}.gallery-meta{display:flex;justify-content:space-between;gap:15px;margin:15px 0 10px;font-size:11px;color:var(--muted)}.gallery-thumbnails{display:flex;gap:9px;overflow-x:auto;padding:4px 3px 8px;scroll-snap-type:x proximity}.gallery-thumbnails a{width:100px;height:70px;flex-shrink:0;border:2px solid var(--border);border-radius:7px;overflow:hidden;scroll-snap-align:start;background:var(--surface2)}.gallery-thumbnails [aria-current=true]{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}.gallery-thumbnails img{width:100%;height:100%;object-fit:cover}.gallery-caption{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0 0;min-height:18px}.gallery-dialog{width:min(1160px,96vw);max-width:96vw;max-height:94dvh;padding:15px 20px 18px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--text);overflow:auto}.gallery-dialog::backdrop{background:#0a0712dc}.gallery-dialog-bar{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px}.gallery-dialog-bar .icon-button{width:44px}.gallery-dialog-image{position:relative;display:grid;place-items:center;background:var(--bg);min-height:180px}.gallery-dialog-image>img{width:100%;height:auto;max-height:70dvh;object-fit:contain}.gallery-dialog .gallery-caption{text-align:center}.screenshot-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:24px 0}.screenshot-edit-card{border:1px solid var(--border);padding:12px;border-radius:9px;min-width:0}.screenshot-edit-card>img{width:100%;height:135px;object-fit:contain;background:var(--bg);border-radius:5px;margin-bottom:15px}.screenshot-edit-card .field{margin-bottom:12px}.screenshot-edit-card .field label{font-size:10px}.screenshot-actions{display:flex;gap:7px;flex-wrap:wrap}.screenshot-actions button{background:var(--bg);color:var(--muted);border:1px solid var(--border);border-radius:5px;padding:7px 9px;font-size:10px;min-height:36px}.screenshot-actions button:hover{color:var(--text);border-color:var(--lime)}.screenshot-upload-previews{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:15px}.screenshot-upload-preview{width:112px;font-size:9px;overflow-wrap:anywhere;color:var(--muted)}.screenshot-upload-preview img{width:112px;height:76px;object-fit:contain;background:var(--bg);border-radius:6px;margin-bottom:5px}@media(max-width:760px){.gallery-thumbnails a{width:84px;height:62px}.gallery-zoom{font-size:9px;padding:6px 8px}.gallery-arrow{width:38px;height:42px}.gallery-dialog{padding:9px 12px 15px;width:96vw}.gallery-dialog-image>img{max-height:65dvh}.screenshot-editor-grid{grid-template-columns:1fr}.gallery-caption{font-size:10px}}
