/* ▼ WordPressの標準的な画像出力フォーマット（ネイティブ画像）のみを狙い撃ちし、ショートコード生成UI内の画像は除外する */
.entry-content figure:not([class*="blogcard"]):not([class*="wp-block-embed"]) img:not([class*="blogcard"]),
.entry-content p img:not([class*="blogcard"]),
.entry-content .wp-block-image:not([class*="blogcard"]) img:not([class*="blogcard"]),
.entry-content img[class*="wp-image-"]:not([class*="blogcard"]),
.entry-content img[class*="size-"]:not([class*="blogcard"]) {
    max-height: 500px !important;
    width: auto !important;
    /* 横幅はアスペクト比を維持 */
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    /* 既存画像の回り込みを解除 */
}

/* 過去記事のコンテナ（Gutenbergの画像ブロックや旧エディタのfigure等）の配置を中央寄せ強制（ショートコードは除外） */
.entry-content figure:not([class*="blogcard"]):not([class*="wp-block-embed"]),
.entry-content .wp-block-image:not([class*="blogcard"]),
.entry-content img.alignleft:not([class*="blogcard"]),
.entry-content img.alignright:not([class*="blogcard"]),
.entry-content img.aligncenter:not([class*="blogcard"]),
.entry-content img.alignnone:not([class*="blogcard"]) {
    float: none !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}