/* WCFYL News Editor v0.5 — consistent article-width media/shortcode blocks.
   Loaded only on native WordPress posts with builder metadata.
   Blocksy's normal text blocks use --theme-default-editor / --theme-block-width.
   Keep our images, galleries and footer aligned with that same reading column. */
body.wcfyl-news-editor-post .entry-content > figure.wp-block-image,
body.wcfyl-news-editor-post .entry-content > figure.wp-block-gallery,
body.wcfyl-news-editor-post .entry-content > div.wp-block-gallery,
body.wcfyl-news-editor-post .entry-content > .wp-block-shortcode {
  box-sizing: border-box !important;
  width: var(--theme-default-editor, var(--theme-block-width, 100%)) !important;
  max-width: min(100%, 820px) !important;
  margin-inline: auto !important;
  float: none !important;
}
/* Alignments from older editor drafts should not force images across the page. */
body.wcfyl-news-editor-post .entry-content > figure.wp-block-image.alignwide,
body.wcfyl-news-editor-post .entry-content > figure.wp-block-image.alignfull,
body.wcfyl-news-editor-post .entry-content > figure.wp-block-gallery.alignwide,
body.wcfyl-news-editor-post .entry-content > figure.wp-block-gallery.alignfull {
  left: auto !important;
  right: auto !important;
  transform: none !important;
}
body.wcfyl-news-editor-post .entry-content > figure.wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
}
body.wcfyl-news-editor-post .entry-content > .wp-block-shortcode .wcfyl-match-report-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 0 !important;
}
/* Also protects the footer if a theme renders the shortcode without its block wrapper. */
body.wcfyl-news-editor-post .entry-content > .wcfyl-match-report-footer {
  width: var(--theme-default-editor, var(--theme-block-width, 100%)) !important;
  max-width: min(100%, 820px) !important;
  margin: 28px auto 0 !important;
}
@media (max-width: 850px) {
  body.wcfyl-news-editor-post .entry-content > figure.wp-block-image,
  body.wcfyl-news-editor-post .entry-content > figure.wp-block-gallery,
  body.wcfyl-news-editor-post .entry-content > div.wp-block-gallery,
  body.wcfyl-news-editor-post .entry-content > .wp-block-shortcode {
    width: 100% !important;
  }
}
