Product Image Zooming in a lot when clicking on it

Hello! Im facing two isses. The first is that when I press on a product image, the image zooms in like crazy. I edited it using this code below - which helped on desktop but has not helped on mobile (ill attach the image below).

Code used:

{% if template contains ‘product’ %}

.product-media-modal__content.gradient { max-width: 65em; margin: 0 auto; }

{% endif %}

Mobile Product Image when clicked:

1 Like

Hi,

This is Richard at PageFly - Shopify Advanced Page Builder app.

Could you please provide me with the URL link to your store?

Hoping my solution helps you solve your problem.

Best regards,

Richard | PageFly

1 Like

Hello @azhamina
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.

Here you can see the issue here: https://loverlosangeles.com/products/black-zip-up

Hi,
You can add this code in your edit code > base.css file

@media screen and (max-width:767px){
	.product-media-modal__content.gradient {
	    max-width: 90% !important;
	}	
	.product-media-modal__content.gradient img {
    	width: 100% !important;
	}	
}
1 Like

That worked!!! any idea how to make it open in a way that doesnt clash with “categories” as seen below on mobile?

Add this css in your edit code > base.css file

.product-media-modal[open]{
    z-index: 999 !important;
}
1 Like