/* 39-gallery-carousel.css – auto-scroll image marquee (matches reviews style) */

.gallery-carousel__wrap{overflow:hidden;position:relative;padding-block:var(--space-4);margin-top:var(--space-8);}
.gallery-carousel__track{display:flex;gap:var(--space-6);width:max-content;animation:marquee-scroll 70s linear infinite;}
.gallery-carousel__track:hover{animation-play-state:paused;}

.gallery-carousel__item{flex-shrink:0;width:420px;aspect-ratio:3/2;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md);background:var(--color-bg-alt);}
.gallery-carousel__img{width:100%;height:100%;object-fit:cover;display:block;}

/* Soft fade at the edges so cards glide in/out (matches a polished marquee) */
.gallery-carousel__wrap::before,
.gallery-carousel__wrap::after{content:"";position:absolute;top:0;bottom:0;width:80px;z-index:2;pointer-events:none;}
.gallery-carousel__wrap::before{left:0;background:linear-gradient(to right,var(--color-bg-white),transparent);}
.gallery-carousel__wrap::after{right:0;background:linear-gradient(to left,var(--color-bg-white),transparent);}

@media(max-width:560px){.gallery-carousel__item{width:300px;}}

/* Respect reduced motion: stop the auto-scroll, allow manual horizontal scroll */
@media(prefers-reduced-motion:reduce){
  .gallery-carousel__track{animation:none;width:auto;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;}
  .gallery-carousel__item{scroll-snap-align:start;}
  .gallery-carousel__wrap{overflow:visible;}
}


/* ── Large variant ──
   Used where the images are the content rather than supporting decoration,
   such as an installation sequence on the commercial hub. Wider items and a
   slower scroll so each frame is legible as it passes. */
.gallery-carousel--lg .gallery-carousel__item{width:680px;}
.gallery-carousel--lg .gallery-carousel__track{animation-duration:95s;gap:var(--space-8);}

@media(max-width:900px){
  .gallery-carousel--lg .gallery-carousel__item{width:520px;}
}
@media(max-width:560px){
  .gallery-carousel--lg .gallery-carousel__item{width:320px;}
}