.platform-gallery-open{overflow:hidden}
.platform-gallery-dialog{position:fixed;inset:0;max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;padding:0;border:0;background:#f7f7f5;color:#111;z-index:100000;overflow:hidden}
.platform-gallery-dialog::backdrop{background:rgba(0,0,0,.7)}
.platform-gallery-toolbar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:12px;padding:12px 18px;background:rgba(255,255,255,.9);z-index:3}
.platform-gallery-toolbar button{background:#fff;color:#111;border:1px solid #bbb;box-shadow:none;min-height:44px;min-width:44px;padding:8px 12px;font-size:22px}
.platform-gallery-toolbar [data-gallery-close]{margin-left:auto}
.platform-gallery-stage{position:absolute;inset:72px 0 42px;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;cursor:default;user-select:none}
.platform-gallery-stage.is-zoomed{cursor:grab}.platform-gallery-stage.is-zoomed:active{cursor:grabbing}
.platform-gallery-stage img{width:100%;height:100%;max-width:none;object-fit:contain;transform-origin:center;pointer-events:none;user-select:none;-webkit-user-drag:none}
.platform-gallery-prev,.platform-gallery-next{position:absolute;top:50%;z-index:3;width:44px;min-height:50px;padding:4px;background:rgba(255,255,255,.85);color:#111;border:1px solid #ddd;border-radius:4px;font-size:32px;line-height:1}
.platform-gallery-prev{left:12px}.platform-gallery-next{right:12px}
.platform-gallery-hint{position:absolute;bottom:0;width:100%;text-align:center;font-size:12px;margin:0;padding:12px;line-height:18px;background:#fff}
@media(max-width:480px){.platform-gallery-toolbar{gap:8px;padding:10px}.platform-gallery-stage{inset:64px 0 52px}.platform-gallery-prev{left:6px}.platform-gallery-next{right:6px}.platform-gallery-hint{padding:8px 32px}}
.platform-gallery-inline{position:relative;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1;width:100%;overflow:hidden;background:#fafafa}
.platform-gallery-inline>img{width:100%;height:100%;object-fit:contain}
.platform-gallery-inline>button{position:absolute;background:rgba(255,255,255,.9);color:#111;border:1px solid #ddd;box-shadow:none;min-width:40px;min-height:44px;padding:4px 10px;font-size:28px}
.platform-gallery-inline>[data-gallery-prev]{left:10px;top:50%}.platform-gallery-inline>[data-gallery-next]{right:10px;top:50%}.platform-gallery-inline>[data-gallery-open]{bottom:10px;right:10px}
.platform-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:12px 0}
.platform-gallery-thumbs button{background:#fff;border:1px solid #ddd;padding:3px;flex:0 0 68px;height:68px;box-shadow:none}
.platform-gallery-thumbs button[aria-pressed=true]{border-color:var(--accent)}.platform-gallery-thumbs img{width:100%;height:100%;object-fit:contain}
