.about-work .lead{font-size:18px;line-height:1.6}.work-gallery-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 10px}.work-gallery-cards button{padding:0;background:white;border:1px solid #ccdde6;border-radius:8px;overflow:hidden;cursor:pointer;text-align:left;color:#004b76;font:600 14px Montserrat,Arial}.work-gallery-cards img{width:100%;aspect-ratio:1.2;object-fit:cover;display:block;background:#eef4f7}.work-gallery-cards [data-gallery="floorplans"] img{object-fit:contain;padding:8px;box-sizing:border-box}.work-gallery-cards span{display:flex;justify-content:space-between;gap:6px;padding:12px;line-height:1.4}.about-work .work-caption{font-size:12px;line-height:1.5;color:#617887;margin:0 0 20px}.work-gallery{box-sizing:border-box;width:min(1180px,calc(100vw - 24px));max-height:94dvh;border:0;border-radius:16px;padding:24px;color:#404041;overflow:auto}.work-gallery::backdrop{background:#002b46dc}.work-gallery header{display:flex;justify-content:space-between;gap:18px;align-items:center}.work-gallery h2{font-size:clamp(26px,4vw,38px);margin:0;color:#004b76}.work-gallery .eyebrow{font-size:10px;margin:0 0 8px}.gallery-close{flex-shrink:0;display:grid;place-items:center;width:44px;height:44px;border:1px solid #c4d8e5;border-radius:50%;background:#eef5f8;color:#004b76;padding:0;cursor:pointer}.gallery-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.gallery-filters{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.gallery-filters button,.gallery-tools button,.gallery-image-nav button{font:600 14px Montserrat,Arial;border:1px solid #bed5e4;background:white;color:#004b76;border-radius:6px;min-height:44px;padding:8px 14px;cursor:pointer}.gallery-filters [aria-pressed=true]{background:#006ab6;color:white;border-color:#006ab6}.gallery-status{font-size:13px;color:#617887}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gallery-grid button{border:1px solid #d3e2eb;background:#f4f8fa;padding:0;overflow:hidden;border-radius:8px;text-align:left;cursor:pointer;color:#004b76;font:600 14px Montserrat,Arial}.gallery-grid img{width:100%;aspect-ratio:1.65;object-fit:cover;display:block}.gallery-grid .plan img{object-fit:contain;padding:8px;box-sizing:border-box;aspect-ratio:1.2;background:white}.gallery-grid span{display:block;padding:12px}.gallery-detail[hidden],.gallery-grid[hidden]{display:none}.gallery-tools{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.gallery-image-scroll{max-height:62dvh;overflow:auto;background:#f2f6f8;text-align:center}.gallery-image-scroll img{display:block;width:100%;height:58dvh;object-fit:contain;margin:auto}.gallery-image-scroll.is-zoomed img{width:auto;max-width:none;height:auto;max-height:none}.gallery-image-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}.gallery-image-nav p{font-size:14px;text-align:center}.work-gallery footer{border-top:1px solid #d3e2eb;margin-top:22px;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.work-gallery footer>span{font-weight:600;color:#004b76}.work-gallery footer small{flex-basis:100%;font-size:11px;color:#617887}.work-gallery :focus-visible,.work-gallery-cards :focus-visible{outline:3px solid #1e87f0;outline-offset:3px}@media(max-width:650px){.work-gallery{padding:16px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.work-gallery-cards{gap:8px}.work-gallery-cards span{font-size:12px;padding:9px}.work-gallery footer .button{width:100%}.gallery-filters button{padding:8px 10px;font-size:12px}}

/* Fill both mobile gallery filter rows while keeping the longer favourites label readable. */
@media(max-width:650px){
  .work-gallery .gallery-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .work-gallery .gallery-filters>button{width:100%;min-width:0;white-space:normal}
  .work-gallery .gallery-filters>#show-favourites{grid-column:span 2;margin-left:0}
}

/* Show the complete elevation in a consistent thumbnail frame. */
.gallery-grid .gallery-open:not(.plan) img{width:100%;aspect-ratio:640/305;height:auto;object-fit:cover;object-position:center;background:#eef4f7}
