/* Scoped homepage refinements; the Association hero, header and footer are untouched. */
.page-home main>.section{padding-block:clamp(44px,5vw,72px)}
.home-horizon .editorial{align-items:center}
.home-horizon__frame{aspect-ratio:3/2;max-height:430px}
.home-horizon .editorial__media{align-self:center}
.home-horizon .editorial__text{align-self:center}
.home-whats-on__layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:center}
.home-whats-on__copy{grid-column:2;grid-row:1;position:relative;z-index:4}
.home-whats-on__copy .h2{margin-bottom:28px}
.home-photo-stack{grid-column:1;grid-row:1;position:relative;aspect-ratio:1.3;min-width:0;margin:0 0 22px}
.home-photo-stack__photo{position:absolute;margin:0;background:var(--paper,#faf8f4);box-shadow:0 18px 38px -16px rgb(0 0 0 / .36)}
.home-photo-stack__photo picture,.home-photo-stack__photo img{display:block;width:100%;height:100%}
.home-photo-stack__photo img{object-fit:cover}
.home-photo-stack__photo--1{left:0;top:24%;width:64%;height:58%;z-index:1}
.home-photo-stack__photo--2{left:48%;top:0;width:40%;height:73%;z-index:2}
.home-photo-stack__photo--3{left:65%;top:64%;width:35%;height:36%;z-index:3}
.home-section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:32px}
.home-section-heading .label{margin-bottom:12px}
.home-section-heading .h2{margin:0}
.home-section-heading>.link{flex-shrink:0;margin-bottom:6px}
.home-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,44px)}
.home-news-card{display:flex;flex-direction:column;align-items:start;min-width:0;border-top:1px solid var(--rule);padding-top:22px}
.home-news-card__photo{aspect-ratio:3/2;width:100%;margin-bottom:24px}
.home-news-card .h3{font-size:clamp(24px,2.4vw,34px);line-height:1.15;margin:0 0 24px}
.home-news-card .h3 a{text-decoration:none}
.home-news-card>.link{margin-top:auto}
.home-media .home-section-heading{margin-bottom:32px}
#home-media-title{scroll-margin-top:48px}
.home-media .aya-gallery{--gallery-height:clamp(340px,30vw,420px);--gallery-slide-width:calc(var(--gallery-height)*.8)}
.home-media .aya-gallery__slide{--gallery-slide-width:calc(var(--gallery-height)*var(--gallery-image-ratio,.8))}
.home-media .aya-gallery__image{background:transparent}
.home-media .aya-gallery__image img{object-fit:contain}
@media(max-width:900px){
 .home-horizon__frame{aspect-ratio:3/2;max-height:420px}
 .home-news-grid{grid-template-columns:minmax(0,1fr)}
 .home-news-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);column-gap:28px}
 .home-news-card__photo{grid-row:1/3;margin:0}
 .home-news-card>.link{grid-column:2}
}
/* Keep the desktop's visual groups intact as the viewport narrows. */
@media(max-width:1100px){
 .page-home main>.section .pgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:768px) and (max-width:1100px){
 .home-news-grid,.page-home main>.section .tiles--3{grid-template-columns:repeat(3,minmax(0,1fr))}
 .home-news-card{display:flex}
 .home-news-card__photo{margin-bottom:24px}
 .home-news-card .h3{font-size:clamp(22px,2.4vw,28px)}
 .home-horizon .editorial__media{grid-column:1/7}
 .home-horizon .editorial__text{grid-column:8/13}
}
@media(max-width:767px){
 .home-whats-on__layout{grid-template-columns:minmax(0,1fr)}
 .home-whats-on__copy{grid-column:1;grid-row:1;max-width:600px}
 .home-photo-stack{grid-column:1;grid-row:2;max-width:720px;width:100%;margin-top:16px;isolation:isolate}
}
@media(max-width:600px){
 .home-section-heading{align-items:start;flex-direction:column;gap:20px}
 .home-photo-stack{aspect-ratio:1.3;margin-bottom:8px}
 .page-home main>.section .pgrid{gap:12px}
 .page-home main>.section .pcard{gap:10px}
 .page-home main>.section .pcard .h3{font-size:clamp(17px,4.8vw,22px);line-height:1.15}
 .home-horizon__frame{max-height:300px}
 .home-media .aya-gallery{--gallery-height:calc((100vw - 84px)*5/4)}
 .home-news-card{display:flex}
 .home-news-card__photo{margin-bottom:22px}
 .home-news-card .h3{font-size:28px}
}
