.image-grid{background:var(--color-white);position:relative;padding:6rem 2rem 0;position:relative}@media(min-width:768px){.image-grid{padding:10rem 2rem 0}}@media(min-width:992px){.image-grid{padding:14rem 6rem 0}}.image-grid__container{display:grid;gap:2rem;overflow:visible;width:100%}@media(min-width:768px){.image-grid__container{grid-template-columns:repeat(10,1fr);grid-template-rows:1fr 1fr}
}@media(min-width:992px){.image-grid__container{gap:4rem}}.image-grid__item{height:100%}@media(min-width:768px){.image-grid__item{grid-column:span 4}}@media(min-width:768px){.image-grid__item:nth-child(1),.image-grid__item:nth-child(4){grid-column:span 6}}.image-grid__item .image{height:100%}@media(min-width:768px){[data-grid="1"] .image-grid__item{grid-column:span 10}
}@media(min-width:768px){[data-grid="3"] .image-grid__item:nth-child(3){grid-column:span 10}}
/* grid-motion: tiles drift at staggered speeds (whole photo moves); the photo inside each frame only drifts within its spare edge, so it is never cropped to a sliver */
@supports(animation-timeline:view()){
.image-grid .animate-scroll--parallax{animation-name:ig-inner}
@keyframes ig-inner{from{transform:translateY(-5%) scale(1.15)}to{transform:translateY(5%) scale(1.15)}}
@media(min-width:768px){
.image-grid__item:nth-child(2),.image-grid__item:nth-child(3){animation:ig-drift linear both;animation-range:0 100%;animation-timeline:--animate-scroll-view-timeline;will-change:transform}
.image-grid__item:nth-child(3){animation-direction:reverse}
@keyframes ig-drift{from{transform:translateY(30px)}to{transform:translateY(-30px)}}
}
}
@media(prefers-reduced-motion:reduce){.image-grid .animate-scroll--parallax,.image-grid__item{animation:none!important;transform:none!important}}

/* stack-cards (replaces grid-motion above): each photo pins below the header and the next slides up over it; the one underneath settles back and dims (scale/dim set by image-grid.min.js) */
.image-grid .animate-scroll--parallax,.image-grid__item{animation:none!important}
.image-grid .animate-scroll--parallax{transform:none!important}
.image-grid__container,.image-grid__container[data-grid]{display:block!important}
.image-grid__item{display:block;position:sticky;top:var(--ig-top,90px);height:min(calc(100svh - var(--ig-top,90px) - 40px),125vw);margin:0 0 2rem;border-radius:2rem;overflow:hidden;transform-origin:50% 0;box-shadow:0 -1.2rem 3rem -1.8rem rgba(0,0,0,.45);will-change:transform,filter;background:#eee}
.image-grid__item:nth-child(2){top:calc(var(--ig-top,90px) + 12px)}
.image-grid__item:nth-child(3){top:calc(var(--ig-top,90px) + 24px)}
.image-grid__item:nth-child(4){top:calc(var(--ig-top,90px) + 36px)}
.image-grid__item:last-child{margin-bottom:0}
.image-grid__item .image{height:100%!important;padding-bottom:0!important}
.image-grid__item img{width:100%;height:100%;object-fit:cover}
@media(min-width:992px){.image-grid__item{height:min(calc(100svh - var(--ig-top,90px) - 48px),58vw);margin-bottom:4rem;border-radius:2.4rem}}
/* stack-cards v2: ride below the header when it shows, slide up with it when it hides (same timing as the header) */
.image-grid__item{translate:0 var(--ig-hh,0px);transition:translate .35s ease-in-out}
.scroll-down .image-grid__item{translate:0 0}
.image-grid__item{height:min(calc(100svh - var(--ig-top,90px) - var(--ig-hh,0px) - 40px),125vw)}
@media(min-width:992px){.image-grid__item{height:min(calc(100svh - var(--ig-top,90px) - var(--ig-hh,0px) - 48px),58vw)}}
@media(prefers-reduced-motion:reduce){.image-grid__item{transition:none}}
.image-grid{padding-bottom:var(--ig-hh,0px)}
.image-grid__item,.image-grid__item:last-child{border-radius:5px}@media(min-width:992px){.image-grid__item{border-radius:5px}}
