/* MEN'$ CLUB BRASIL — alinhamento de imagens do editor Jodit.
   O figure é o ÚNICO responsável pelo float, largura e margens.
   A IMG interna sempre preenche sua figura, sem float nem margens próprios.
   CSS responsivo garante que os retratos usem largura total no celular.
*/
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image,
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image {
  display:block!important;
  box-sizing:border-box!important;
  max-width:100%!important;
  overflow:visible!important;
  height:auto!important;
}
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image img,
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image img {
  display:block!important;
  box-sizing:border-box!important;
  float:none!important;
  clear:none!important;
  margin:0!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  object-fit:contain!important;
}
/* Novos alinhamentos: tamanho configurável em --mc-jodit-width. */
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image[data-mc-align="left"],
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image[data-mc-align="left"] {
  float:left!important;
  clear:none!important;
  width:var(--mc-jodit-width,42%)!important;
  margin:4px 22px 18px 0!important;
}
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image[data-mc-align="right"],
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image[data-mc-align="right"] {
  float:right!important;
  clear:none!important;
  width:var(--mc-jodit-width,42%)!important;
  margin:4px 0 18px 22px!important;
}
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image[data-mc-align="center"],
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image[data-mc-align="center"] {
  float:none!important;
  clear:both!important;
  width:var(--mc-jodit-width,100%)!important;
  margin:22px auto!important;
}
/* Compatibilidade: imagens publicadas ANTES da atualização,
   já posicionadas em figure.mc-jodit-float (como neste artigo). */
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image.mc-jodit-float:not([data-mc-align]),
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image.mc-jodit-float:not([data-mc-align]) {
  width:var(--mc-jodit-width,42%)!important;
  clear:none!important;
}
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-float:not([data-mc-align])[style*="float: left"],
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-float:not([data-mc-align])[style*="float: left"] {
  float:left!important;
  margin:4px 22px 18px 0!important;
}
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-float:not([data-mc-align])[style*="float: right"],
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-float:not([data-mc-align])[style*="float: right"] {
  float:right!important;
  margin:4px 0 18px 22px!important;
}
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image figcaption,
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image figcaption {
  display:block;
  float:none!important;
  clear:both;
  font:12px/1.5 Arial,Helvetica,sans-serif!important;
}
/* A faixa de texto não deve ser recortada ou impedida de contornar a imagem. */
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-float,
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-float {
  overflow:visible!important;
}
/* Em telefones, as imagens precisam voltar para a coluna única. */
@media (max-width:720px){
 html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image,
 html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image[data-mc-align],
 html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image.mc-jodit-float,
 html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image,
 html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image[data-mc-align],
 html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image.mc-jodit-float {
   width:100%!important;
   max-width:100%!important;
   float:none!important;
   clear:both!important;
   margin:20px auto!important;
 }
}

/* Escolha explicita do editor: LARGURA TOTAL ocupa toda a coluna da materia.
   Prioridade sobre dimensionamentos legados; fotos sempre preservam proporcao.
   Os data-attributes ficam gravados no HTML, mesmo se o tema mudar. */
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image[data-mc-align="wide"],
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image.mc-jodit-wide,
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image[data-mc-align="wide"],
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image.mc-jodit-wide {
  display:block!important;
  float:none!important;
  clear:both!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:22px auto!important;
  padding-left:0!important;
  padding-right:0!important;
}
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image[data-mc-align="wide"]>img,
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image.mc-jodit-wide>img,
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image[data-mc-align="wide"]>img,
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image.mc-jodit-wide>img {
  display:block!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0!important;
}
/* Para alinhamento central parcial, respeitar a porcentagem escolhida. */
html body.page-admin .mc-jeditor .jodit-wysiwyg figure.mc-jodit-image[data-mc-align="center"]:not(.mc-jodit-wide),
html body.page-public .article .prose .rc-imported-html figure.mc-jodit-image[data-mc-align="center"]:not(.mc-jodit-wide) {
  width:var(--mc-jodit-width,100%)!important;
  max-width:100%!important;
  margin:22px auto!important;
  float:none!important;
  clear:both!important;
}