﻿.article4 {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

    .article4 .slider {
        width: 93%;
        margin: auto;
        height: auto;
        overflow: hidden;
        position: relative;
    }

    .article4 .slider-before {
        top: 0;
        bottom : 0 ;
        left: 0;
        z-index: 2;
        width: 200px;
        position: absolute;
        /*background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);*/
    }
    .article4 .slider-after {
        top: 0;
        bottom : 0 ;
        right: 0;
        z-index: 2;
        width: 200px;
        position: absolute;
        transform: rotateZ(180deg);
        /*background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);*/
    }
        .article4 .slider .slide-track {
            display: flex;
            width: calc(250px * 16);
            animation: scroll 30s linear infinite;
            -webkit-animation: scroll 30s linear infinite;
        }

            .article4 .slider .slide-track:hover {
                animation-play-state: paused;
            }

        .article4 .slider .slide {
            width: 250px;
            height: 100%;
        }

@-webkit-keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 8));
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 8));
    }
}
@media (max-width : 992px) {
    .article4 {
        height: auto !important;
    }
    .article4 .slider {
        width: 100% !important ; 
    }
        .article4 .slider .slide-track {
            animation: scroll 15s linear infinite;
            -webkit-animation: scroll 15s linear infinite;
        }
}