/* Home slider - dependency-free looping slider used by the customer home pages (see Scripts/home-slider.js). */
.hs-slider {
    position: relative;
    /* The slider often sits in a Bootstrap flex ".row": without these it grows to its content (all slides side by
       side) and every slide becomes thousands of pixels wide. It must always take exactly the container width. */
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    --hs-peek: 0px;
}

/* Hidden until the script has laid it out, so slides never flash at the wrong size. */
.hs-slider:not(.is-ready) {
    visibility: hidden;
}

/* Clips at the padding edge, so the side padding shows the neighbouring slides (peek). */
.hs-viewport {
    position: relative;
    overflow: hidden;
    padding-left: var(--hs-peek);
    padding-right: var(--hs-peek);
}

.hs-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    will-change: transform;
}

.hs-slide {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hs-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.hs-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .5rem;
    display: flex;
    justify-content: center;
    gap: .5rem;
    pointer-events: none;
}

.hs-dot {
    width: .6rem;
    height: .6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
    opacity: .8;
    cursor: pointer;
    pointer-events: auto;
}

.hs-dot.is-active {
    background: #999;
    transform: scale(1.4);
}

@media (prefers-reduced-motion: reduce) {
    .hs-track { transition: none !important; }
}
