/* Targeted desktop visibility correction; the approved page order and mobile fit remain unchanged. */
@media(min-width:761px){
 .portal-home .portal-context,.portal-home .winter-grid,.portal-home .services-row,.portal-home .learning-row{width:min(1440px,96%)}
 .portal-home .winter-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:28px;align-items:start}
 .portal-home .flagship-image,.portal-home .school-image{display:block;height:auto;aspect-ratio:var(--feature-intrinsic-ratio,auto);max-width:min(100%,var(--feature-native-width,100%));margin-inline:auto;background:transparent}
 .portal-home .flagship-image img,.portal-home .school-image img{width:100%;height:auto;max-height:none;object-fit:contain}
 .portal-home .flagship-image noscript,.portal-home .school-image noscript{display:block;width:100%;height:auto}
 .portal-home .services-row{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:36px}
 .portal-home .camp-preview-content{grid-template-columns:minmax(0,1fr);gap:20px}
 .portal-home .camp-preview-content figure{width:100%;max-width:none;min-width:0}
 .portal-home .camp-photo-frame{width:100%;max-width:min(100%,var(--feature-native-width,100%));height:auto;aspect-ratio:var(--feature-intrinsic-ratio,auto);background:transparent;margin-inline:auto}
 .portal-home .camp-photo-frame img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
 .portal-home .camp-photo-frame noscript{width:100%;height:auto}
 /* Full-size camp pool excludes compact-only photographs; native pixel bounds remain. */
 .portal-home .learning-row{gap:36px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .portal-home .learning-row article{grid-template-columns:minmax(0,1fr);gap:22px;padding-top:26px}
 .portal-home .learning-photo{width:100%;height:auto}
 .portal-home .learning-photo img{width:100%;height:auto;object-fit:contain}
 .portal-home .learning-row h2{font-size:27px}
 .portal-home .learning-row p{font-size:16px;line-height:1.8}
 .portal-home .learning-row .portal-link{font-size:16px;min-height:44px}
}

/* Preserve the complete source in the existing mobile learning-image columns too. */
@media(max-width:760px){
 .portal-home .learning-row article{grid-template-columns:minmax(0,1fr);gap:18px}
 .portal-home .learning-photo{display:block;width:100%;max-width:100%;height:auto}
 .portal-home .learning-photo img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
}
/* Remove the legacy fixed camp img ratio also on phones; frame already follows selected metadata. */
.portal-home .camp-photo-frame img{aspect-ratio:auto}
