Keep Product Images from being the whole screen wide on the Prestige theme

Topic summary

A Shopify store owner using the Prestige theme wants to reduce product image width on mobile devices from 100% to approximately 80% of screen width, with padding around the images.

Three CSS solutions were proposed:

  1. BiDeal-Discount’s approach: Targets screens under 1007px, sets .Product__Gallery to 80% max-width with auto margins

  2. Moeed’s method: Adds custom CSS via theme.liquid file above the </body> tag (specific code not fully visible in post)

  3. Dan-From-Ryviu’s solution: Applies 24px horizontal padding to .Product__Gallery on screens under 749px via Theme Customizer’s Custom CSS section

All solutions use media queries to target mobile viewports specifically. The discussion remains open with no confirmed resolution from the original poster regarding which approach worked best.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

On mobile devices, the product images take up 100% of the width of the screen. I want it to have some padding around the images so the image would be like 80% the width of the screen. My store is https://mk0uuf-h3.myshopify.com/products/balloon-lamp

2 Likes

Hi @Jarch2

let try to add this Custom CSS:

@media screen and (max-width: 1007px) {
  .Product__Wrapper .Product__Gallery {
    max-width: 80%;
    margin-inline: auto;
  }
}

Hey @Jarch2

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT

If I managed to solve your problem then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @Jarch2

You can add this code to Custom CSS in Online Store > Themes > Customize > Theme settings to do that.

@media (max-width: 749px) {
.Product__Gallery { padding: 0 24px !important; }
}

1 Like