.epklg-grid{display:grid;grid-template-columns:repeat(var(--epklg-cols,3),minmax(0,1fr));gap:var(--epklg-gap,12px);align-items:start}
.epklg-grid figure{margin:0!important;min-width:0}.epklg-grid a{display:block}.epklg-grid img{display:block;width:100%;height:auto}.epklg-grid figcaption{font-size:.9em;line-height:1.5;margin-top:8px}.epklg-square img{aspect-ratio:1;object-fit:cover}.epklg-landscape img{aspect-ratio:4/3;object-fit:cover}.epklg-clickable{cursor:zoom-in}.epklg-clickable:focus-visible,.epklg-grid a:focus-visible{outline:3px solid #2878d0;outline-offset:3px}
.epklg-dialog{box-sizing:border-box;border:0;padding:16px;background:#11151a;color:#fff;width:96vw;max-width:1600px;height:94dvh;max-height:94dvh;overflow:auto;border-radius:8px}
.epklg-dialog::backdrop{background:rgba(0,0,0,.88)}.epklg-dialog[open]{display:flex;flex-direction:column}.epklg-toolbar{display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.epklg-dialog button{appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border:1px solid #66717c;background:#222c36;color:#fff;border-radius:6px;min-width:44px;height:44px;padding:0 12px;font:28px/1 sans-serif;cursor:pointer}.epklg-dialog button:disabled{opacity:.3;cursor:default}.epklg-dialog button:focus-visible{outline:3px solid #91c9ff;outline-offset:2px}.epklg-stage{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-height:0;margin:12px 0}.epklg-stage button{flex-shrink:0}.epklg-stage .epklg-image{display:block;min-width:0;max-width:calc(100% - 112px);width:auto;height:auto;max-height:100%;object-fit:contain;margin:auto}.epklg-caption,.epklg-status{margin:4px 0!important;text-align:center;font:15px/1.5 system-ui,sans-serif;flex-shrink:0}.epklg-status:empty,.epklg-caption:empty{display:none}.epklg-caption{max-height:20vh;overflow:auto}.epklg-count{font:14px system-ui,sans-serif}
@media(max-width:780px){.epklg-grid{grid-template-columns:repeat(min(var(--epklg-cols,3),2),minmax(0,1fr))}}@media(max-width:480px){.epklg-grid{grid-template-columns:1fr}.epklg-dialog{padding:10px;width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.epklg-stage{gap:4px}.epklg-stage .epklg-image{max-width:calc(100% - 96px)}}
