:is(.bo-rich-text, .ck-content) .text-left { text-align: left; }
:is(.bo-rich-text, .ck-content) .text-center { text-align: center; }
:is(.bo-rich-text, .ck-content) .text-right { text-align: right; }
:is(.bo-rich-text, .ck-content) .text-justify { text-align: justify; }
:is(.bo-rich-text, .ck-content) .text-small { font-size: 0.95em; }
:is(.bo-rich-text, .ck-content) .text-big { font-size: 1.15em; }

.bo-rich-text figure.image,
.bo-rich-text figure.media,
.bo-rich-text figure.table {
    margin: 1.5rem 0;
}

.bo-rich-text img {
    max-width: 100%;
    height: auto;
}

.bo-rich-text figure.image {
    text-align: center;
}

.bo-rich-text figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.bo-editor-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #171717;
}

.bo-rich-text figure.table {
    overflow-x: auto;
}

.bo-rich-text table {
    width: 100%;
    border-collapse: collapse;
}

.bo-rich-text :is(th, td) {
    border: 1px solid var(--bo-border);
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.bo-rich-text th {
    background: var(--bo-surface);
}

.bo-rich-text hr {
    margin: 1.5rem 0;
    border-top: 1px solid var(--bo-border);
}
