.coin-gallery{box-sizing:border-box;width:min(1000px,96vw);max-width:96vw;max-height:94dvh;padding:48px 16px 16px;border:0;border-radius:12px;background:#fff;color:#222;box-shadow:0 12px 60px #0008;overflow:auto}
.coin-gallery::backdrop{background:#000c}
.coin-gallery figure{margin:0;text-align:center}
.coin-gallery figure img{display:block;max-width:100%;width:auto;height:auto;max-height:65dvh;object-fit:contain;margin:0 auto}
.coin-gallery figcaption{margin:12px 0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.coin-gallery button{cursor:pointer;border:1px solid #bbb;border-radius:6px;padding:10px 16px;background:#fff;color:#333;font:inherit;min-height:44px}
.coin-gallery button:focus-visible{outline:3px solid #147985;outline-offset:2px}
.coin-gallery button:disabled{opacity:.35;cursor:default}
.coin-gallery .coin-gallery-close{position:absolute;right:8px;top:4px;font-size:26px;line-height:1;padding:8px 14px}
.coin-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}
.coin-gallery-count{font-size:14px;white-space:nowrap}
@media(max-width:480px){.coin-gallery{padding:48px 10px 12px}.coin-gallery button{font-size:14px;padding:8px 12px}.coin-gallery figure img{max-height:60dvh}}
