.mpu-gallery-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:16px;border:0;background:rgba(12,16,23,.97);color:#fff}
.mpu-gallery-dialog:not([open]){display:none}
.mpu-gallery-dialog::backdrop{background:rgba(0,0,0,.88)}
.mpu-gallery-view{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:12px;height:100%;padding-top:48px;padding-bottom:36px;box-sizing:border-box;pointer-events:none}
.mpu-gallery-view>*{pointer-events:auto}
.mpu-gallery-view figure{min-width:0;min-height:0;margin:0;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}
.mpu-gallery-view img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;pointer-events:auto}
.mpu-gallery-dialog button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:48px;height:48px;min-width:48px;padding:0;border:1px solid #fff;border-radius:50%;background:#18212e;color:#fff;font-size:32px;line-height:1;cursor:pointer;box-shadow:0 2px 8px #0008}
.mpu-gallery-dialog button:hover{background:#a6370c}
.mpu-gallery-dialog button:focus-visible{outline:3px solid #ffb26d;outline-offset:4px}
.mpu-gallery-dialog [hidden]{display:none!important}
.mpu-gallery-close{position:absolute;right:0;top:0}
.mpu-gallery-count{position:absolute;bottom:0;left:0;right:0;margin:0;text-align:center;font-size:1rem;color:#fff}
@media(max-width:600px){.mpu-gallery-dialog{padding:10px}.mpu-gallery-view{grid-template-columns:44px minmax(0,1fr) 44px;gap:5px}.mpu-gallery-dialog button{width:44px;height:44px;min-width:44px}.mpu-gallery-view figure{grid-column:1/-1;grid-row:1}.mpu-gallery-view [data-mpu-gallery-previous]{grid-column:1;grid-row:1;z-index:1}.mpu-gallery-view [data-mpu-gallery-next]{grid-column:3;grid-row:1;z-index:1}.mpu-gallery-close{z-index:2}}
