.material-filters{display:flex;flex-wrap:wrap;gap:8px 24px;margin:28px 0 32px;border-bottom:1px solid #d9dce0}
.material-filters button{appearance:none;background:none;border:0;border-bottom:3px solid transparent;padding:12px 0;color:#071e3a;font:inherit;cursor:pointer}
.material-filters button[aria-pressed=true]{border-bottom-color:#e8003d;font-weight:700}
.material-filters button:focus-visible,.material-gallery a:focus-visible{outline:2px solid #e8003d;outline-offset:5px}
.material-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 24px}
.material-gallery figure{margin:0;min-width:0}
.material-gallery a{display:block}
.material-gallery img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.material-gallery figcaption{font-size:14px;line-height:1.65;color:#526278;margin-top:12px}
.material-count{font-size:13px;color:#526278;margin-top:24px}
[data-material-filter] [hidden]{display:none!important}
.material-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:32px 0}
.material-work-grid figure{margin:0}
.material-work-grid img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;background:#fff}
.material-work-grid figcaption{font-size:14px;line-height:1.7;margin-top:14px}
.material-origin{padding:24px 0 32px;border-bottom:1px solid #d9dce0;margin-bottom:36px;max-width:70ch}
.material-origin h3{margin:0 0 12px}
@media(max-width:850px){.material-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}.material-work-grid{grid-template-columns:1fr}.material-work-grid img{max-height:300px}}
@media(max-width:580px){.material-gallery{grid-template-columns:1fr;gap:28px}.material-filters{gap:4px 20px;margin:20px 0 24px}.material-filters button{font-size:14px}.material-gallery figcaption{font-size:14px}}

@media(max-width:580px){.material-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}.material-filters button{flex:0 0 auto;white-space:nowrap}}
