/**
 * Nečiūnas NT Elementor Partners marquee widget.
 */

.neciunasnt-partners,
.neciunasnt-partners *,
.neciunasnt-partners *::before,
.neciunasnt-partners *::after {
    box-sizing: border-box;
}

.neciunasnt-partners {
    --neciunasnt-partners-duration: 35s;
    --neciunasnt-partners-gap: 25px;
    --neciunasnt-partners-logo-height: 34px;
    --neciunasnt-partners-logo-width: 100px;
    --neciunasnt-partners-slot-height: calc(var(--neciunasnt-partners-logo-height) + 10px);
    --neciunasnt-partners-slot-width: 120px;
    --neciunasnt-partners-overlay-color: #f2eee3;

    display: flex;
    width: 100%;
    min-height: 104px;
    align-items: center;
    overflow: hidden;
    padding-block: 0;
    background-color: transparent;
    font-family: var(--font-primary, "TT Firs Neue", Arial, sans-serif);
}

.neciunasnt-partners__marquee {
    width: 100%;
    overflow: hidden;
}

.neciunasnt-partners__track {
    display: flex;
    width: max-content;
    animation: neciunasnt-partners-marquee var(--neciunasnt-partners-duration) linear infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.neciunasnt-partners__group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--neciunasnt-partners-gap);
    padding-inline-end: var(--neciunasnt-partners-gap);
}

.neciunasnt-partners__item {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    width: var(--neciunasnt-partners-slot-width);
    height: var(--neciunasnt-partners-slot-height);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.neciunasnt-partners--color-overlay .neciunasnt-partners__image {
    opacity: 0;
}

.neciunasnt-partners--color-overlay .neciunasnt-partners__item::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--neciunasnt-partners-logo-width);
    height: var(--neciunasnt-partners-logo-height);
    background-color: var(--neciunasnt-partners-overlay-color);
    content: "";
    pointer-events: none;
    transform: translate(-50%, -50%);
    -webkit-mask-image: var(--neciunasnt-partners-logo-mask);
    mask-image: var(--neciunasnt-partners-logo-mask);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.neciunasnt-partners__image {
    display: block;
    width: var(--neciunasnt-partners-logo-width);
    height: var(--neciunasnt-partners-logo-height);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.neciunasnt-partners--pause-on-hover:hover .neciunasnt-partners__track {
    animation-play-state: paused;
}

.neciunasnt-partners__placeholder {
    width: min(calc(100% - 40px), 1280px);
    margin-inline: auto;
    padding: 18px 24px;
    border: 1px dashed rgba(242, 238, 227, 0.5);
    color: #f2eee3;
    text-align: center;
}

@keyframes neciunasnt-partners-marquee {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 1024px) {
    .neciunasnt-partners {
        --neciunasnt-partners-gap: 22px;
        --neciunasnt-partners-logo-width: 94px;
        --neciunasnt-partners-slot-width: 112px;
    }
}

@media (max-width: 767px) {
    .neciunasnt-partners {
        --neciunasnt-partners-gap: 20px;
        --neciunasnt-partners-logo-height: 28px;
        --neciunasnt-partners-logo-width: 86px;
        --neciunasnt-partners-slot-width: 104px;

        min-height: 86px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neciunasnt-partners__marquee {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .neciunasnt-partners__marquee::-webkit-scrollbar {
        display: none;
    }

    .neciunasnt-partners__track {
        animation: none;
        transform: none;
        will-change: auto;
    }

    .neciunasnt-partners__group[aria-hidden="true"] {
        display: none;
    }
}
