body .text-image-wrap {
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flow-root;
}

body .text-image-wrap__figure {
    float: right;
    margin: 0 0 0 1rem;
    max-width: min(320px, 45%);
    width: 100%;
}

body .text-image-wrap--left .text-image-wrap__figure {
    float: left;
    margin: 0 1rem 0 0;
}

body .text-image-wrap__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

body .text-image-wrap__figure--bordered {
    border-radius: 20px;
    border: 10px solid #f5f3f2;
    background: #f5f3f2;
    overflow: hidden;
    box-sizing: border-box;
}

body .text-image-wrap__caption {
    font-size: 0.875rem;
    color: #5d6166;
    margin-top: 0.75rem;
}

body .text-image-wrap__content {
    font-family: inherit;
    color: inherit;
}

body .text-image-wrap__placeholder {
    padding: 1.5rem;
    border: 1px dashed #9ca3af;
    border-radius: 0.5rem;
    background: rgba(156, 163, 175, 0.1);
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.block-wrapper .text-image-wrap__content {
    min-height: 100px;
}

@media (max-width: 767px) {
    body .text-image-wrap {
        max-width: 100%;
    }

    body .text-image-wrap__figure {
        float: none;
        margin: 0 auto 1.5rem;
        max-width: 85%;
    }

    body .text-image-wrap__figure img {
        width: 100%;
    }
}

@media (min-width: 576px) {
    body .text-image-wrap {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    body .text-image-wrap {
        max-width: 720px;
    }
}

@media (min-width: 1010px) {
    body .text-image-wrap {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    body .text-image-wrap {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    body .text-image-wrap {
        max-width: 1320px;
    }
}

