.image-gallery{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:20px 24px;border:0;background:#10141bed;color:#fff;box-sizing:border-box;overflow:hidden}
.image-gallery::backdrop{background:#10141bda}
.image-gallery[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.image-gallery-toolbar{display:flex;align-items:center;gap:18px;width:100%;flex-shrink:0}
.image-gallery-toolbar h2{flex:1;min-width:0;margin:0;color:#fff;font:650 16px/1.5 system-ui,sans-serif}
.image-gallery-counter{font-size:14px;white-space:nowrap;color:#e3e7ed}
.image-gallery button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #ffffff50;border-radius:10px;background:#ffffff16;color:#fff;font:500 27px/1 system-ui,sans-serif;cursor:pointer;min-width:46px;min-height:46px;flex-shrink:0}
.image-gallery button:hover{background:#ffffff30;color:#fff}
.image-gallery button:focus-visible{outline:3px solid #fce052;outline-offset:3px}
.image-gallery-stage{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;flex:1;min-height:0;pointer-events:none}
.image-gallery-stage>button{pointer-events:auto}
.image-gallery .image-gallery-photo{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;max-width:calc(100% - 130px);height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer}
.image-gallery .image-gallery-photo:hover{background:transparent}
.image-gallery .image-gallery-photo:disabled{opacity:1;cursor:default}
.image-gallery-photo img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform:none}
.image-gallery-status{font:400 14px/1.6 system-ui,sans-serif;text-align:center;margin:0;color:#fff;flex-shrink:0}
.image-gallery-status:empty{display:none}
.image-gallery-caption{font:400 14px/1.6 system-ui,sans-serif;text-align:center;margin:0;width:100%;max-height:3.2em;overflow:auto;color:#e3e7ed;flex-shrink:0}
.image-gallery .image-gallery-photo:disabled{max-width:100%}
@media(max-width:600px){.image-gallery{padding:12px;gap:10px}.image-gallery-toolbar{gap:10px}.image-gallery-toolbar h2{font-size:14px}.image-gallery-stage{gap:8px}.image-gallery .image-gallery-photo{max-width:calc(100% - 92px)}.image-gallery button{min-width:38px;min-height:44px;font-size:23px}.image-gallery-caption{font-size:13px}}
