/*
 * DDL theme overrides.
 *
 * Product-page gallery image sizing:
 * - Keep images centered in the active gallery panel.
 * - Constrain image height to 470px while preserving intrinsic ratio.
 *
 * Hide-price purchasing UI suppression:
 * - Hides the Elementor add-to-cart widget on flagged products.
 * - body.ddl-hide-price is added server-side when _ddl_hide_price = yes.
 */

body.ddl-hide-price .elementor-add-to-cart {
	display: none !important;
}

.ddl-bespoke-price-small {
	font-size: 0.5em !important;
}
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image {
	display: flex;
	justify-content: center;
	align-items: center;
}

body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image img {
	max-height: 470px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
