.editorjs-paragraph {
    overflow-wrap: anywhere;
}

.editorjs-header {
    scroll-margin-top: 1rem;
}

.editorjs-list {
    padding-left: 1.5em;
}

.editorjs-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.editorjs-table table {
    border-collapse: collapse;
    min-width: 100%;
}

.editorjs-table th,
.editorjs-table td {
    border: 1px solid #e2e5e9;
    padding: .5em;
    text-align: left;
    vertical-align: top;
}

.editorjs-image,
.editorjs-embed {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.editorjs-image__image {
    display: block;
    height: auto;
    max-width: 100%;
}

.editorjs-caption {
    color: #66717e;
    font-size: .9em;
    margin-top: .5em;
    overflow-wrap: anywhere;
}

.editorjs-content--publication .b-typography__note {
    background: var(--color-gray, #f9f9fb);
    border: 2px solid transparent;
    border-radius: 3px;
    box-sizing: border-box;
    margin: 1.5em 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 30px 80px 30px 30px;
    position: relative;
}

.editorjs-content--publication .b-typography__note::before {
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    background: none;
    color: var(--color-accent, #337ab7);
    content: "\261C";
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: 30px;
    top: 26px;
}

.editorjs-content--publication .b-typography__note_type_info {
    background: transparent;
    border-color: var(--color-accent, #337ab7);
}

.editorjs-content--publication .b-typography__note_type_info::before {
    color: var(--color-accent, #337ab7);
    content: "\24D8";
}

.editorjs-content--publication .b-typography__note_type_warning {
    background: var(--color-gray, #f9f9fb);
    border-color: transparent;
}

.editorjs-content--publication .b-typography__note_type_warning::before {
    color: var(--color-accent, #337ab7);
    content: "\261C";
}

.editorjs-content--publication .b-typography__note_type_important {
    background: #fff6cc;
    border-color: #e6b800;
}

.editorjs-content--publication .b-typography__note_type_important::before {
    color: #a65f00;
    content: "\26A0";
}

.editorjs-content--publication .editorjs-quote {
    background-color: var(--color-gray, #f9f9fb);
    border: 0;
    border-radius: 3px;
    box-sizing: border-box;
    line-height: 1.5em;
    margin: 2em 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 2em 3em;
    position: relative;
}

.editorjs-content--publication .editorjs-quote::before,
.editorjs-content--publication .editorjs-quote::after {
    color: var(--color-accent, #337ab7);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 6em;
    line-height: 1em;
    opacity: 1;
    pointer-events: none;
    position: absolute;
}

.editorjs-content--publication .editorjs-quote::before {
    content: "\201C";
    left: -.1em;
    top: -.175em;
}

.editorjs-content--publication .editorjs-quote::after {
    bottom: -.75em;
    content: "\201D";
    right: -.1em;
}

.editorjs-content--publication .editorjs-quote__caption {
    display: block;
    font-size: .8em;
    font-style: italic;
    line-height: 1.5em;
    margin-bottom: -1em;
    margin-top: 1em;
    opacity: .75;
    overflow-wrap: anywhere;
    text-align: right;
}

.editorjs-raw {
    max-width: 100%;
    overflow: auto;
}

.editorjs-content--publication .editorjs-embed_rutube {
    margin: 3em 0;
}

.editorjs-embed .b-video-rutube {
    max-width: 100%;
}

@media (max-width: 575px) {
    .editorjs-table {
        margin-left: -.75rem;
        margin-right: -.75rem;
        padding: 0 .75rem;
    }

    .editorjs-table th,
    .editorjs-table td {
        min-width: 8rem;
    }

    .editorjs-content--publication .b-typography__note {
        padding: 28px 20px 20px;
    }

    .editorjs-content--publication .b-typography__note::before {
        font-size: 32px;
        left: 0;
        right: auto;
        top: -16px;
    }

    .editorjs-content--publication .editorjs-quote {
        padding: 2.5em 1.5em;
    }

    .editorjs-content--publication .editorjs-quote::before {
        left: 0;
    }

    .editorjs-content--publication .editorjs-quote::after {
        right: 0;
    }

    .editorjs-content--publication .editorjs-quote__caption {
        margin-right: 2em;
    }
}
