.text-media.bg-white {
    background-color: var(--white);
}

.text-media.bg-gradient {
    background: linear-gradient(180deg, #FFF 0%, #FFF4FF 100%);
}

.text-media .boxed {
    display: flex;
    gap: 40px;
}

.text-media .boxed.image-left {
    flex-direction: row;
}

.text-media .boxed.image-right {
    flex-direction: row-reverse;
}

.text-media .boxed.space-even > div {
    flex: 1;
}

.text-media .boxed.space-35-65 > div:first-child {
    flex: 0 0 70%;
}

.text-media .boxed.space-35-65 > div:last-child {
    flex: 0 0 27%;
}

.text-media .boxed .media {
    position: relative;
    max-width: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-media .boxed .media .media-overlay {
    position: absolute;
    right: 45px;
    bottom: 0;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    max-width: min(75%, 520px);
    z-index: 1;
}

.text-media .boxed .media .overlay-heading {
    font-size: 24px;
    line-height: 32px;
}

.text-media .boxed .media .overlay-content * {
    font-size: 18px;
    line-height: 26px;
}

.text-media .boxed.space-even .media {
    aspect-ratio: 1.5;
}

.text-media .boxed .media img {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-media .boxed .info {
    display: flex;
    flex-direction: column;
}

.text-media .boxed .info .heading.heading-size-default {
    font-size: 48px;
    line-height: 60px;
}

.text-media .boxed .info .heading.heading-size-small {
    font-size: 30px;
    line-height: 30px;
    letter-spacing: 0.5px;
}

.text-media .boxed .info.bg-soft-ivory {
    background-color: var(--soft-ivory);
    border-radius: 16px;
    padding: 60px 45px;
}

.text-media .boxed .info > .content {
    margin-bottom: 45px;
}

.text-media .boxed .info > .content > p:last-child {
    margin-bottom: 0;
}

.text-media .boxed .info .content *:not(h1):not(h2):not(h3):not(h4):not(h5) {
    color: var(--midnight-indigo);
    font-family: Ubuntu-400, Arial, sans-serif;
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 0.5px;
}

.text-media .boxed .info .content ul li {
    position: relative;
    list-style: none;
    color: var(--royal-purple) !important;
    font-family: Ubuntu-500, Arial, sans-serif !important;
    margin-bottom: 8px;
}

.text-media .boxed .info .content ul li::before {
    content: url("/wp-content/themes/generatepress_child/assets/images/general-icons/list-icon.png");
    position: absolute;
    left: -57px;
    top: -1px;
}


@media only screen and (max-width: 915px) {
    .text-media .boxed .content div > p > a {
        font-size: 18px;
    }
}

@media only screen and (max-width: 850px) {
    .text-media .boxed.image-left, .text-media .boxed.image-right {
        flex-direction: column;
    }
    .text-media .boxed .media .media-overlay {
        padding: 20px;
        max-width: min(75%, 320px);
    }
    .text-media .boxed .media .overlay-content *:last-child {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 660px) {
    .text-media .boxed {
        gap: 25px;
    }
    .text-media .boxed .media .media-overlay * {
        font-size: 12px;
        line-height: 22px;
    }
}

@media only screen and (max-width: 500px) {
    .text-media .boxed .info.bg-soft-ivory {
        padding: 40px 20px;
    }
    .hero .full-width .info {
        padding-right: 0;
        margin-left: 0;
    }
    .hero .info {
        padding: 0;
    }
    .text-media .boxed .info .heading.heading-size-small {
        font-size: 20px;
        line-height: 20px;
    }
    .text-media .boxed .info .content * {
        font-size: 16px;
        line-height: 24px;
    }
    .text-media .boxed .info .heading.heading-size-default {
        font-size: 32px;
        line-height: 40px;
    }
    .text-media .boxed .media .media-overlay {
        right: 20px;
        padding: 6px;
        max-width: min(75%, 185px);
    }
    .text-media .boxed .media .media-overlay * {
        font-size: 8px;
        line-height: 12px;
    }
}