How to Display Multiple Images When Customer Selects a Color

On the product page, when selecting a variant (color variant), the image gallery still shows images of other variants.

I would like that when a variant is selected, it will only show images that are associated with that variant. I checked in the admin panel and I can only link one image to the variant. Is there any way, how to link more images with a certain variant, so that on the product page, when selecting a variant, the images of that variant are displayed, and not all the images of the product that I have added.

Could you help me with this? Maybe the code need to be modified or something else?

Hi @tamara_ra

Which theme are you seeing this on? Can you share an example URL?