/* =====================================================================
 * components/photo-slider.css — lightweight horizontal photo carousel.
 *
 * Pure CSS scroll-snap: a horizontally-scrolling flex track whose slides
 * snap into place. NO JavaScript, NO vendored library, no build step —
 * the simplest robust approach for an auto-listed photo strip (used by
 * the Indonesia facilities section). Touch/trackpad swipe and the
 * scrollbar drive it; keyboard users can focus the track and arrow-scroll.
 *
 * Presentation-layer only, tokens only — no hex literals.
 * ===================================================================== */

.photo-slider {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* A little inline padding so the first/last slide aren't flush to the
     * container edge when snapped. */
    scroll-padding-inline: var(--space-1);
    padding-bottom: var(--space-2); /* room for the scrollbar on desktop */
}

.photo-slider__slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    /* One slide ~ a comfortable card width; smaller viewports show ~1,
     * wider ones show 2–3 across. */
    width: min(100%, 26rem);
}

.photo-slider__slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background-color: var(--color-ice-mist);
    box-shadow: var(--shadow-md);
}
