.autoplayer-pro {
    --controls-bg-hover-color: var(--gray-100);
    --controls-text-hover-color: var(--primary-color-700);
    --text-content-bg-color: var(--primary-color-100);
    --text-color: var(--gray-100);
    --border-color: var(--gray-100);
    position: relative;
    overflow: hidden;
    height: 80vh;
    z-index: 1;
}

@media (min-width: 641px) {
    .autoplayer-pro {
        height: 600px;
        z-index: 3;
    }
}

.autoplayer-pro .poster {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: block;
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter: blur(20px);
}

.autoplayer-pro .fallback.loaded .poster {
    filter: none;
}
.autoplayer-pro:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 40%);
    pointer-events: none;
    z-index: 10;
}

.autoplayer-pro .video {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 300ms cubic-bezier(0,0,0.3,1);
}

.autoplayer-pro.video-loaded .video {
    opacity: 1;
}

.autoplayer-pro.video-loaded .video-controls {
    display: block;
    margin-bottom: var(--space-4);
}

.autoplayer-pro .video-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.autoplayer-pro .video-control:hover {
    background-color: var(--controls-bg-hover-color);
    color: var(--controls-text-hover-color);
}

.autoplayer-pro .video-control:focus {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--controls-bg-color);
    outline: none;
}

.autoplayer-pro .video-control .fa-play {
    margin-left: var(--space-px);
}

.autoplayer-pro .text-content {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    padding: var(--space-8) var(--space-12);
    width: calc(100% - 4rem);
    max-width: var(--width-comfortable);
    z-index: 100;
}

.autoplayer-pro .text-content .title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
    color: var(--text-color);
}

.autoplayer-pro .description {
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: var(--text-color);
    margin-bottom: var(--space-2);
}

.autoplayer-pro .text-content .read-more {
    font-family: var(--font-display);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.autoplayer-pro .text-content .read-more:hover,
.autoplayer-pro .text-content .read-more:focus {
    text-decoration: underline;
    outline: none;
}

/*----*/
img {
    z-index: 2;
}
.autoplayer-pro .img-cont {
    position: relative;
}

.autoplayer-pro .image-logo {
    position: absolute;
    top: 25%;
    left: 0;
    transform: translate(0%, 50%);
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    z-index: 2;
    line-height: 1.2;
}

.autoplayer-pro .image-logo .title {
    margin-right: 0;
    font-family: var(--font-viva);
    font-size: 60px;
    font-weight: 100;
    color: var(--white);
    text-shadow: 0 0 0.3em rgb(0 0 0 / 40%);
}

.autoplayer-pro .image-logo .sub-title {
    margin-right: 0;
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 100;
    color: var(--white);
    text-shadow: 0 0 0.3em rgb(0 0 0 / 40%);
}
.autoplayer-pro .video-control {
    border: 2px solid var(--white);
}
.autoplayer-pro .video-control:hover {
    background-color: rgb(255 255 255 / 30%);
    color: var(--purple-7e);
     border: 2px solid var(--purple-7e);
}
.autoplayer-pro .text-content {
    padding: 0px var(--space-2);    
}
@media screen and (max-width:374px) {
    .autoplayer-pro .image-logo .title {
        margin-right: 0;
        font-family: var(--font-viva);
        font-size: 56px;
        font-weight: 100;
    }
    
}

@media screen and (min-width:40em) {
    .autoplayer-pro .img-cont {
        position: relative;
    }
    @keyframes scroller {
        0% {
            top: 30px;
            opacity: 0;
        }

        20% {
            top: 30px;
            opacity: 1;
        }

        60% {
            top: 50px;
            opacity: 1;
        }

        80% {
            top: 50px;
            opacity: 0;
        }

        100% {
            top: 30px;
            opacity: 0;
        }
    }

    .autoplayer-pro .scroll {
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translate(0%, 0%);
        display: flex;
        flex-direction: column;
        width: 70px;
        text-align: center;
        z-index: 11;
        opacity: 1;
        transition: opacity 400ms ease-out;
    }
    .autoplayer-pro .scroll.scrolled {
        opacity: 0;
        transition: opacity 400ms ease-in;

    }

    .autoplayer-pro .scroll-arrow {
        align-self: center;
        position: absolute;
        bottom: 55%;
        width: 20px;
        opacity: 1;
        animation: scroller 2s infinite;
        z-index: 3;
    }
}

@media screen and (min-width:64em) {
    .autoplayer-pro .img-cont {
        position: relative;
    }

    .autoplayer-pro .image-logo {
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(0%, 100%);
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        z-index: 2;
    }
    
    .autoplayer-pro .image-logo .title {
        margin-right: 0;
        font-size: 106px;
        margin-bottom: 0px;
        line-height: 1;
    }

    .autoplayer-pro .image-logo .sub-title {
        margin-right: 0;
        font-family: var(--font-display);
        font-size: 48px;
        font-weight: 100;
        color: var(--white);
        padding-bottom: var(--space-1);
    }
    .autoplayer-pro .text-content {
        padding: var(--space-8) var(--space-12);
    }
}