/* The two views are alternatives. Crossfading lets the main view show through
   transparent CAD thumbnails, particularly while the second image is zooming. */
.product-small .box-image img.back-image {
    background-color: #fff;
    transition: none;
    transform: none;
}

@media (min-width: 550px) and (hover: hover) {
    .product-small.has-hover:hover .box-image a > img:first-child:has(~ img.back-image),
    .product-small.has-hover .box-image:focus-within a > img:first-child:has(~ img.back-image) {
        opacity: 0;
        transition: none;
    }
}

/* The theme already hides the alternate image below 550px. Also keep the
   primary image on larger touch displays, where a tap can latch :hover. */
@media (hover: none) {
    .product-small .box-image img.back-image {
        display: none;
    }
}
