/* Expresso Rio V22.4.7 — núcleo único de mídia do corpo da matéria. */
.er-v22-article-body img,
.er-v22-article-body picture,
.er-v22-article-body figure,
.er-v22-article-body video,
.er-v22-article-body audio,
.er-v22-article-body iframe,
.er-v22-article-body object,
.er-v22-article-body embed{
  max-width:100%!important;
  box-sizing:border-box!important;
}
.er-v22-article-body img{height:auto!important}
.er-v22-article-body figure{margin:26px auto!important}
.er-v22-article-body figure img,
.er-v22-article-body .wp-caption img,
.er-v22-article-body img[class*="wp-image-"]{display:block;max-width:100%;height:auto;margin-inline:auto}

/* Nunca aplicar height:auto genericamente a iframe. Cada tipo controla a sua altura. */
.er-v22-article-body iframe.er-content-frame,
.er-v22-article-body .er-media-shell iframe{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  border:0!important;
}
.er-v22-article-body .er-embed-responsive,
.er-v22-article-body .er-imported-embed,
.er-v22-article-body .wp-block-embed,
.er-v22-article-body .wp-block-embed__wrapper,
.er-v22-article-body .er-media-shell{
  width:100%!important;
  max-width:720px!important;
  min-width:0!important;
  margin:26px auto!important;
  overflow:visible!important;
  background:transparent!important;
  box-sizing:border-box!important;
}

/* YouTube / Vimeo / players 16:9. */
.er-v22-article-body iframe[src*="youtube.com"],
.er-v22-article-body iframe[src*="youtube-nocookie.com"],
.er-v22-article-body iframe[src*="youtu.be"],
.er-v22-article-body iframe[src*="vimeo.com"],
.er-v22-article-body iframe.er-video-embed{
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  min-height:0!important;
  background:#111!important;
}

/* HTML5 local. */
.er-v22-article-body video,
.er-v22-article-body .wp-video,
.er-v22-article-body .wp-video video{
  display:block!important;
  width:100%!important;
  height:auto!important;
  margin:26px auto!important;
  background:#111!important;
}
.er-v22-article-body audio{display:block!important;width:100%!important;margin:22px auto!important}

/* Social: blockquotes oficiais não herdam o visual de citação jornalística. */
.er-v22-article-body .er-media-shell--social{max-width:700px!important}
.er-v22-article-body blockquote.instagram-media,
.er-v22-article-body blockquote.twitter-tweet,
.er-v22-article-body blockquote.tiktok-embed,
.er-v22-article-body .er-media-shell--social blockquote{
  width:100%!important;
  max-width:700px!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  background:#fff!important;
  color:inherit!important;
  font:inherit!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.er-v22-article-body iframe[src*="instagram.com"],
.er-v22-article-body iframe[src*="platform.twitter.com"],
.er-v22-article-body iframe[src*="tiktok.com"],
.er-v22-article-body iframe[src*="facebook.com/plugins"],
.er-v22-article-body iframe.er-social-frame{
  display:block!important;
  width:100%!important;
  max-width:700px!important;
  min-width:0!important;
  margin-inline:auto!important;
  border:0!important;
}
.er-v22-article-body .er-facebook-frame--video{height:auto!important;aspect-ratio:16/9!important;min-height:0!important;background:#111}
.er-v22-article-body .er-facebook-frame--post{height:680px!important;max-height:82vh!important;background:#fff}
.er-v22-article-body .instagram-media{min-height:120px}
.er-v22-article-body .tiktok-embed{max-width:605px!important}

/* Documentos: altura explícita, nunca height:auto. */
.er-v22-article-body .er-media-shell--document{max-width:100%!important}
.er-v22-article-body iframe.er-document-frame,
.er-v22-article-body iframe[src*="docs.google.com/gview"],
.er-v22-article-body iframe[src$=".pdf"],
.er-v22-article-body iframe[src*=".pdf?"],
.er-v22-article-body object[type="application/pdf"],
.er-v22-article-body embed[type="application/pdf"]{
  display:block!important;
  width:100%!important;
  height:min(74vh,860px)!important;
  min-height:560px!important;
  border:1px solid #dfe3e8!important;
  border-radius:6px!important;
  background:#f7f8fa!important;
}
.er-v22-article-body .er-media-fallback{
  display:block!important;
  margin:8px 0 0!important;
  padding:9px 12px!important;
  border:1px solid #e1e5ea!important;
  border-radius:6px!important;
  background:#f7f8fa!important;
  font:600 13px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  text-align:center!important;
}
.er-v22-article-body .er-media-fallback a{color:#243e68!important;text-decoration:underline!important;text-underline-offset:3px!important}

@media(max-width:760px){
  .er-v22-article-body .er-embed-responsive,
  .er-v22-article-body .er-imported-embed,
  .er-v22-article-body .wp-block-embed,
  .er-v22-article-body .wp-block-embed__wrapper,
  .er-v22-article-body .er-media-shell,
  .er-v22-article-body blockquote.instagram-media,
  .er-v22-article-body blockquote.twitter-tweet,
  .er-v22-article-body blockquote.tiktok-embed{
    width:100%!important;
    max-width:100%!important;
    margin:22px 0!important;
  }
  .er-v22-article-body iframe.er-document-frame,
  .er-v22-article-body iframe[src*="docs.google.com/gview"],
  .er-v22-article-body iframe[src$=".pdf"],
  .er-v22-article-body iframe[src*=".pdf?"]{
    height:68svh!important;
    min-height:460px!important;
  }
  .er-v22-article-body .er-facebook-frame--post{height:620px!important;max-height:78svh!important}
}
