/* CKEditor 5 圖片內容樣式（前台顯示：文繞圖 / 對齊 / 圖說 / 縮放） */
figure.image { display: table; margin: 1em auto; max-width: 100%; }
figure.image img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
figure.image > figcaption { display: table-caption; caption-side: bottom; padding: 6px 4px; font-size: .9em; color: #666; text-align: center; }
figure.image.image-style-align-left { float: left; margin: .5em 1em .5em 0; }
figure.image.image-style-align-right { float: right; margin: .5em 0 .5em 1em; }
figure.image.image-style-align-center { margin-left: auto; margin-right: auto; }
figure.image.image-style-block-align-left { margin-left: 0; margin-right: auto; }
figure.image.image-style-block-align-right { margin-right: 0; margin-left: auto; }
figure.image.image-style-side { float: right; max-width: 50%; margin: .5em 0 .5em 1em; }
figure.image.image_resized { max-width: 100%; }
figure.image.image_resized img { width: 100%; height: auto; }
/* HTML Purifier 會拆掉圖片的 figure 外層，縮放圖以裸 img.image_resized 落地
   （行內 style 只有 width:%，height="NNN" 屬性仍固定高度→變形）；補 height:auto 恢復等比 */
img.image_resized { max-width: 100%; height: auto; }
span.image-inline { display: inline-block; max-width: 100%; }
span.image-inline img { max-width: 100%; height: auto; vertical-align: middle; }
/* clearfix：.news-detail 是文章內容容器，防止 float 圖溢出父元素 */
.news-detail::after { content: ""; display: block; clear: both; }
