.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px;padding-bottom:65px}.gallery-card{margin:0;min-width:0}.gallery-open{display:block;position:relative;overflow:hidden;background:var(--paper)}.gallery-open img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;transition:transform .35s}.gallery-open:hover img{transform:scale(1.035)}.gallery-zoom{position:absolute;right:14px;bottom:14px;width:37px;height:37px;display:grid;place-items:center;background:var(--paper);border-radius:50%;font-size:23px}.gallery-card figcaption{padding:13px 2px;font-size:16px}.gallery-dialog{width:min(1100px,94vw);max-height:94dvh;border:0;padding:50px 18px 16px;background:var(--paper);color:var(--blue);overflow:auto}.gallery-dialog::backdrop{background:rgba(5,20,33,.88)}.gallery-view{display:flex;align-items:center;gap:12px}.gallery-view figure{margin:0;flex:1;min-width:0}.gallery-view img{width:100%;height:auto;max-height:65dvh;object-fit:contain}.gallery-view figcaption{text-align:center;padding:16px 8px 0}.gallery-dialog button{border:1px solid var(--line);background:var(--paper);color:var(--blue);width:44px;height:44px;flex-shrink:0;font-size:30px;line-height:1}.gallery-close{position:absolute;right:14px;top:10px}.gallery-counter{text-align:center;margin:12px 0 0;font-size:14px;color:var(--muted)}body.gallery-is-open{overflow:hidden}@media(max-width:800px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.gallery-view{gap:5px}.gallery-dialog{padding-inline:7px}.gallery-dialog button{width:36px;height:40px}.gallery-view img{max-height:55dvh}.gallery-card figcaption{font-size:14px}}@media(max-width:480px){.gallery-grid{grid-template-columns:1fr;padding-bottom:35px}.gallery-open img{aspect-ratio:4/3}.gallery-view img{max-height:50dvh}}@media(prefers-reduced-motion:reduce){.gallery-open img{transition:none}}
