/*
 * Keep every listing card square without distorting or cutting off extreme
 * portrait/landscape source images. The orientation classes come from the
 * original WordPress attachment metadata, so no client-side script or image
 * processing is required.
 */
body.home .entry-card-thumb,
body.blog .entry-card-thumb,
body.category .entry-card-thumb {
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f3f3f3;
}

body.home img.entry-card-thumb-image,
body.blog img.entry-card-thumb-image,
body.category img.entry-card-thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
}

body.home img.entry-card-thumb-image.xxxxxx-image-fit-contain,
body.blog img.entry-card-thumb-image.xxxxxx-image-fit-contain,
body.category img.entry-card-thumb-image.xxxxxx-image-fit-contain,
body.category .main .crp_related.crp-rounded-thumbs img.xxxxxx-image-fit-contain {
	object-fit: contain !important;
	background: #f3f3f3;
}

body.home img.entry-card-thumb-image.xxxxxx-image-fit-cover,
body.blog img.entry-card-thumb-image.xxxxxx-image-fit-cover,
body.category img.entry-card-thumb-image.xxxxxx-image-fit-cover,
body.category .main .crp_related.crp-rounded-thumbs img.xxxxxx-image-fit-cover {
	object-fit: cover !important;
}
