/*================================
    Marquee Animation Style 
================================*/

.wdt-animation-holder:not(.vertical) .wdt-animation-wrapper {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    overflow: hidden;
}

.wdt-animation-holder:not(.vertical) .wdt-animation-wrapper div[class*="-marqee"] {
    width: auto;
    flex: 0 0 auto;
    display: grid;
    grid-auto-flow: column;
    align-items: center;
}

.wdt-animation-holder:not(.vertical) .wdt-animation-wrapper div[class*="-marqee"] .wdt-animation-item {
    display: inline-flex;
    flex: 0 0 auto;
    text-align: center;
    position: relative;
}
.wdt-animation-holder:not(.vertical) .wdt-animation-wrapper div[class*="-marqee"] .wdt-animation-item.icon-item{
    color: var(--wdtPrimaryColor);
}
.wdt-animation-holder:not(.vertical) .wdt-animation-wrapper .wdt-animation-item {
    padding: 0 clamp(0.875rem, 0.7308rem + 0.641vw, 1.5rem);
    /*  Min-14 & Max-24 */
}

.wdt-animation-holder:not(.vertical) .wdt-animation-wrapper div[class*="-marqee"].right-to-left {
    -webkit-animation: MarqueeLeft 24s linear infinite 0ms;
    animation: MarqueeLeft 24s linear infinite 0ms;
}

.wdt-animation-holder:not(.vertical) .wdt-animation-wrapper div[class*="-marqee"].left-to-right {
    -webkit-animation: MarqueeRight 24s linear infinite 0ms;
    animation: MarqueeRight 24s linear infinite 0ms;
}

.wdt-animation-holder:not(.vertical) .wdt-animation-wrapper:hover div[class*="-marqee"] {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

@keyframes MarqueeLeft {
    from {
        margin-left: 0;
    }

    to {
        margin-left: var(--wdt-marque-Margin-Width);
    }
}

@keyframes MarqueeRight {
    from {
        margin-left: var(--wdt-marque-Margin-Width);
    }

    to {
        margin-left: 0;
    }
}



/* ===========================
    Vertical Animation Style
=========================== */

.wdt-animation-holder.vertical {
    overflow: hidden;
    max-height: 330px;
}

.wdt-animation-holder.vertical .wdt-animation-wrapper {
    height: var(--wdt-marque-height);
}

.wdt-animation-holder.vertical .wdt-animation-wrapper .wdt-animation-item {
    display: block;
}

.wdt-animation-holder.vertical .wdt-animation-wrapper div[class*="-marqee"].top-to-bottom,
.wdt-animation-holder.vertical .wdt-animation-wrapper div[class*="-marqee"].top-to-bottom~div[class*="-cloned-marqee"] {
    -webkit-animation: MarqueeTop 24s linear infinite 0ms;
    animation: MarqueeTop 24s linear infinite 0ms;
}

.wdt-animation-holder.vertical .wdt-animation-wrapper div[class*="-marqee"].bottom-to-top,
.wdt-animation-holder.vertical .wdt-animation-wrapper div[class*="-marqee"].bottom-to-top~div[class*="-cloned-marqee"] {
    -webkit-animation: MarqueeBottom 24s linear infinite 0ms;
    animation: MarqueeBottom 24s linear infinite 0ms;
}

.wdt-animation-wrapper:hover div[class*="-marqee"] {
    -webkit-animation-play-state: paused !important;
    animation-play-state: paused !important;
}

@keyframes MarqueeTop {
    from {
        transform: translateY(var(--wdt-marque-Margin-height));
    }

    to {
        transform: translateY(0);
    }
}

@keyframes MarqueeBottom {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(var(--wdt-marque-Margin-height));
    }
}




/* ===========================
    Animation Text Style 
=========================== */

.wdt-animation-item.text-item {
    display: inline-block;
}

.wdt-animation-item.text-item .wdt-animation-text {
    font-size: clamp(1.75rem, 1.4615rem + 1.2821vw, 3rem);
    /* Min-28 & Max-48 */
    font-weight: var(--wdtFontWeight_Alt);
    font-family: var(--wdtFontTypo_Alt);
    text-transform: capitalize;
    line-height: normal;
}
.wdt-custom-header-title-animation .wdt-animation-item.text-item .wdt-animation-text{
    font-size: var(--wdtFontSize_Ext);
    font-weight: var(--wdtFontWeight_Base);
}

.wdt-animation-item.text-item .wdt-animation-text a {
    text-decoration: none !important;
    color: inherit;
}

.wdt-animation-item.text-item .wdt-animation-text a:hover {
    color: inherit;
}
.wdt-custom-header-title-animation .wdt-animation-holder:before,
.wdt-custom-header-title-animation .wdt-animation-holder:after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    margin: auto;
    background-image: linear-gradient(to right, rgba(var(--wdtBodyBGColorRgb),.8) 0, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.wdt-custom-header-title-animation .wdt-animation-holder:after{
    left: auto;
    right: 0;
    background-image: linear-gradient(to left, rgba(var(--wdtBodyBGColorRgb),.8) 0, transparent 100%);
}
.wdt-custom-header-title-animation:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 250%;
    background: linear-gradient(180deg, rgba(var(--wdtBodyBGColorRgb),.8), transparent);
    pointer-events: none;
}

/* ===========================
    Animation Icon Style 
=========================== */

.wdt-animation-item.icon-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.75rem, 1.4615rem + 1.2821vw, 3rem);
    /* Min-28 & Max-48 */
    width: clamp(1.75rem, 1.4615rem + 1.2821vw, 3rem);
    /* Min-28 & Max-48 */
    height: clamp(1.75rem, 1.4615rem + 1.2821vw, 3rem);
    /* Min-28 & Max-48 */
}

/* ===========================
    Animation Image Style 
=========================== */

.wdt-animation-item.image-item img {
    object-fit: cover;
    object-position: center;
    margin: clamp(0.625rem, -0.0908rem + 1.1173vw, 1.25rem) 0;
    /* Min-10 & Max-20 */
    border-radius: calc(var(--wdtRadius_3X) + 3px);
}


/* =========================== New Style =========================== */

.wdt-topbar-marquee-style .wdt-animation-item.text-item .wdt-animation-text {
    font-weight: var(--wdtFontWeight_Base);
    font-family: var(--wdtFontTypo_Base);
    text-transform: capitalize;
    line-height: normal;
    font-size: 1rem;
}

.wdt-topbar-marquee-style .wdt-animation-wrapper {
    position: relative;
}

.wdt-topbar-marquee-style .wdt-animation-wrapper:before,
.wdt-topbar-marquee-style .wdt-animation-wrapper:after {
    z-index: 2;
    pointer-events: none;
    content: "";
    position: absolute;
    width: 17%;
    height: 100%;
    top: 0;
}

.wdt-topbar-marquee-style .wdt-animation-wrapper:before {
    left: 0;
    background-image: linear-gradient(to right, var(--wdtPrimaryColor), transparent);
}

.wdt-topbar-marquee-style .wdt-animation-wrapper:after {
    right: 0;
    background-image: linear-gradient(to left, var(--wdtPrimaryColor), transparent);
}

/* Custom */

.wdt-custom-vertical-animation .wdt-animation-item.image-item img { margin: 15px 0; }

/* -------------------------------------------------------------------------- */
/*                        Vertical Animation Responsive                       */
/* -------------------------------------------------------------------------- */
@media only screen and (max-width:1280px) {
    .wdt-animation-holder.vertical {
        max-height: 280px;
    }
    .wdt-custom-vertical-animation .wdt-animation-item.image-item img { margin: 10px 0; }
}