Issue: On mobile, product images have unwanted padding; only the first image displays correctly without padding. Goal is to remove padding for all product images on mobile.
Context: Store uses Shopify Dawn 15.1.0. Initial CSS used media queries targeting .grid__item:first-of-type (and setting .product__media-item width: 100%), which only affected the first image.
Support steps: After sharing the product URL, a helper suggested adding a new CSS rule in section-main-product.css to adjust .product-media-container.constrain-height .media padding-top under max-width: 749px, aiming for full-bleed images.
Outcome: The suggested CSS did not resolve the issue. Removing the original code caused the first image to regain padding, so the problem persists across all images.
Notes: Screenshots are central to illustrating the padding (white space on left/top from the second image onward).
Status: Unresolved. Needs a CSS solution that removes padding for all product media items on mobile beyond just the first image.
Summarized with AI on December 20.
AI used: gpt-5.
I want to completely remove the padding around my product images on mobile view. I tried this code from another post but it only removes the padding from the first image. I want to also remove padding from every product image.