.words-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.words-slider div {
    --space: var(--wp--preset--spacing--20);
    --duration: 20s;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space);
    padding-right: var(--space);
    animation: word-slider var(--duration) linear infinite;
    max-width: none !important;
}

.words-slider p {
    line-height: 1.2em;
}

@keyframes word-slider {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}

.words-slider[class*='outline'] p {
    paint-order: stroke fill;
    color: var(--wp--preset--color--light);
}

.has-primary-100-background-color .words-slider[class*='outline'] p {
    color: var(--wp--preset--color--primary-100);
}

.has-primary-background-color .words-slider[class*='outline'] p {
    color: var(--wp--preset--color--primary);
}

.has-light-background-color .words-slider[class*='outline'] p {
    color: var(--wp--preset--color--light);
}

.words-slider.outline p {
    -moz-text-stroke: 2px var(--wp--preset--color--primary);
    -webkit-text-stroke: 4px var(--wp--preset--color--primary);
}

.words-slider.outline-2 p {
    -moz-text-stroke: 2px var(--wp--preset--color--dark);
    -webkit-text-stroke: 4px var(--wp--preset--color--dark);
}

.words-slider.callout div {
    --space: var(--wp--preset--spacing--40);
}

.words-slider.callout p {
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--callout, 20px);
    font-weight: 700;
    line-height: 32px;
}

.words-slider[class*='icons-'] p {
    padding-left: 52px;
    position: relative;
}

.words-slider[class*='icons-'] p:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 32px;
    width: 32px;
    transform: translateY(-50%);
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.words-slider.icons-1 p:nth-child(1):before {
    mask-image: url(/wp-content/uploads/2026/01/drop.svg);
}

.words-slider.icons-1 p:nth-child(2):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-oak-tree.svg);
}

.words-slider.icons-1 p:nth-child(3):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-loupe.svg);
}

.words-slider.icons-1 p:nth-child(4):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-cold.svg);
}

.words-slider.icons-2 p:nth-child(1):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-home.svg);
}

.words-slider.icons-2 p:nth-child(2):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-hangar.svg);
}

.words-slider.icons-2 p:nth-child(3):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-manufacturing.svg);
}

.words-slider.icons-2 p:nth-child(4):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-barn.svg);
}

.words-slider.icons-2 p:nth-child(5):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-manufacturing.svg);
}

.words-slider.icons-3 p:nth-child(1):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-roofing.svg);
}

.words-slider.icons-3 p:nth-child(2):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-brick-wall.svg);
}

.words-slider.icons-3 p:nth-child(3):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-floor-plan.svg);
}

.words-slider.icons-3 p:nth-child(4):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-real-estate.svg);
}

.words-slider.icons-4 p:nth-child(1):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-reinforced-concrete.svg);
}

.words-slider.icons-4 p:nth-child(2):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-wood.svg);
}

.words-slider.icons-4 p:nth-child(3):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-metal.svg);
}

.words-slider.icons-4 p:nth-child(4):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-recycle-bin.svg);
}

.words-slider.icons-4 p:nth-child(5):before {
    mask-image: url(/wp-content/uploads/2026/01/icons8-manufacturing.svg);
}