
/* Metin2 Content Doctor: safe front-end normalization */
.m2-entry img.m2cd-content-image,
.entry-content img.m2cd-content-image,
.m2inp-content img.m2cd-content-image{
  display:block;
  max-width:100%!important;
  height:auto!important;
  margin:18px auto;
  border-radius:6px;
  object-fit:contain;
}
.m2-entry .m2cd-responsive-embed,
.entry-content .m2cd-responsive-embed,
.m2inp-content .m2cd-responsive-embed{
  display:block;
  width:100%!important;
  max-width:100%!important;
  aspect-ratio:16/9;
  height:auto!important;
  border:0;
}
.m2cd-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:18px 0;
}
.m2cd-table-wrap table{min-width:600px;max-width:100%}
.m2-entry svg,
.entry-content svg{
  max-width:100%;
  height:auto;
}


/* v1.1 — featured image visual normalization
   Original Media Library file is NOT resized or replaced. */
.single-post .m2-single-cover,
.single-post .m2-post-cover,
.single-post .post-thumbnail,
.single-post .wp-block-post-featured-image{
  max-width:860px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.single-post .m2-single-cover img,
.single-post .m2-post-cover img,
.single-post .post-thumbnail img,
.single-post .wp-block-post-featured-image img{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  max-height:460px!important;
  height:auto!important;
  object-fit:contain!important;
  margin-left:auto!important;
  margin-right:auto!important;
  border-radius:6px;
}

/* Elementor featured/post-image widgets used as the lead image */
.single-post .elementor-widget-theme-post-featured-image img{
  display:block;
  width:auto!important;
  max-width:min(100%,860px)!important;
  max-height:460px!important;
  height:auto!important;
  object-fit:contain!important;
  margin-left:auto!important;
  margin-right:auto!important;
  border-radius:6px;
}

/* Infinite-loaded article safety */
.m2inp-post .m2inp-cover{
  max-width:860px!important;
}
.m2inp-post .m2inp-cover img{
  max-height:460px!important;
  object-fit:contain!important;
}

@media(max-width:900px){
  .single-post .m2-single-cover,
  .single-post .m2-post-cover,
  .single-post .post-thumbnail,
  .single-post .wp-block-post-featured-image{
    max-width:92%!important;
  }
  .single-post .m2-single-cover img,
  .single-post .m2-post-cover img,
  .single-post .post-thumbnail img,
  .single-post .wp-block-post-featured-image img,
  .single-post .elementor-widget-theme-post-featured-image img{
    max-height:380px!important;
  }
}
@media(max-width:620px){
  .single-post .m2-single-cover img,
  .single-post .m2-post-cover img,
  .single-post .post-thumbnail img,
  .single-post .wp-block-post-featured-image img,
  .single-post .elementor-widget-theme-post-featured-image img{
    max-height:300px!important;
  }
}
