/* Only block containers are positioned above Madara's paged click-navigation overlay. */
.bxrb-image-blocks {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.bxrb-image-blocks .bxrb-copy {
    box-sizing: border-box;
    max-width: 900px;
    margin: 20px auto;
    padding: 24px 28px;
    border-radius: 8px;
    background: #fafaf8;
    color: #20242a;
    font-family: inherit;
    font-size: var(--bxrb-font-desktop, 26px);
    font-weight: 400;
    line-height: 1.65;
    text-align: start;
    overflow-wrap: anywhere;
}

.bxrb-image-blocks .bxrb-copy p,
.bxrb-image-blocks .bxrb-copy li,
.bxrb-image-blocks .bxrb-copy blockquote {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.bxrb-image-blocks .bxrb-copy p,
.bxrb-image-blocks .bxrb-copy ul,
.bxrb-image-blocks .bxrb-copy ol,
.bxrb-image-blocks .bxrb-copy blockquote {
    margin: 0 0 0.8em;
}

.bxrb-image-blocks .bxrb-copy > :last-child {
    margin-bottom: 0;
}

.bxrb-image-blocks .bxrb-copy ul,
.bxrb-image-blocks .bxrb-copy ol {
    padding-inline-start: 1.4em;
}

.bxrb-image-blocks .bxrb-copy img,
.bxrb-image-blocks .bxrb-copy video,
.bxrb-image-blocks .bxrb-copy iframe {
    max-width: 100%;
}

.bxrb-image-blocks .bxrb-copy a,
body.text-ui-light .bxrb-image-blocks .bxrb-copy a:not(:hover) {
    color: #1257a6;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: max(1px, 0.06em);
}

.bxrb-image-blocks .bxrb-copy a:hover,
.bxrb-image-blocks .bxrb-copy a:focus {
    color: #08386f;
    text-decoration: underline;
}

.bxrb-image-blocks .bxrb-copy a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

body.text-ui-light .bxrb-image-blocks .bxrb-copy {
    background: #202329;
    color: #f4f5f6;
}

body.text-ui-light .bxrb-image-blocks .bxrb-copy a,
body.text-ui-light .bxrb-image-blocks .bxrb-copy a:not(:hover) {
    color: #9bc8ff;
}

body.text-ui-light .bxrb-image-blocks .bxrb-copy a:hover,
body.text-ui-light .bxrb-image-blocks .bxrb-copy a:focus {
    color: #d4e7ff;
}

/* Ads deliberately receive no font, color, background, width, or descendant rules. */
.bxrb-image-blocks .bxrb-block--ad {
    margin: 16px auto;
}

@media (max-width: 767px) {
    .bxrb-image-blocks .bxrb-copy {
        margin: 16px auto;
        padding: 18px 16px;
        border-radius: 4px;
        font-size: var(--bxrb-font-mobile, 22px);
    }
}
