.work-gallery-section .work-gallery-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;overflow:visible!important}.work-gallery-section .work-gallery-grid .gallery-thumb{display:block;position:relative;aspect-ratio:3/4;min-height:0!important;width:100%;padding:0;border:0;border-radius:14px;background:#f4efeb;cursor:pointer;overflow:hidden}.work-gallery-section .work-gallery-grid .gallery-thumb img{display:block!important;position:static;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center;transform:none!important}.work-gallery-section .work-gallery-grid .gallery-thumb:focus-visible{outline:3px solid #2f6a82;outline-offset:4px}.work-gallery-section .work-gallery-grid .gallery-thumb:focus-visible .gallery-thumb-overlay{opacity:1}@media(max-width:1100px){.work-gallery-section .work-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}@media(max-width:800px){.work-gallery-section .work-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}@media(max-width:420px){.work-gallery-section .work-gallery-grid{grid-template-columns:minmax(0,1fr)}}
.work-gallery-toolbar[hidden],.work-gallery-grid .gallery-thumb[hidden]{display:none!important}
.work-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:36px 0 32px}
.work-gallery-filters{display:flex;flex-wrap:wrap;gap:10px}
.work-gallery-filter{font:inherit;font-weight:600;line-height:1.4;padding:11px 20px;border:1px solid #d9d0df;border-radius:999px;background:#fff;color:#2f6a82;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
.work-gallery-filter:hover{background:#f4eff7;border-color:#2f6a82}
.work-gallery-filter[aria-pressed="true"]{background:#2f6a82;border-color:#2f6a82;color:#fff}
.work-gallery-filter:focus-visible{outline:3px solid #2f6a82;outline-offset:3px}
.work-gallery-count{margin:0;white-space:nowrap;color:#625969;font-size:.875rem}
@media(max-width:800px){.work-gallery-toolbar{align-items:flex-start;flex-direction:column;gap:14px;margin:28px 0 24px}.work-gallery-filter{padding:10px 16px}}

/* Closed lightbox controls must not intercept gallery filter clicks. */
#lightbox_modal:not(.open){visibility:hidden;pointer-events:none}
#lightbox_modal.open{visibility:visible}
