/*
 * Diário73 – organização das matérias (v1.14.6)
 * Ordem: Resumo/Ouvir matéria -> foto destacada -> legenda -> vídeo/texto.
 */

body.single-post article.single-post > figure.single-img,
body.single-post article.single-post figure.single-img {
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  position: static !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 22px auto 24px !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
}

body.single-post article.single-post figure.single-img > img,
body.single-post article.single-post figure.single-img > picture,
body.single-post article.single-post figure.single-img > picture > img {
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  object-position: center !important;
}

body.single-post article.single-post figure.single-img > .d73dr-featured-caption,
body.single-post article.single-post figure.single-img > figcaption {
  box-sizing: border-box !important;
  display: block !important;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 4px auto 0 !important;
  padding: 0 8px !important;
  color: #62666b !important;
  background: transparent !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-shadow: none !important;
}

body.single-post article.single-post > .entry-content {
  display: block !important;
}

body.single-post article.single-post > .entry-content .d73dr-content-image-relocated {
  order: initial !important;
}

@media (max-width: 620px) {
  body.single-post article.single-post > figure.single-img,
  body.single-post article.single-post figure.single-img {
    margin-top: 18px !important;
    margin-bottom: 22px !important;
  }

  body.single-post article.single-post figure.single-img > img,
  body.single-post article.single-post figure.single-img > picture > img {
    border-radius: 6px !important;
  }

  body.single-post article.single-post figure.single-img > .d73dr-featured-caption,
  body.single-post article.single-post figure.single-img > figcaption {
    margin-top: 3px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
  }
}

/* ===== V1.13.0: conteúdo interno completo, proporcional e com legendas ===== */
body.single-post article.single-post,
body.single-post article.single-post * {
  box-sizing: border-box;
}

body.single-post article.single-post > .entry-content {
  clear: both !important;
  float: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  width: 100% !important;
}

body.single-post article.single-post > .d73dr-pre-feature-media-single {
  clear: both !important;
  display: block !important;
  float: none !important;
  margin: 20px auto 18px !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 100% !important;
}

body.single-post article.single-post > .d73dr-pre-feature-media-single > *,
body.single-post article.single-post > .d73dr-pre-feature-media-single figure,
body.single-post article.single-post > .d73dr-pre-feature-media-single .wp-block-image,
body.single-post article.single-post > .d73dr-pre-feature-media-single .wp-caption,
body.single-post article.single-post > .d73dr-pre-feature-media-single picture,
body.single-post article.single-post > .d73dr-pre-feature-media-single p {
  clear: both !important;
  display: block !important;
  float: none !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  width: 100% !important;
}

body.single-post article.single-post > .d73dr-pre-feature-media-single img,
body.single-post article.single-post .entry-content img:not(.emoji):not(.wp-smiley) {
  aspect-ratio: auto !important;
  clear: both !important;
  display: block !important;
  float: none !important;
  height: auto !important;
  margin: 18px auto 6px !important;
  max-height: none !important;
  max-width: min(100%, 820px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1 !important;
  position: static !important;
  transform: none !important;
  visibility: visible !important;
  width: auto !important;
}

body.single-post article.single-post > .d73dr-pre-feature-media-single img,
body.single-post article.single-post .entry-content img.d73dr-media-banner,
body.single-post article.single-post .entry-content .d73dr-media-banner-wrap img {
  max-width: 100% !important;
  width: 100% !important;
}

body.single-post article.single-post .entry-content img.d73dr-media-portrait {
  max-width: min(100%, 680px) !important;
  width: auto !important;
}

body.single-post article.single-post .entry-content figure,
body.single-post article.single-post .entry-content .wp-block-image,
body.single-post article.single-post .entry-content .wp-caption,
body.single-post article.single-post .entry-content picture,
body.single-post article.single-post .entry-content p:has(> img),
body.single-post article.single-post .entry-content p:has(> a > img) {
  align-items: center !important;
  clear: both !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  height: auto !important;
  justify-content: center !important;
  margin: 22px auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

body.single-post article.single-post .entry-content figure > a,
body.single-post article.single-post .entry-content .wp-block-image > a,
body.single-post article.single-post .entry-content p > a:has(> img) {
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.single-post article.single-post .entry-content figcaption,
body.single-post article.single-post .entry-content .wp-caption-text,
body.single-post article.single-post > .d73dr-pre-feature-media-single figcaption,
body.single-post article.single-post > .d73dr-pre-feature-media-single .wp-caption-text {
  background: transparent !important;
  clear: both !important;
  color: #62666b !important;
  display: block !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  margin: 6px auto 0 !important;
  max-width: 820px !important;
  opacity: 1 !important;
  padding: 0 8px !important;
  position: static !important;
  text-align: center !important;
  visibility: visible !important;
  width: 100% !important;
}

@media (max-width: 620px) {
  body.single-post article.single-post > .d73dr-pre-feature-media-single {
    margin: 15px auto 14px !important;
  }

  body.single-post article.single-post > .d73dr-pre-feature-media-single img,
  body.single-post article.single-post .entry-content img:not(.emoji):not(.wp-smiley) {
    border-radius: 6px !important;
  }

  body.single-post article.single-post .entry-content figcaption,
  body.single-post article.single-post .entry-content .wp-caption-text,
  body.single-post article.single-post > .d73dr-pre-feature-media-single figcaption,
  body.single-post article.single-post > .d73dr-pre-feature-media-single .wp-caption-text {
    font-size: 12px !important;
    padding: 0 5px !important;
  }
}

/* ===== V1.14.6: uma única foto por matéria =====
 * A destacada automática só some quando a mesma imagem já foi colocada no editor.
 */
body.single-post.d73dr-featured-in-content article.single-post > figure.single-img,
body.single-post.d73dr-featured-in-content article.single-post > .single-img {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  visibility: hidden !important;
}

body.single-post.d73dr-featured-auto-visible article.single-post > figure.single-img {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
}
