.img-anim {
    display: flex;
    align-items: center;
    height: 618px;
    width: 100%;
    margin: 30px 0;
    position: relative;
}

.anim-content-sec {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    height: 100%;
}

.img-anim .anim-content-sec .default-text,
.img-anim .anim-content-sec .anim-text {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
    padding: 30px;
    z-index: 1;
    border-radius: 20px;
}

.img-anim .anim-content-sec .default-text {
    background: #9bb1f1;
}

.img-anim .anim-content-sec .anim-text {
    background: #79e2d0;
}


.img-anim .anim-content-sec .anim-text {
    display: none;
}

.img-anim:hover .anim-content-sec .anim-text {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.img-anim:hover .anim-content-sec .default-text {
    display: none;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s;
}

.anim-img-sec {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 79vh;
}

    .anim-img-sec img {
        position: absolute;
        transition: opacity 0.5s ease;
        height: 618px;
        max-width: 927px;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 20px;
    }

        /* The hover image is hidden initially */
        .anim-img-sec img.anim-img {
            opacity: 0;
        }

/* On hover, the main image fades out and hover image fades in */
.img-anim:hover .anim-img-sec img.default-img {
    opacity: 1;
}

.img-anim:hover .anim-img-sec img.anim-img {
    opacity: 1;
}

.content-ltr {
    flex-direction: row;
}

.content-rtl {
    flex-direction: row-reverse;
}


.content-ltr .anim-content-sec .anim-text,
.content-ltr .anim-content-sec .default-text {
    margin-right: -70px;
}

.content-rtl .anim-content-sec .anim-text,
.content-rtl .anim-content-sec .default-text {
    margin-left: -70px;
}

.anim-cta-btn {
    background: #ffffff;
    color: #000000;
    padding: 10px;
    text-decoration: none;
    text-transform: capitalize;
    text-align: center;
    font-weight: 700;
    border-radius: 5px;
}

.img-dis-anim {
    margin: 50px 0;
}

.content-ttb {
    flex-direction: column-reverse;
    width: 50%;
}

    .content-ttb .anim-content-sec {
        width: 75%;
    }

.img-anim.content-ttb .anim-content-sec .default-text,
.img-anim.content-ttb .anim-content-sec .anim-text {
    height: 300px;
    margin-top: -70px;
}

.content-btt {
    flex-direction: column;
    width: 50%;
}

    .content-btt .anim-content-sec {
        width: 75%;
    }

.img-anim.content-btt .anim-content-sec .default-text,
.img-anim.content-btt .anim-content-sec .anim-text {
    height: 300px;
    margin-bottom: -70px;
}

.animation-off .anim-content-sec .default-text {
    display: flex;
}

.animation-off .anim-content-sec .anim-text {
    display: none !important;
}

.animation-off.img-anim:hover .anim-content-sec .default-text {
    display: flex;
}

.animation-off .anim-img-sec img.anim-img {
    opacity: 1;
}

.wistiaVid-add img {
    display: none;
}

.wistiaVid-add .video-sec {
    width: 100%;
    height: auto;
}

.single-sec-link {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 2;
}

.anim-img-sec .desktop-img {
    display: block;
}

.anim-img-sec .mobile-img {
    display: none;
}

@media only screen and (max-width: 991px) {

    .img-anim {
        flex-direction: column-reverse;
    }

    .img-anim {
        height: 100vh;
    }

        .img-anim .anim-content-sec .anim-text,
        .img-anim .anim-content-sec .default-text {
            margin-left: 0;
            margin-right: 0;
            margin-top: -80px;
        }

    .anim-content-sec {
        width: 70%;
    }

    .img-anim .anim-content-sec .default-text {
        display: none;
    }

    .animation-off.img-anim .anim-content-sec .default-text {
        display: flex;
    }

    .img-anim .anim-content-sec .anim-text {
        display: flex;
        flex-wrap: nowrap;
    }

    .img-anim .anim-img-sec img.anim-img {
        opacity: 1;
    }

    .anim-img-sec img {
        height: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .anim-img-sec .desktop-img {
        display: none;
    }

    .anim-img-sec .mobile-img {
        display: block;
    }
}

@media only screen and (max-width: 575px) {
    .anim-content-sec {
        width: 100%;
    }
}
