.toppcamp-image-scroller {
    --toppcamp-scroll-duration: 30s;
    --toppcamp-scroll-direction: normal;
    --toppcamp-image-height: 160px;
    --toppcamp-scroll-distance: 50%;
    overflow: hidden;
    width: 100%;
    position: relative;
    height: var(--toppcamp-image-height, 160px);
}

.toppcamp-image-track {
    display: inline-flex;
    width: max-content;
    animation-duration: var(--toppcamp-scroll-duration, 30s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: var(--toppcamp-scroll-direction, normal);
    animation-name: toppcamp-image-scroll-horizontal;
    will-change: transform;
}

.toppcamp-style-horizontal .toppcamp-image-track {
    flex-direction: row;
}

.toppcamp-style-alternate .toppcamp-image-track {
    animation-name: toppcamp-image-scroll-alternate;
}

.toppcamp-style-vertical {
    height: var(--toppcamp-image-height, 160px);
}

.toppcamp-style-vertical .toppcamp-image-track {
    flex-direction: column;
    width: auto;
    animation-name: toppcamp-image-scroll-vertical;
    animation-direction: normal;
    align-items: center;
}

.toppcamp-image-scroller:hover .toppcamp-image-track {
    animation-play-state: paused;
}

.toppcamp-style-vertical.toppcamp-image-scroller:hover .toppcamp-image-track {
    animation-play-state: paused;
}

.toppcamp-image-sequence {
    display: flex;
}

.toppcamp-style-vertical .toppcamp-image-sequence {
    flex-direction: column;
    align-items: center;
}

.toppcamp-image-entry {
    flex: 0 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.toppcamp-style-vertical .toppcamp-image-entry {
    padding: 12px 0;
    justify-content: center;
}

.toppcamp-image-entry a,
.toppcamp-image-entry img {
    display: block;
}

.toppcamp-image-entry a {
    color: inherit;
    text-decoration: none;
}

.toppcamp-image-entry img {
    height: auto;
    max-height: var(--toppcamp-image-height, 160px);
    width: auto;
}

.toppcamp-style-vertical .toppcamp-image-entry img {
    max-height: var(--toppcamp-image-height, 160px);
    max-width: 100%;
}

.toppcamp-hover-zoom .toppcamp-image-entry img {
    transition: transform 0.35s ease;
}

.toppcamp-hover-zoom .toppcamp-image-entry:hover img,
.toppcamp-hover-zoom .toppcamp-image-entry a:focus img,
.toppcamp-hover-zoom .toppcamp-image-entry a:focus-visible img {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .toppcamp-image-entry {
        padding: 0 12px;
    }

    .toppcamp-style-vertical .toppcamp-image-entry {
        padding: 8px 0;
    }

    .toppcamp-image-entry img {
        max-height: calc(var(--toppcamp-image-height, 160px) * 0.75);
    }
}

@keyframes toppcamp-image-scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * var(--toppcamp-scroll-distance, 50%)));
    }
}

@keyframes toppcamp-image-scroll-alternate {
    0%, 20% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(calc(-1 * var(--toppcamp-scroll-distance, 50%)));
    }

    70%, 100% {
        transform: translateX(0);
    }
}

@keyframes toppcamp-image-scroll-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(calc(-1 * var(--toppcamp-scroll-distance, 50%)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .toppcamp-image-track {
        animation: none;
    }
}
