/* Windows, doors, and skylights collection imagery. */
:where(.page-windows,.page-doors,.page-skylights) :where(.collection-card,.system-card,.residential-card){overflow:hidden;border:1px solid var(--mw-line);border-radius:var(--mw-radius);background:#fff;box-shadow:var(--mw-shadow)}
:where(.page-windows,.page-doors,.page-skylights) :where(.collection-card-media,.system-card-media,.card-image){min-height:clamp(230px,22vw,330px);display:flex;align-items:center;justify-content:center;padding:clamp(18px,2.2vw,34px);overflow:hidden;background:linear-gradient(145deg,#f8fafb,#edf4f6)}
:where(.page-windows,.page-doors,.page-skylights) :where(.collection-card-media,.system-card-media,.card-image) img{width:100%;height:100%;max-height:290px;object-fit:contain;object-position:center;filter:none;transform:none}
.page-doors .system-card-media img[src*="-installed"],.page-doors .system-card-media img[src*="folding-door-balcony"]{max-width:100%;max-height:none;object-fit:cover;border-radius:12px}
@media(max-width:700px){:where(.page-windows,.page-doors,.page-skylights) :where(.collection-card-media,.system-card-media,.card-image){min-height:220px;padding:22px}}

/* Residential overview collection cards preserve natural product presentation. */
.residential-system-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.residential-system-grid .system-card{display:grid;grid-template-rows:clamp(250px,25vw,340px) 1fr;min-height:0;overflow:hidden;background:#fff;color:var(--mw-deep);border:1px solid #dce8ed;border-radius:22px;box-shadow:0 10px 30px rgba(5,42,55,.07);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.residential-system-grid .system-card:hover{transform:translateY(-4px);border-color:#bfd9e2;box-shadow:0 18px 42px rgba(5,42,55,.12)}
.residential-system-grid .system-card:after{display:none}
.residential-system-grid .system-card-media{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;min-width:0;padding:24px;overflow:hidden;background:radial-gradient(circle at 50% 45%,#fff 0%,#f8fbfc 58%,#eef5f7 100%);border-bottom:1px solid #e3edf1}
.residential-system-grid .system-card-media img{display:block;width:100%;height:100%;max-width:92%;max-height:92%;margin:auto;object-fit:contain;object-position:center;transform:none;filter:none;background:transparent}
.residential-system-grid .system-card:hover img{transform:scale(1.015)}
.residential-system-grid .system-card-copy{position:relative;inset:auto;display:flex;flex-direction:column;align-items:flex-start;padding:26px 28px 28px;color:var(--mw-deep);background:#fff}
.residential-system-grid .system-card-kicker{color:var(--mw-blue);margin-bottom:7px}
.residential-system-grid .system-card h3{color:var(--mw-deep);margin:0 0 9px;font-size:clamp(26px,2.3vw,36px);line-height:1.05}
.residential-system-grid .system-card p{max-width:46em;margin:0 0 18px;color:var(--mw-muted);font-size:14px;line-height:1.6}
.residential-system-grid .system-card-link{margin-top:auto;color:var(--mw-blue);border-bottom:1px solid rgba(0,130,163,.28);font-size:12.5px}
.residential-system-grid .system-card-media img[src*="folding-door"],.residential-system-grid .system-card-media img[src*="Lift&Slide"]{max-width:100%;max-height:100%;object-fit:cover;border-radius:12px}
@media(max-width:900px){.residential-system-grid{grid-template-columns:1fr;gap:16px}.residential-system-grid .system-card{grid-template-rows:260px 1fr}}
@media(max-width:600px){.residential-system-grid .system-card{grid-template-rows:220px 1fr;border-radius:18px}.residential-system-grid .system-card-media{padding:18px}.residential-system-grid .system-card-copy{padding:21px 21px 23px}.residential-system-grid .system-card h3{font-size:28px}}

/* Keep catalogue descriptions and actions readable at all viewport sizes. */
.residential-system-grid .system-card p{font-size:16px}
.residential-system-grid .system-card-link{font-size:14px;line-height:1.5}
