/* FoodTech Blocks — site-wide layout fixes. */

/*
 * Category (tax-query) cards: uniform image height with cover so cards
 * with different-sized term images (or none) keep equal block heights.
 */
.wp-block-blocksy-tax-query .wp-block-term {
	height: 100%;
}

.wp-block-blocksy-tax-query .wp-block-term > .gspb_container {
	height: 100%;
	box-sizing: border-box;
}

.wp-block-blocksy-tax-query .wp-block-term .ct-dynamic-media {
	width: 100%;
	height: 150px;
	flex: 0 0 auto;
}

.wp-block-blocksy-tax-query .wp-block-term .ct-dynamic-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * Product listing images (archives, shortcodes, product blocks): force a
 * square box with cover so mixed-ratio photos produce equal-height cards.
 */
ul.products .ct-media-container img,
.wc-block-grid__product-image img,
.wc-block-components-product-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
