/* Product card hover image (amouriq-product-card.php). The frame (3:4, contain, Secondary colour) is the image
   widget's own Custom CSS in Elementor; this only lays the second picture over the first and shows it on hover. */

.amq-card-image a,
.amq-card-image .elementor-widget-container {
	position: relative;
	display: block;
}
.amq-card-image .amq-card-hover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-color: var(--e-global-color-secondary, #efefef);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}
/* Only where a pointer can really hover: on touch screens the first tap would leave the picture stuck. */
@media (hover: hover) and (pointer: fine) {
	.amq-card:hover .amq-card-image .amq-card-hover {
		opacity: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	.amq-card-image .amq-card-hover { transition: none; }
}
