/* Customer gallery (/customer-gallery) and the "Real backyards" strip on category pages. */
.cg{background:#F3F3ED;padding:36px 0 72px;color:#23261F}
.cg-wrap{width:min(1320px,100%);margin:0 auto;padding:0 24px}
.cg-crumbs{display:flex;gap:8px;font-size:13px;color:#5D6158}.cg-crumbs a{color:inherit}
.cg-head{max-width:760px;margin:22px 0 20px}
.cg-kicker,.cgs-kicker{margin:0;font:700 12px 'Figtree',system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#53754B}
.cg h1{margin:10px 0 12px;font:500 clamp(38px,4.6vw,64px)/1.03 'Cormorant Garamond',Georgia,serif}
.cg h1 em,.cgs h2 em{font-style:italic;color:#9A5B34}
.cg-head>p:last-child{margin:0;font-size:17px;line-height:1.6;color:#5D6158}
.cg-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.cg-filters button{padding:9px 15px;border:1px solid #D6D3C6;border-radius:999px;background:#fff;color:#23261F;font:600 14px 'Figtree',system-ui,sans-serif;cursor:pointer}
.cg-filters button small{color:#5D6158;font-weight:500}
.cg-filters button.is-on{background:#2F5D3A;border-color:#2F5D3A;color:#fff}.cg-filters button.is-on small{color:#DCE5D6}
.cg-grid{list-style:none;margin:0;padding:0;columns:4 260px;column-gap:16px}
.cg-item{break-inside:avoid;margin:0 0 16px}
.cg-item[hidden]{display:none}
.cg-card{display:block;width:100%;padding:0;border:0;border-radius:4px;overflow:hidden;background:#fff;text-align:left;cursor:zoom-in;box-shadow:0 1px 0 #E4E1D6;transition:transform .25s,box-shadow .25s}
.cg-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(0,0,0,.12)}
.cg-card:focus-visible,.cg-filters button:focus-visible,.cg-btn:focus-visible{outline:3px solid #9A5B34;outline-offset:2px}
/* a fixed shape, so the grid does not move while photos load */
.cg-card img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:#E9E7DD}
.cg-cap{display:block;padding:12px 14px 14px}
.cg-type{display:block;margin:0 0 4px;font:700 10.5px 'Figtree',system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#53754B}
.cg-cap q{display:block;font:500 18px/1.3 'Cormorant Garamond',Georgia,serif;quotes:"\201C" "\201D"}
.cg-cap b{display:block;margin-top:8px;font:700 13px 'Figtree',system-ui,sans-serif}
.cg-cap b span{font-weight:400;color:#5D6158}
.cg-more{text-align:center;margin:10px 0 0}.cg-more[hidden]{display:none}
.cg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border:1px solid #53754B;border-radius:2px;background:#53754B;color:#fff;font:700 12px 'Figtree',system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;cursor:pointer}
.cg-btn--line{background:transparent;color:#2F5D3A}
.cg-cta{margin:44px 0 0;padding:28px;background:#1E2B20;color:#fff;border-radius:4px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 32px;align-items:center}
.cg-cta h2{grid-column:1;margin:0;font:500 clamp(28px,3vw,40px)/1.1 'Cormorant Garamond',Georgia,serif}
.cg-cta p{grid-column:1;margin:0;color:rgba(255,255,255,.8)}
.cg-cta div{grid-column:2;grid-row:1/3;display:flex;flex-wrap:wrap;gap:10px}
.cg-cta .cg-btn--line{border-color:rgba(255,255,255,.6);color:#fff}
.cg-modal{width:min(1080px,94vw);max-height:92vh;padding:0;border:0;border-radius:6px;background:#fff;overflow:auto}
.cg-modal::backdrop{background:rgba(10,16,11,.82)}
.cg-modal figure{margin:0;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.cg-modal img{display:block;width:100%;height:100%;max-height:92vh;object-fit:cover;background:#111}
.cg-modal figcaption{padding:28px 26px;display:flex;flex-direction:column;gap:10px}
.cg-stars{margin:0;color:#C49A2C;letter-spacing:.12em}
.cg-modal blockquote{margin:0;font:500 21px/1.4 'Cormorant Garamond',Georgia,serif;max-height:46vh;overflow:auto}
.cg-who{margin:0;font-weight:700}
.cg-modal-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}
.cg-modal-acts [hidden]{display:none}
.cg-x{position:absolute;top:10px;right:10px;z-index:2;width:38px;height:38px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:22px;cursor:pointer}

/* Strip on category pages */
.cgs{padding:44px 0 8px}
.cgs-head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.cgs h2{margin:8px 0 0;font:500 clamp(30px,3.2vw,44px)/1.05 'Cormorant Garamond',Georgia,serif}
.cgs-all{font:700 12px 'Figtree',system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#2F5D3A;border-bottom:1px solid currentColor;padding-bottom:3px}
.cgs-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
.cgs-row::-webkit-scrollbar{display:none}
.cgs-row a{scroll-snap-align:start;display:block;background:#fff;border:1px solid #E4E1D6;border-radius:4px;overflow:hidden;color:#23261F;text-decoration:none}
.cgs-row img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#E9E7DD}
.cgs-row span{display:block;padding:10px 12px 12px;font:500 17px/1.3 'Cormorant Garamond',Georgia,serif}
.cgs-row b{display:block;margin-top:4px;font:600 12px 'Figtree',system-ui,sans-serif;color:#5D6158}

@media (max-width:760px){
  .cg{padding:24px 0 48px}.cg-wrap{padding:0 16px}
  .cg-grid{columns:2 150px;column-gap:10px}.cg-item{margin-bottom:10px}
  .cg-cap q{font-size:16px}
  .cg-cta{grid-template-columns:minmax(0,1fr)}.cg-cta div{grid-column:1;grid-row:auto}
  .cg-modal figure{grid-template-columns:minmax(0,1fr)}.cg-modal img{max-height:46vh}
  .cgs-row{grid-auto-columns:72%}
}

/* Cards and filters keep their size when the web fonts arrive (they moved the grid: 0.13-0.2 CLS on phones). */
.cg-cap q{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;height:calc(1.3em * 3)}
.cg-cap b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:1.3em}
.cg-filters button{height:40px;white-space:nowrap}
@media (max-width:760px){
  .cg-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-16px;margin-right:-16px;padding:0 16px 2px}
  .cg-filters::-webkit-scrollbar{display:none}
  .cg-head>p:last-child{font-size:16px}
}
