/* Garages Master | tl-home-gallery.css
   Homepage photo sections: sections/home-gallery.liquid (bento photo mosaic) and
   sections/home-photo-band.liquid (full-width photo banner). Scoped under their section roots. */

/* photo mosaic */
.tl-home-gallery .tl-gal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:clamp(180px,17vw,250px);gap:14px}
.tl-home-gallery .tl-gal__i{position:relative;min-width:0}
.tl-home-gallery .tl-gal__i--xl{grid-column:span 2;grid-row:span 2}
.tl-home-gallery .tl-gal__a{position:relative;display:block;height:100%;overflow:hidden;border-radius:var(--tl-r);background:var(--tl-night);isolation:isolate}
.tl-home-gallery .tl-gal__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--tl-ease)}
.tl-home-gallery .tl-gal__a::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(0,0,0,.82) 100%);z-index:1}
.tl-home-gallery .tl-gal__a::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--tl-red);z-index:2;transform:scaleY(0);transform-origin:bottom;transition:transform .25s var(--tl-ease)}
.tl-home-gallery .tl-gal__a:hover .tl-gal__img,.tl-home-gallery .tl-gal__a:focus-visible .tl-gal__img{transform:scale(1.05)}
.tl-home-gallery .tl-gal__a:hover::before,.tl-home-gallery .tl-gal__a:focus-visible::before{transform:none}
.tl-home-gallery .tl-gal__t{position:absolute;left:0;right:0;bottom:0;z-index:2;display:grid;gap:4px;padding:18px 20px}
.tl-home-gallery .tl-gal__l{font-family:var(--tl-f-display);font-stretch:var(--tl-wide);font-weight:850;font-size:clamp(18px,1.6vw,22px);line-height:1.05;text-transform:uppercase;color:var(--tl-on-dark)}
.tl-home-gallery .tl-gal__i--xl .tl-gal__l{font-size:clamp(24px,2.6vw,36px)}
.tl-home-gallery .tl-gal__s{font-size:14px;color:var(--tl-on-dark-2)}
.tl-home-gallery .tl-gal__go{display:inline-flex;align-items:center;gap:8px;margin-top:6px;font-family:var(--tl-f-label);font-weight:700;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--tl-red)}
.tl-home-gallery .tl-gal__go .tl-ic{width:16px;height:16px}
@media (max-width:899px){
.tl-home-gallery .tl-gal{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:200px}
.tl-home-gallery .tl-gal__i--xl{grid-column:span 2;grid-row:span 1}
}
@media (max-width:540px){
.tl-home-gallery .tl-gal{grid-template-columns:minmax(0,1fr);grid-auto-rows:220px;gap:10px}
.tl-home-gallery .tl-gal__i--xl{grid-column:auto}
}

/* full-width photo banner */
.tl-band-photo{position:relative;overflow:hidden;isolation:isolate;min-height:clamp(380px,42vw,560px);display:flex;align-items:center}
.tl-band-photo__media{position:absolute;inset:0;z-index:-1}
.tl-band-photo__img{width:100%;height:100%;object-fit:cover}
.tl-band-photo__media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.72) 45%,rgba(0,0,0,.2) 100%)}
.tl-band-photo--r .tl-band-photo__media::after{background:linear-gradient(270deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.72) 45%,rgba(0,0,0,.2) 100%)}
.tl-band-photo__in{display:flex;padding-top:clamp(48px,6vw,88px);padding-bottom:clamp(48px,6vw,88px)}
.tl-band-photo--r .tl-band-photo__in{justify-content:flex-end}
.tl-band-photo__copy{display:grid;gap:16px;max-width:620px}
.tl-band-photo__btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.tl-band-photo::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;z-index:1;background:repeating-linear-gradient(-45deg,var(--tl-red) 0 10px,var(--tl-ink) 10px 20px)}
@media (max-width:699px){
.tl-band-photo__media::after,.tl-band-photo--r .tl-band-photo__media::after{background:rgba(0,0,0,.74)}
.tl-band-photo__btns .tl-btn{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){.tl-home-gallery .tl-gal__img{transition:none}}
