.ck.ck-editor__editable_inline {
    min-height: 200px;
    max-height: 480px;
    overflow-y: auto;
}

.ckeditor-fullscreen-open {
    --ck-z-default: 10000;
    --ck-z-panel: 10001;
    overflow: hidden;
}

.ckeditor-anchor-dialog {
    padding: 1.5em;
    border: 1px solid #aaa;
    border-radius: 4px;
}

.ckeditor-anchor-dialog form {
    display: grid;
    gap: 1em;
}

.ck.ck-editor.ckeditor-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: white;
}

.ckeditor-fullscreen .ck-editor__main {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.ckeditor-fullscreen .ck-sticky-panel__content {
    position: static !important;
    width: 100% !important;
    margin-left: 0 !important;
}

.ckeditor-fullscreen .ck-sticky-panel__placeholder {
    display: none !important;
}

.ckeditor-fullscreen .ck-editor__editable_inline {
    height: 100%;
    max-height: none;
}

.ckeditor-fullscreen .ck-source-editing-area,
.ckeditor-fullscreen .ck-source-editing-area textarea {
    height: 100%;
}

/* CKEditor 5 content is also rendered outside the editor. */
figure.table {
    display: table;
    margin: .9em auto;
}

figure.table > table {
    border-collapse: collapse;
}

figure.table > table:not([width]) {
    width: 100%;
}

figure.table > table:not([border]),
figure.table > table:not([border]) > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    border: 1px solid #bfbfbf;
}

figure.table > table:not([cellpadding]) > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    padding: .4em;
}

figure.image {
    display: table;
    clear: both;
    margin: .9em auto;
    text-align: center;
}

figure.image img {
    display: block;
    max-width: 100%;
}

figure.image.image-style-side {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
}

figure.image > figcaption,
figure.table > figcaption {
    display: table-caption;
    caption-side: bottom;
    padding: .6em;
    background: #f7f7f7;
    font-size: .85em;
}

@media (min-width: 768px) {
    .form-horizontal label.col-sm-2 {
        float: left !important;
    }
}
