/* =========================================================
 * ねんごろ：記事サムネイルの表示基準
 * 記事へ誘導するサムネイルだけを左基準でトリミングする。
 * 本文画像・テーマから読む専用画像には適用しない。
 * ======================================================= */

/* Cocoon 標準の記事カード・関連記事・ウィジェット・ブログカード */
.entry-card-thumb img,
.related-entry-card-thumb img,
.widget-entry-card-thumb img,
.new-entry-card-thumb img,
.popular-entry-card-thumb img,
.blogcard-thumbnail img,
[class*="entry-card-thumb"] img,
[class*="blogcard-thumbnail"] img {
  object-position: left center !important;
}

/* background-image 形式で描画される場合にも左基準を適用 */
.entry-card-thumb,
.related-entry-card-thumb,
.widget-entry-card-thumb,
.new-entry-card-thumb,
.popular-entry-card-thumb,
.blogcard-thumbnail,
[class*="entry-card-thumb"],
[class*="blogcard-thumbnail"] {
  background-position: left center !important;
}

/* TOPページ：最新・人気・新着の記事画像 */
body.home:not(.paged) .nengoro-featured-image img,
body.home:not(.paged) .nengoro-popular .popular-entry-card-thumb img,
body.home:not(.paged) .nengoro-popular .card-thumb img,
body.home:not(.paged) .nengoro-recent-thumb img {
  object-position: left center !important;
}

/* /articles/ 読者向け記事一覧 */
body.nengoro-articles-page .nengoro-articles-thumb img {
  object-position: left center !important;
}


/* v17: 元の縦横比を保持した画像を表示枠で左基準にクロップ */
.entry-card-thumb img,
.related-entry-card-thumb img,
.widget-entry-card-thumb img,
.new-entry-card-thumb img,
.popular-entry-card-thumb img,
.blogcard-thumbnail img,
body.home:not(.paged) .nengoro-featured-image img,
body.home:not(.paged) .nengoro-popular .card-thumb img,
body.home:not(.paged) .nengoro-recent-thumb img,
body.nengoro-articles-page .nengoro-articles-thumb img {
  object-fit: cover !important;
  object-position: 0% 50% !important;
}
