/* Keep dimensions defined by the theme; never impose a global fixed ratio. */
img.efi-external-image { max-width: 100%; }
/* Cards and listings use the available frame and may crop. */
body:not(.single) img.efi-external-image { object-fit: cover; }
/* Article content should show the complete image. */
body.single img.efi-external-image { object-fit: contain; }
/* Single-page sidebars and related cards are still cards, not article hero images. */
body.single .sidebar img.efi-external-image,
body.single #sidebar img.efi-external-image,
body.single .widget img.efi-external-image,
body.single .related-posts img.efi-external-image,
body.single .related-articles img.efi-external-image,
body.single .related-news img.efi-external-image,
body.single .popular-posts img.efi-external-image,
body.single .post-related img.efi-external-image { object-fit: cover; }
/* Archive and category cards follow their theme-defined image frames. */
body.archive img.efi-external-image,
body.category img.efi-external-image,
body.search img.efi-external-image { object-fit: cover; object-position: center; }
/* Preserve theme width/height, and fill explicitly sized image frames. */
body.archive .post-thumbnail img.efi-external-image,
body.category .post-thumbnail img.efi-external-image,
body.archive .entry-thumbnail img.efi-external-image,
body.category .entry-thumbnail img.efi-external-image,
body.archive .thumbnail img.efi-external-image,
body.category .thumbnail img.efi-external-image { width: 100%; height: 100%; object-fit: cover; }
/* Related and read-more areas on single posts are cards, not article heroes. */
body.single [class*="related"] img.efi-external-image,
body.single [class*="read-more"] img.efi-external-image,
body.single [class*="more-post"] img.efi-external-image,
body.single [class*="mazeed"] img.efi-external-image { object-fit: cover; }

/* DailyBalochistan archive template uses hayyan_get_post_image(), not the standard thumbnail hook. */
body.archive .archive-post-thumbnail img,
body.category .archive-post-thumbnail img,
body.search .archive-post-thumbnail img {
 display:block; width:100%; height:auto; aspect-ratio:372 / 218; object-fit:cover; object-position:center;
}
/* Related article cards: preserve their own container sizing on single pages. */
body.single .block-post-grid .post-thumbnail img.efi-external-image {
 display:block; width:100%; height:auto; aspect-ratio:372 / 218; object-fit:cover;
}
