/* static/assets/css/ckeditor-content.css
   Public-site styles for HTML saved by CKEditor 5 (wrapped in .ck-content) */

/* Images */
.ck-content .image { display: table; clear: both; text-align: center; margin: 1rem auto; }
.ck-content .image img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ck-content .image-inline { display: inline-flex; max-width: 100%; }
.ck-content .image-inline img { max-width: 100%; height: auto; }
.ck-content .image_resized { max-width: 100%; display: block; }
.ck-content .image_resized img { width: 100%; }
.ck-content .image-style-side { float: right; margin-left: 1.5rem; max-width: 50%; }
.ck-content .image > figcaption { font-size: .875rem; color: #6c757d; padding: .5rem 0; }

@media (max-width: 575.98px) {
  .ck-content .image-style-side { float: none; margin-left: 0; max-width: 100%; }
}

/* Tables */
.ck-content figure.table { overflow-x: auto; margin: 1rem 0; }
.ck-content figure.table > table { width: 100%; }

/* Lists */
.ck-content .todo-list { list-style: none; padding-left: 0; }
.ck-content .todo-list li { margin-bottom: .25rem; }
.ck-content .todo-list input[type="checkbox"] { margin-right: .5rem; }

/* Media embed (requires "mediaEmbed": {"previewsInData": True}) */
.ck-content .media { clear: both; margin: 1rem 0; }
.ck-content .media iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Code */
.ck-content code { background: rgba(0, 0, 0, .05); padding: .15em .35em; border-radius: .25rem; }

/* Contain floated images inside the content block */
.ck-content::after { content: ""; display: table; clear: both; }
