/* Babywearing — content display fixes.
   SiteOrigin editor content uses <ul><li><h2>…</h2></li></ul> as a structural
   wrapper (not a real bullet list). The Divi-based theme shows a list marker
   next to those headings; the live site does not. Suppress the marker only for
   <li> that wrap a heading, so genuine bullet lists keep their markers. */
.siteorigin-widget-tinymce li:has(> h1, > h2, > h3, > h4, > h5, > h6) {
  list-style: none !important;
  display: block !important;   /* a block box has no list marker at all */
}
.siteorigin-widget-tinymce li:has(> h1, > h2, > h3, > h4, > h5, > h6)::marker {
  content: none !important;
}
.siteorigin-widget-tinymce ul:has(> li > h1, > li > h2, > li > h3, > li > h4, > li > h5, > li > h6) {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Divi outputs its 3-column gallery grid CSS only on pages that use the Divi
   builder. On imported SiteOrigin pages the WP media-gallery widget still gets
   Divi's .et_post_gallery markup but not this CSS, so the items render full
   width. Provide the same grid so galleries match the Divi pages / live. */
.et_post_gallery { padding: 0 !important; line-height: 1.7 !important; list-style: none !important; }
.et_gallery_item { float: left; width: 28.353%; margin: 0 7.47% 7.47% 0; }
.et_gallery_item:nth-child(3n+1) { clear: both; }
.et_gallery_item:nth-child(3n) { margin-right: 0; }
.et_gallery_item:nth-child(4n+1) { clear: none; }
.blocks-gallery-item:before, .et_gallery_item:before { display: none; }
.blocks-gallery-item, .et_gallery_item { padding-left: 0 !important; }
