That worked!!! any idea how to make it open in a way that doesnt clash with “categories” as seen below on mobile?
Topic summary
A Shopify store owner is experiencing product image zoom issues. When clicking product images, they zoom excessively—particularly problematic on mobile devices despite desktop fixes using custom CSS code.
Initial Problem & Solution:
- Custom CSS code resolved desktop zoom but mobile remained broken
- Developer provided CSS targeting
.product-media-modal__content.gradientwith max-width and width adjustments for screens under 767px - This successfully fixed the mobile zoom issue
Secondary Issue:
- The zoomed image modal was overlapping with the site’s “categories” navigation on mobile
- Resolved by adding
z-index: 999to the product media modal element
New Concern:
- User reports unexpected extra spacing/padding appearing above product images after clicking them on some products
- This latest issue remains unresolved in the thread
All solutions involve adding CSS code to the theme’s base.css file.
