/* 편집기와 읽기 화면은 같은 본문 표시 규칙을 사용한다. */
@media screen {
    article table, .mce-content-body table {
        min-width: min(100%, 48rem);
        max-width: 100%;
    }
}

figure.image.align-left { float: left; margin-left: 0; }
figure.image.align-right { float: right; margin-right: 0; }
figure.image.align-center { display: table; margin-inline: auto; }
figure[data-caption-position] { display: table; max-width: 100%; }
figure[data-caption-position] > figcaption { display: table-caption; }
[data-caption-position="top"] > :is(caption, figcaption) { caption-side: top; }
[data-caption-position="bottom"] > :is(caption, figcaption) { caption-side: bottom; }

/* 목록의 첫 줄과 기호를 같은 줄 안에서 정렬한다. */
:is(article, .mce-content-body, .program-description-content) li:is([style*="text-align:center"], [style*="text-align: center"]),
:is(article, .mce-content-body, .program-description-content) :is(ol, ul):is([style*="text-align:center"], [style*="text-align: center"]) > li,
:is(article, .mce-content-body, .program-description-content) li:has(> p:first-child:is([style*="text-align:center"], [style*="text-align: center"])) {
    text-align: center;
    list-style-position: inside;
    & > p:first-child { display: inline; }
}
