.autoplayer-pro {
    --controls-bg-hover-color: var(--gray-100);
    --controls-text-hover-color: var(--olive);
    --text-content-bg-color: var(--primary-color-100);
    --text-color: var(--olive);
    --border-color: var(--gray-100);
    
    position: relative;
    overflow: hidden;
    /* width: 100%; */
    height: auto;
    display: flex;
    margin: 0 20px;

    aspect-ratio: 335 / 491;
}

@media (min-width: 40em) {
    .autoplayer-pro {
        aspect-ratio: 1340 / 651;
    }
}

@media (min-width: 64em) {
    .autoplayer-pro {
        margin: 0 50px;
    }
}

@media (min-width: 1441px) {
    .autoplayer-pro {
        aspect-ratio: 1340 / 600;
    }
}

.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.5) 0%, rgba(0,0,0,0) 120%);
    pointer-events: none;
    z-index: 5;
}

.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-controls {
    position: absolute;
    right: 17px;
    bottom: 18px;
    gap: 10px;
    flex-direction: column;
    z-index: 6;
    display: none;
}

.autoplayer-pro.video-loaded .video-controls {
    display: flex;
}

.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: var(--white);
    cursor: pointer;
}

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


.autoplayer-pro .video-control:focus {
    outline: var(--border-color) solid 1px;
    outline-offset: 2px;
}

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

.autoplayer-pro .text-content {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    width: calc(100% - 4rem);
    max-width: var(--width-comfortable);
    z-index: 12;
}

.autoplayer-pro .text-content .title {
    font-family: var(--font-display-alt);
    font-size: 2.8125rem;
    text-align: center;
    line-height: var(--leading-tight);
    color: var(--white);
}

.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;
}

.autoplayer-pro .logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70%;
    z-index: 3;
}

.autoplayer-pro .logo-wrapper .logo {
    max-width: 242px;
}

@media (min-width: 40em) {
    .autoplayer-pro .video-controls {
        flex-direction: row;
        right: 50px;
        gap: 16px;
        bottom: var(--space-8);
    }
    .autoplayer-pro .text-content .title {
        font-size: calc(50px + (100 - 50) * ((100vw - 640px) / (1023 - 640)));
    }
}

@media (min-width: 64em) {
    .autoplayer-pro .text-content .title {
        font-size: 6.25rem;
    }
    .autoplayer-pro .video-control {
        position: relative;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    .autoplayer-pro .video-control .fa-pause {
        font-size: 27px;
    }


    @media (hover : hover) {
        .autoplayer-pro .video-control::after {
            content: "";
            position: absolute;
            top: -4px;
            left: -4px;
            width: calc(100% + 8px);
            height: calc(100% + 8px);
            border-radius: var(--rounded-full);
            border: 1px solid #FFF;
            opacity: 0;
            pointer-events: none;
            transition: opacity ease-in-out 350ms;
        }

        .autoplayer-pro .video-control:hover::after {
            opacity: 1;
        }
    }
   
}