.image-with-text {
    position: relative;
    width: 100%;
}

.image-with-text.border-top {
    border-top: 1px solid var(--color-black);
}

.image-with-text.border-bottom {
    border-bottom: 1px solid var(--color-black);
}

.image-with-text:after {
    content: "";
    display: block;
    width: 100%;
    position: relative;
    padding-bottom: 42%;
}

.image-with-text > * {
    width: 50%;
    height: 100%;
    position: absolute;
}

.image-with-text .image,
.image-with-text.inverse .content {
    left: 0;
    right: unset;
}

.image-with-text .image {
    border-right: 1px solid var(--color-black);
}

.image-with-text.no-image .image,
.image-with-text .image.mobile {
    display: none;
}

.image-with-text.inverse .image {
    border-right: 0;
    border-left: 1px solid var(--color-black);
}

.image-with-text.inverse .image,
.image-with-text .content {
    right: 0;
    left: unset;
}

.image-with-text .content {
    padding: 1.3vw 5vw 1.3vw 2.3vw;
}

.image-with-text.full > * {
    width: 100%;
    left: 0 !important;
    right: unset !important;
}

.image-with-text.full .content {
    padding: 2.3vw 11.5vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-with-text .content .heading {
    border-bottom: 1px solid var(--color-black);
    width: calc(100% + 7.3vw);
    left: -2.3vw;
    position: relative;
    padding: 0 2.3vw 1.3vw;
    margin-bottom: 1.3vw;
}

.image-with-text .content .spaced {
    margin-bottom: 8vw;
}

.image-with-text.full .content.font-size-140-160 {
    padding: 2.3vw 15vw;
}

.image-with-text.full .content.white {
    color: var(--color-white);
    display: flex;
    flex-direction: column;
}

.image-with-text .image picture,
.image-with-text .image img {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-with-text .image img {
    display: block;
    object-fit: cover;
}

@media only screen and (min-width: 769px) {
    .image-with-text.full .content {
        background: rgba(0, 0, 0, 0.25);
    }

    .image-with-text.no-image .content {
        background-color: transparent;
    }
}

@media only screen and (max-width: 768px) {
    .image-with-text {
        display: flex;
        flex-direction: column;
    }

    .image-with-text:after {
        content: none;
    }

    .image-with-text.inverse-mobile {
        flex-direction: column-reverse;
    }

    .image-with-text > * {
        position: relative;
        width: 100%;
        height: auto;
    }

    .image-with-text .image.hide-on-mobile {
        display: none !important;
    }

    .image-with-text.inverse .image {
        border-left: 0;
    }

    .image-with-text .content {
        text-align: left !important;
        color: var(--color-black) !important;
        padding: 4.65vw 8vw 12.82vw 4.65vw !important;
        gap: 10.8vw;
        display: flex;
        flex-direction: column;
    }

    .image-with-text .content .title {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    .image-with-text .content .text {
        font-size: 1.33rem;
        line-height: 1.6rem;
    }

    .image-with-text .content .heading {
        width: calc(100% + 8vw + 4.65vw);
        left: -4.65vw;
        padding: 0 4.65vw 4.65vw;
    }

    .image-with-text .image.desktop {
        display: none;
    }

    .image-with-text .image.mobile {
        display: block;
        border-bottom: 1px solid var(--color-black);
    }

    .image-with-text .content {
        gap: 5vw
    }

    .image-with-text .content .spaced {
        margin-bottom: 4vw;
    }

    .image-with-text.no-image .content {
        padding: 4.65vw;
    }

    .image-with-text.no-image .content .text {
        text-align: center;
    }

    .image-with-text.full-mobile .image,
    .image-with-text.full-mobile .image picture,
    .image-with-text.full-mobile .image picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-with-text.full-mobile .content.white {
        color: var(--color-white) !important;
        padding: 30vw 8vw !important;
    }

    .image-with-text.full-mobile .content.white .title,
    .image-with-text.full-mobile .content.white .text {
        text-align: center;
    }

    .image-with-text.full-mobile .content .text {
        font-size: 1rem;
        line-height: 1.3rem;
    }
}
