/*=========================================================
  HOME CLIENTS
=========================================================*/

.home-clients {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;

    display: flex;
    align-items: center;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/*---------------------------------------------------------
  TRACK
---------------------------------------------------------*/

.home-clients__track {
    display: flex;
    flex-direction: row;

    align-items: center;
    flex-wrap: nowrap;

    width: max-content;
    max-width: none;

    gap: 80px;

    animation: clients-scroll 30s linear infinite;
}


/*---------------------------------------------------------
  GROUP
---------------------------------------------------------*/

.home-clients__group {
    display: flex;
    flex-direction: row;

    align-items: center;
    flex-wrap: nowrap;

    gap: 80px;

    flex-shrink: 0;
}


/*---------------------------------------------------------
  ITEM
---------------------------------------------------------*/

.home-clients__item {
    position: relative;

    display: block;

    width: 180px;
    height: 100px;

    flex: 0 0 180px;
}


/*---------------------------------------------------------
  LOGOS
---------------------------------------------------------*/

.home-clients__logo {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: opacity 0.3s ease;
}

.home-clients__logo--white {
    opacity: 1;
}

.home-clients__logo--color {
    opacity: 0;
}


/*---------------------------------------------------------
  HOVER
---------------------------------------------------------*/

.home-clients__item:hover .home-clients__logo--white {
    opacity: 0;
}

.home-clients__item:hover .home-clients__logo--color {
    opacity: 1;
}


/*---------------------------------------------------------
  ANIMATION
---------------------------------------------------------*/

@keyframes clients-scroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }

}


/*---------------------------------------------------------
  MOBILE
---------------------------------------------------------*/

@media (max-width: 767px) {

    .home-clients {
        min-height: 220px;
    }

    .home-clients__track {
        gap: 40px;
    }

    .home-clients__group {
        gap: 40px;
    }

    .home-clients__item {
        width: 120px;
        height: 70px;

        flex-basis: 120px;
    }

}