.scrolling-text-section {
    overflow-x: hidden;
}

.scrolling-texts {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.scrolling-texts-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
}

.scrolling-texts-inner p {
    display: inline-block;
    margin-right: 2rem;
    flex-shrink: 0;
    margin-top: 0;
}

.scrolling-texts-inner p:last-child {
    margin-right: 0;
}

/* Pause animation on hover */
.scrolling-texts:hover .scrolling-texts-inner {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

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

.wp-block-section.scrolling-text-section:last-of-type {
    padding-bottom: var(--wp--custom--spacing--block-content-gap);
}