/* P55 — Mahya Fresh post reader: stable hero frame and independent comments header.
   Scoped to the existing post-detail modal; no post/file data is changed. */
body.mh11-layout #mh11-post-detail .mh50-detail-article .mh52-article-media {
  display:flex!important;
  align-items:center!important;justify-content:center!important;
  position:relative!important;
  width:100%!important;max-width:575px!important;
  height:306px!important;min-height:306px!important;max-height:306px!important;
  aspect-ratio:auto!important;
  box-sizing:border-box!important;
  margin:8px auto 17px!important;
  padding:0!important;
  border:0!important;border-radius:11px!important;
  overflow:hidden!important;
  background:var(--mahya-surface-soft,#f5f4f8)!important;
  box-shadow:none!important;
}
body.mh11-layout #mh11-post-detail .mh50-detail-article .mh52-article-media img {
  display:block!important;position:relative!important;
  width:100%!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;object-position:center!important;
  border:0!important;border-radius:0!important;
  margin:0!important;padding:0!important;
  background:transparent!important;
}
body.mh11-layout #mh11-post-detail .mh50-detail-article .mh52-article-media img.mh55-fit-cover {
  object-fit:cover!important;
}
/* Turn the reply list into a distinct, low-height section without a new nested panel. */
body.mh11-layout #mh11-post-detail .mh50-comments {
  margin-top:20px!important;
  padding-top:15px!important;
  border-top:1px solid var(--mahya-border,#e8e3ee)!important;
  scroll-margin-top:12px;
}
body.mh11-layout #mh11-post-detail .mh50-comments-heading {
  display:flex!important;
  align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-height:42px!important;
  padding:9px 12px!important;margin:0 0 5px!important;
  box-sizing:border-box!important;
  background:var(--mahya-surface-soft,#f6f4fa)!important;
  border:1px solid var(--mahya-border,#ece8f2)!important;
  border-radius:10px!important;
}
body.mh11-layout #mh11-post-detail .mh50-comments-heading h3 {
  margin:0!important;padding:0!important;
  display:flex!important;align-items:center!important;gap:7px!important;
  font-size:12.5px!important;line-height:1.65!important;
  font-weight:750!important;color:var(--mahya-text,#40364d)!important;
}
body.mh11-layout #mh11-post-detail .mh50-comments-heading h3 span {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:21px!important;min-height:20px!important;
  padding:0 5px!important;border-radius:7px!important;
  background:#ebe6f1!important;color:#655570!important;
  font-size:10px!important;line-height:1.45!important;
}
body.mh11-layout #mh11-post-detail .mh50-comments [data-mh11-comments] {
  padding:0 2px 5px!important;
  margin:0!important;
}
@media(max-width:620px){
  body.mh11-layout #mh11-post-detail .mh50-detail-article .mh52-article-media{
    width:100%!important;max-width:100%!important;
    height:194px!important;min-height:194px!important;max-height:194px!important;
    margin:6px auto 14px!important;
    border-radius:9px!important;
  }
  body.mh11-layout #mh11-post-detail .mh50-detail-article .mh52-article-media img{
    width:100%!important;height:100%!important;max-height:100%!important;
  }
  body.mh11-layout #mh11-post-detail .mh50-comments{
    margin-top:15px!important;padding-top:12px!important;
  }
  body.mh11-layout #mh11-post-detail .mh50-comments-heading{
    min-height:39px!important;padding:8px 10px!important;
  }
}
