.current-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#080b0c}
.current-gallery-grid>a{display:block;overflow:hidden;aspect-ratio:1/1.77;min-width:0}
.current-gallery-grid>a[hidden]{display:none!important}
.current-gallery-grid img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 200ms ease}
.current-gallery-grid>a:focus-visible{outline:3px solid #fff;outline-offset:-5px}
.current-gallery-dialog{box-sizing:border-box;position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:64px 64px 56px;margin:0;border:0;background:#080b0cf5;color:#fff;overflow:hidden;font:16px/1.4 SiteSans,Arial,sans-serif}
.current-gallery-dialog::backdrop{background:#080b0c}
.current-gallery-dialog[open]{display:flex;align-items:center;justify-content:center}
.current-gallery-dialog figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;height:100%;min-height:0}
.current-gallery-dialog img{display:block;max-width:100%;min-height:0;max-height:100%;object-fit:contain;flex:1}
.current-gallery-dialog figcaption{text-align:center;flex:none;max-width:80ch;overflow-wrap:anywhere}
.current-gallery-dialog button{position:absolute;display:grid;place-items:center;min-width:48px;min-height:48px;padding:8px;border:1px solid #666;border-radius:4px;background:#111;color:#fff;cursor:pointer;font:24px/1 SiteSans,Arial,sans-serif}
.current-gallery-dialog button:focus-visible{outline:3px solid white;outline-offset:3px}
.current-gallery-dialog button[hidden]{display:none}
.current-gallery-close{top:12px;right:16px}.current-gallery-prev{left:8px;top:calc(50% - 24px)}.current-gallery-next{right:8px;top:calc(50% - 24px)}
.current-gallery-count{position:absolute;top:24px;left:24px;font-variant-numeric:tabular-nums}
html:has(.current-gallery-dialog[open]){overflow:hidden}
@media(hover:hover){.current-gallery-grid>a:hover img{transform:scale(1.035)}}
@media(max-width:700px){.current-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.current-gallery-dialog{padding:70px 12px 90px}.current-gallery-prev,.current-gallery-next{top:auto;bottom:20px}.current-gallery-prev{left:calc(50% - 60px)}.current-gallery-next{right:calc(50% - 60px)}.current-gallery-dialog figcaption{font-size:14px}}
@media(prefers-reduced-motion:reduce){.current-gallery-grid img{transition:none}}
