.work-gallery{padding:90px var(--gutter);background:#f9f4e9}
.work-gallery-heading{display:flex;justify-content:space-between;gap:50px;align-items:flex-end;margin-bottom:36px}
.work-gallery-heading h2{font-size:clamp(3rem,5vw,5.5rem);line-height:1;margin-top:18px}
.work-gallery-heading>p{max-width:34ch;color:var(--muted);line-height:var(--copy-leading)}
.work-gallery-filters{display:flex;gap:28px;flex-wrap:wrap;margin-bottom:30px}
.work-gallery-filters button{font:inherit;color:var(--muted);background:none;padding:10px 0;border-bottom:1px solid transparent;min-height:44px}
.work-gallery-filters [aria-pressed=true]{border-color:var(--burgundy);color:var(--burgundy)}
.work-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
.work-card{min-width:0}.work-card>button{display:block;width:100%;padding:0;background:#eee5d6;overflow:hidden}
.work-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover;transition:transform .5s ease}
.work-card>button:hover img{transform:scale(1.025)}
.work-card h3{font-size:clamp(1.75rem,2.2vw,2.5rem);line-height:1.15;margin:20px 0 10px}
.work-card p{font-size:var(--text-body);line-height:1.65;color:var(--muted)}
.work-card small{display:block;font-size:var(--text-small);line-height:1.5;color:var(--muted);margin-top:12px}
.accessory-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.accessory-options label{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px;border:1px solid var(--line);border-radius:5px;cursor:pointer;font-size:var(--text-control);line-height:1.5}
.accessory-options label:has(:checked){background:#e9edfb;border-color:#9aaddf}
.accessory-options input{accent-color:var(--blue);width:18px;height:18px;flex:none}
.accessories-field .field-help{margin-top:12px}
.admin-gallery-intro{max-width:65ch;line-height:1.7;margin:0 0 28px;color:var(--muted)}
.admin-tabs{flex-wrap:wrap;row-gap:12px}
.gallery-upload-form{border:1px solid var(--line);padding:28px;margin-bottom:36px;background:var(--paper)}
.gallery-upload-form h2{font-size:2.5rem;margin-bottom:24px}
.admin-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.admin-gallery-card{border:1px solid var(--line);padding:20px;min-width:0}
.admin-gallery-card>img{width:100%;aspect-ratio:1.3;object-fit:cover;background:#eee5d6;margin-bottom:20px}
.admin-gallery-card textarea{min-height:100px}.gallery-admin-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;flex-wrap:wrap}
.gallery-admin-actions button{min-height:44px;font-size:var(--text-control)}
.gallery-upload-form input[type=file]{max-width:100%;padding:10px 0;font-size:var(--text-control)}
@media(max-width:1100px){.work-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.work-gallery{padding:60px var(--gutter)}.work-gallery-heading{display:block}.work-gallery-heading>p{margin-top:24px}.work-gallery-grid{gap:28px 18px}.work-gallery-heading h2{font-size:3.5rem}.work-gallery-filters{gap:22px}.admin-gallery-grid{grid-template-columns:1fr}.gallery-upload-form{padding:20px}.accessory-options{grid-template-columns:1fr}}
@media(max-width:380px){.work-gallery-grid{grid-template-columns:1fr}}
@media(max-width:740px){.admin-gallery-card .form-row,.gallery-upload-form .form-row{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.work-card img{transition:none}}
