/* Only spans explicitly formatted in the publisher are affected. */
.ylgp-font[style*="GuYinTi"] { font-family: GuYinTi, serif !important; }
.ylgp-font[style*="YLGP_Haoli"] { font-family: YLGP_Haoli, serif !important; }
.ylgp-font[style*="Microsoft JhengHei"] { font-family: "Microsoft JhengHei", sans-serif !important; }
.ylgp-font[style*="PMingLiU"] { font-family: PMingLiU, serif !important; }
.ylgp-font[style*="DFKai-SB"] { font-family: DFKai-SB, BiauKai, serif !important; }
.ylgp-font[style*="Arial"] { font-family: Arial, sans-serif !important; }
.ylgp-review-body { font-family: GuYinTi, serif; color: #000; font-size: 22px; line-height: 1.5; }
.ylgp-review-body img { max-width: 100%; height: auto; }
/* Mirror WordPress image alignment in the editor and private working preview. */
#tinymce .alignleft, .ylgp-review-body .alignleft { float: left; margin: .5em 1.5em .5em 0; }
#tinymce .alignright, .ylgp-review-body .alignright { float: right; margin: .5em 0 .5em 1.5em; }
#tinymce .aligncenter, .ylgp-review-body .aligncenter { display: block; float: none; clear: both; margin: 1em auto; }
.ylgp-review-body::after { content: ''; display: table; clear: both; }
/* Only images explicitly aligned in this panel override legacy theme rules.
 * WordPress serializes caption wrapper classes to shortcodes; the image marker
 * survives the round trip and :has scopes the generated caption container. */
img.ylgp-image-aligned.alignleft,
.wp-caption.alignleft:has(img.ylgp-image-aligned) { display: block !important; float: left !important; margin: .5em 1.5em .5em 0 !important; }
img.ylgp-image-aligned.alignright,
.wp-caption.alignright:has(img.ylgp-image-aligned) { display: block !important; float: right !important; margin: .5em 0 .5em 1.5em !important; }
img.ylgp-image-aligned.aligncenter,
.wp-caption.aligncenter:has(img.ylgp-image-aligned) { display: block !important; float: none !important; clear: both; margin: 1em auto !important; }
.wp-caption:has(img.ylgp-image-aligned) img.ylgp-image-aligned { display: block !important; float: none !important; margin: 0 auto !important; }
