.banner-text-container {
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    padding-top: 40px;
    position: relative;
}

.banner-text-container .image-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.banner-text-container .image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text-overlay {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    width: 90%;
    margin: 0 auto;
    max-width: 1400px;
    position: relative;
    padding: 0 10px;
}

.banner-text-top-image {
    height: auto;
    margin: 0;
    max-width: 700px;
    width: unset;
    max-height: 500px;
}

.banner-text-content {
    width: 40%;
    margin: 0;
    padding-bottom: 30px;
}

.banner-text-top-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    max-height: 500px;
}

.no-back-img .banner-text-top-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.no-back-img .banner-text-top-image,
.no-back-img .banner-text-content {
    width: 50%;
}

.banner-text-content h2 {
    font-weight: 300;
    line-height: 40px;
    font-size: 2rem;
    width: 100%;
    margin-bottom: 40px;
}

.banner-text-content p {
    line-height: 1.5;
    font-size: 1rem;
    width: 100%;
}

.no-back-img .banner-text-content {
    font-weight: 600;
    line-height: 1.5;
    font-size: 2vw;
}

.no-back-img .banner-text-content p {
    font-weight: 300;
    line-height: 1.5;
    font-size: 1.5vw;
}

.no-back-img .banner-text-content a {
    font-weight: 600;
    line-height: 1.5;
    font-size: 1.5vw;
}

.banner-text-content > a {
    text-decoration: none;
    font-weight: bold;
}

.banner-text-left {
    flex-direction: row-reverse;
    text-align: end;
}

.no-back-img {
    text-align: left!important;
}

.no-back-img.banner-text-left {
    text-align: right!important;
}


/* Media query */
@media (max-width: 1024px) {
    .banner-text-overlay {
        flex-direction: column-reverse;
        width: 100%;
        height: auto;
        padding: 30px 40px 0;
    }

    .banner-text-left {
        flex-direction: column-reverse;
        text-align: unset;
    }

    .banner-text-top-image {
        height: auto;
        width: 300px;
        margin: 0 auto;
        text-align: center;
    }

    .banner-text-content {
        width: 100%;
        height: auto;
    }

    .no-back-img .banner-text-content {
        font-size: 3vw;
    }

    .no-back-img .banner-text-content p {
        font-size: 2.5vw;
    }

    .no-back-img .banner-text-content a {
        font-size: 2.5vw;
    }

    .no-back-img {
        flex-direction: row;
        text-align: left!important;
    }

    .no-back-img.banner-text-left {
        flex-direction: row-reverse;
        text-align: right!important;
    }

    .no-back-img .banner-text-top-image,
    .no-back-img .banner-text-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .banner-text-top-image {
        height: 380px;
    }

    .no-back-img {
        flex-direction: column-reverse;
    }

    .no-back-img .banner-text-top-image {
        height: auto;
    }

    .no-back-img img {
        object-fit: contain;
        object-position: bottom;
    }

    .no-back-img.banner-text-left {
        flex-direction: column-reverse;
    }
    .no-back-img,
    .no-back-img.banner-text-left {
        text-align: center!important;
    }

    .banner-text-overlay {
        padding: 30px 20px 0;
    }
}