.work-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:40px}
.work-gallery__item{display:block;width:100%;padding:0;border:0;border-radius:16px;overflow:hidden;background:#eceae6;cursor:zoom-in;aspect-ratio:4/3}
.work-gallery__item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.work-gallery__item:hover img{transform:scale(1.035)}
.work-gallery__item:focus-visible{outline:3px solid #be944b;outline-offset:4px}
.work-viewer{position:fixed;inset:0;margin:auto;box-sizing:border-box;border:0;padding:48px 12px 12px;background:#171717;border-radius:12px;width:max-content;height:max-content;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
.work-viewer::backdrop{background:rgba(0,0,0,.86)}
.work-viewer img{display:block;margin:auto;max-width:calc(100vw - 48px);max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px);width:auto;height:auto;object-fit:contain}
.work-viewer button{position:absolute;right:8px;top:3px;width:44px;height:44px;border:0;background:transparent;color:#fff;font-size:34px;cursor:pointer}
@media(max-width:900px){.work-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:540px){.work-gallery{grid-template-columns:1fr;gap:16px;margin-top:26px}.work-gallery__item{border-radius:12px}}
