/* Keep CKEditor image widgets inside the form column */
.layout-region--main .ck-content .image,
.layout-region--main .ck-content .image-inline,
.layout-region--main .ck-content .ck-widget_with-resizer {
  max-width: 100%;
}

/* The img carries inline width/height too, so override both */
.layout-region--main .ck-content img {
  max-width: 100%;
  height: auto !important;
}

/* Stop CKEditor editors forcing the Paragraphs tables wider than the column */
.layout-region--main .ck.ck-editor {
  contain: inline-size;
}

/* Keep CKEditor image widgets inside the form column */
.layout-region--main .ck-content .image,
.layout-region--main .ck-content .image-inline,
.layout-region--main .ck-content .ck-widget_with-resizer {
  max-width: 100%;
}

.layout-region--main .ck-content img {
  max-width: 100%;
  height: auto !important;
}