/* Watercolor is confined to the top banners. */
.hero,.page-hero{
 background-color:#f7f3e9;
 background-image:linear-gradient(90deg,rgba(247,243,233,.72) 0%,rgba(247,243,233,.68) 40%,rgba(247,243,233,.12) 65%,transparent 100%),url('assets/sage-watercolor-wash.webp');
 background-repeat:no-repeat,no-repeat;
 background-position:center,center;
 background-size:100% 100%,100% 100%;
}

/* Give photo slots a consistent shape and let the photo fill each one. */
.all-moments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px;columns:auto}
.all-moments figure,.all-moments figure:nth-child(3n+2),.all-moments figure:nth-child(even){display:block;width:auto;margin:0;padding:0;break-inside:auto}
.all-moments img,.review-photo-strip img,.moment-photos.moment-photos-five img,.story-gallery img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;object-position:center 20%}
.all-moments img[src$="outdoor.webp"]{object-position:center top}
.all-moments img[src$="winter-celebration.webp"],.all-moments img[src$="group-tree.webp"]{object-position:center 70%}
.all-moments img[src$="snow-play.webp"]{object-position:75% center}
.all-moments img[src$="new-storytime-two.webp"],.review-photo-strip img[src$="new-storytime-two.webp"],.all-moments img[src$="new-outdoor-play.webp"],.about-small-photos img[src$="about-autumn-leaves.webp"]{object-position:center bottom}
.moment-photos.moment-photos-five img{aspect-ratio:4 / 5}
.review-photo-strip img{aspect-ratio:4 / 3}
.story-gallery img{aspect-ratio:4 / 5}
.values-photo img,.aside-photo img,.contact-photo img,.about-page .rounded-photo img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;object-position:center 38%}
.about-page .photo-composition .main-photo,.about-page .photo-composition .small-photo,main[data-route="program"] .program-intro .photo-composition img{display:block;width:100%;height:auto;aspect-ratio:4 / 5;object-fit:cover;object-position:center 38%}
.about-small-photos{align-items:stretch;grid-template-rows:auto auto}
.about-small-photos img:nth-child(1),.about-small-photos img:nth-child(2){width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;object-position:center 38%}
.about-small-photos img:nth-child(3){width:100%;height:100%;min-height:0;object-fit:cover;object-position:center 38%;align-self:stretch}
.about-small-photos img[src$="about-autumn-leaves.webp"]{object-position:center bottom}
.hero .full-hero-image>img:only-child,.page-hero .full-hero-image>img:only-child{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center 38%}
main[data-route="gallery"] .page-hero .full-hero-image img:first-child{width:68%;height:auto;aspect-ratio:4 / 5;max-height:none;object-fit:cover;object-position:center}
main[data-route="gallery"] .page-hero .full-hero-image .moments-hero-overlap{width:43%;height:auto;aspect-ratio:4 / 5;max-height:none;object-fit:cover;object-position:center 35%}
@media(max-width:700px){
 .all-moments{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;columns:auto}
 .all-moments img,.review-photo-strip img{aspect-ratio:4 / 5}
 .hero .full-hero-image>img:only-child,.page-hero .full-hero-image>img:only-child{height:auto;aspect-ratio:4 / 3;object-fit:cover}
 main[data-route="gallery"] .page-hero .full-hero-image img:first-child{width:69%}
 main[data-route="gallery"] .page-hero .full-hero-image .moments-hero-overlap{width:42%}
}
@media(max-width:700px){
 .hero,.page-hero{background-image:linear-gradient(rgba(247,243,233,.45),rgba(247,243,233,.45)),url('assets/sage-watercolor-wash.webp');background-size:100% 100%,auto 100%}
}

/* About and Programs place the existing wash lower on the page. */
.about-page > .page-hero{
 background-image:none;
}
.about-page > .page-hero + .page-section{
 background-color:#f7f3e9;
 background-image:linear-gradient(90deg,rgba(247,243,233,.72) 0%,rgba(247,243,233,.68) 40%,rgba(247,243,233,.12) 65%,transparent 100%),url('assets/sage-watercolor-wash.webp');
 background-repeat:no-repeat,no-repeat;
 background-position:center,center;
 background-size:100% 100%,100% 100%;
}
@media(max-width:700px){
 .about-page > .page-hero + .page-section{
  background-image:linear-gradient(rgba(247,243,233,.45),rgba(247,243,233,.45)),url('assets/sage-watercolor-wash.webp');
  background-size:100% 100%,auto 100%;
 }
}

/* Autumn leaves frame the program gallery without covering its photos. */
main[data-route="program"] > .page-section.tint-butter{
 position:relative;background:#f7f3e9;
}
main[data-route="program"] > .page-section.tint-butter > .inner{position:relative}

/* Hand-painted vertical stripes over existing yellow section backgrounds. */
.values,.site-band,.hello{
 background-image:url('assets/painted-yellow-stripes.svg');
 background-repeat:repeat-x;
 background-position:center top;
 background-size:460px 100%;
}
@media(max-width:700px){
 .values,.site-band,.hello{background-size:310px 100%}
}

/* Original full-colour watercolor leaves within the section backgrounds. */
main[data-route="home"] .photo-moments,
main[data-route="about"] #about-team,
main[data-route="program"] > .page-section.tint-butter,
main[data-route="gallery"] > .page-section{
 background-image:url('assets/autumn-leaves.webp');
 background-repeat:no-repeat;
 background-position:center bottom;
 background-size:100% auto;
}

/* Place the team leaves below the biographies so they never sit behind the text. */
main[data-route="about"] #about-team{background-image:none;padding-bottom:0}
main[data-route="about"] #about-team::after{
 content:"";display:block;width:100%;height:clamp(90px,11vw,150px);margin-top:20px;
 background:url('assets/autumn-leaves.webp') center center / auto 100% no-repeat;
 pointer-events:none;
}

/* Keep the footer navigation and contact information easy to scan. */
.program-tabs-section .program-poster{width:100%;max-width:460px;margin:0 auto}
.program-tabs-section .program-poster a{display:block}
.program-tabs-section .program-poster img{width:auto;max-width:100%;height:auto;max-height:600px;margin:0 auto}
.program-tabs-section .poster-enlarge{display:block;margin-top:10px;text-align:center;color:#655331;font:700 11px 'Manrope',sans-serif}
main[data-route="program"] .program-intro .photo-composition{align-items:stretch}
main[data-route="program"] .program-intro .photo-composition img{
 display:block;width:100%;height:330px;object-fit:cover;object-position:center;background:transparent;
}
@media(max-width:700px){
 .program-tabs-section .horizontal button{overflow-wrap:anywhere}
 .program-tabs-section .program-poster img{max-height:520px}
 main[data-route="program"] .program-intro .photo-composition img{height:220px;margin:0}
}
.woodland-footer a.footer-enrolment{
 display:inline-flex;align-items:center;justify-content:center;gap:14px;
 min-height:42px;padding:10px 18px;border-radius:40px;
 background:#38332e;color:#fffdf7;text-decoration:none;text-shadow:none;
}
.woodland-footer a.footer-enrolment:hover{background:#594c3c;color:#fffdf7;text-decoration:none}
.woodland-footer .footer-enrolment span{display:none}
@media(min-width:701px){
 .woodland-footer{min-height:max(550px,33.333333vw)}
 .footer-details{display:flex;justify-content:center;align-items:flex-start;gap:58px;margin:0 auto}
 .woodland-footer .footer-menu{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
 .woodland-footer .footer-menu a{line-height:1.35}
 .woodland-footer .woodland-contact{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0;padding:0;text-align:left;background:none}
 .woodland-footer .footer-menu .footer-enrolment{display:none}
 .woodland-footer .woodland-contact .footer-enrolment{margin-top:6px}
}
@media(max-width:700px){
 .woodland-footer .woodland-contact .footer-enrolment{display:none}
 .footer-details{order:3;width:100%;display:flex;flex-direction:column;align-items:center}
 .woodland-footer .footer-menu{order:0;display:flex;flex-direction:column;align-items:center;gap:5px;margin:0 auto;width:100%}
 .woodland-footer .footer-menu a{font-size:12px;min-height:32px}
 .woodland-footer .footer-menu a.footer-enrolment{min-height:42px;padding:10px 18px;margin-top:5px}
 .woodland-footer .woodland-contact{order:1;margin-top:20px}
 .woodland-footer .woodland-bottom{margin-top:90px}
}
