.half-text-full-image {
    position: relative;
}

.half-text-full-image__img {
    width: 100%;
    height: 100%;
    position: relative;
    aspect-ratio: 375 / 225 auto;
}

.half-text-full-image__img img {
    -o-object-position: top;
    object-position: top;
}

.half-text-full-image__wrap {
    position: relative;
    padding-top: 40px;
    padding-bottom: 60px;
}

@media (min-width: 768px) {
    .half-text-full-image {
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        aspect-ratio: 768 / 515 auto;
    }

    .half-text-full-image__img {
        aspect-ratio: 768 / 515 auto;
    }

    .half-text-full-image::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        bottom: 0;
        left: 0;
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.79) 36%,
            rgba(255, 255, 255, 1) 48%,
            rgba(255, 255, 255, 1) 100%
        );
    }

    .bg-light-blue.half-text-full-image::after {
        background: linear-gradient(
            to bottom,
            rgba(229, 241, 255, 0) 0%,
            rgba(229, 241, 255, 0.79) 36%,
            rgba(229, 241, 255, 1) 48%,
            rgba(229, 241, 255, 1) 100%
        );
    }

    .bg-light-yellow.half-text-full-image::after {
        background: linear-gradient(
            to bottom,
            rgba(255, 247, 221, 0) 0%,
            rgba(255, 247, 221, 0.79) 36%,
            rgba(255, 247, 221, 1) 48%,
            rgba(255, 247, 221, 1) 100%
        );
    }

    .bg-navy-blue.half-text-full-image::after {
        background: linear-gradient(
            to bottom,
            rgba(35, 54, 124, 0) 0%,
            rgba(35, 54, 124, 0.79) 36%,
            rgba(35, 54, 124, 1) 48%,
            rgba(35, 54, 124, 1) 100%
        );
    }

    .half-text-full-image__wrap {
        position: relative;
        padding-top: 100px;
        padding-bottom: 80px;
        z-index: 1;
    }
}

@media (min-width: 1200px) {
    .half-text-full-image {
        display: flex;
        align-items: center;
        padding-bottom: 0;
        padding-top: 0;
        overflow: hidden;
        aspect-ratio: auto;
    }

    .half-text-full-image__img {
        position: absolute;
        top: 0;
        left: 0;
        aspect-ratio: 1920 / 640 auto;
    }

    .half-text-full-image__wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-top: 100px;
        padding-bottom: 100px;
        max-width: 724px;
    }

    .half-text-full-image--left .half-text-full-image__wrap {
        margin-left: auto;
    }

    .half-text-full-image::after {
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.9) 40%,
            rgba(255, 255, 255, 0.84) 55%,
            rgba(255, 255, 255, 0.51) 70%,
            rgba(255, 255, 255, 0) 80%,
            rgba(255, 255, 255, 0) 100%
        );
    }

    .half-text-full-image--left.half-text-full-image::after {
        background: linear-gradient(
            to left,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.9) 40%,
            rgba(255, 255, 255, 0.84) 55%,
            rgba(255, 255, 255, 0.51) 70%,
            rgba(255, 255, 255, 0) 80%,
            rgba(255, 255, 255, 0) 100%
        );
    }

    .bg-light-blue.half-text-full-image::after {
        background: linear-gradient(
            to right,
            rgba(229, 241, 255, 0.9) 0%,
            rgba(229, 241, 255, 0.9) 40%,
            rgba(229, 241, 255, 0.84) 55%,
            rgba(229, 241, 255, 0.51) 70%,
            rgba(229, 241, 255, 0) 80%,
            rgba(229, 241, 255, 0) 100%
        );
    }

    .bg-light-blue.half-text-full-image--left.half-text-full-image::after {
        background: linear-gradient(
            to left,
            rgba(229, 241, 255, 0.9) 0%,
            rgba(229, 241, 255, 0.9) 40%,
            rgba(229, 241, 255, 0.84) 55%,
            rgba(229, 241, 255, 0.51) 70%,
            rgba(229, 241, 255, 0) 80%,
            rgba(229, 241, 255, 0) 100%
        );
    }

    .bg-light-yellow.half-text-full-image::after {
        background: linear-gradient(
            to right,
            rgba(255, 247, 221, 0.9) 0%,
            rgba(255, 247, 221, 0.9) 40%,
            rgba(255, 247, 221, 0.84) 55%,
            rgba(255, 247, 221, 0.51) 70%,
            rgba(255, 247, 221, 0) 80%,
            rgba(255, 247, 221, 0) 100%
        );
    }

    .bg-light-yellow.half-text-full-image--left.half-text-full-image::after {
        background: linear-gradient(
            to left,
            rgba(255, 247, 221, 0.9) 0%,
            rgba(255, 247, 221, 0.9) 40%,
            rgba(255, 247, 221, 0.84) 55%,
            rgba(255, 247, 221, 0.51) 70%,
            rgba(255, 247, 221, 0) 80%,
            rgba(255, 247, 221, 0) 100%
        );
    }

    .bg-navy-blue.half-text-full-image::after {
        background: linear-gradient(
            to right,
            rgba(35, 54, 124, 0.9) 0%,
            rgba(35, 54, 124, 0.9) 40%,
            rgba(35, 54, 124, 0.84) 55%,
            rgba(35, 54, 124, 0.51) 70%,
            rgba(35, 54, 124, 0) 80%,
            rgba(35, 54, 124, 0) 100%
        );
    }

    .bg-navy-blue.half-text-full-image--left.half-text-full-image::after {
        background: linear-gradient(
            to left,
            rgba(35, 54, 124, 0.9) 0%,
            rgba(35, 54, 124, 0.9) 40%,
            rgba(35, 54, 124, 0.84) 55%,
            rgba(35, 54, 124, 0.51) 70%,
            rgba(35, 54, 124, 0) 80%,
            rgba(35, 54, 124, 0) 100%
        );
    }
}
