Jump to content

Adjust simple grid from multiple columns to single column on mobile

Recommended Posts

Hi!  I have used the following code to force my simple grids to display as single images on mobile:

@media screen and (max-width:1400px) {
.gallery-grid-wrapper {
    grid-template-columns: repeat(1,1fr) !important;
      grid-row-gap: 3vw !important;

It is working on the first grid on my homepage, but strangely not on the second grid at the bottom of the homepage.

Can anyone help me understand why it wouldn't apply to all grids, and perhaps offer a solution?  
PW: nbgoldsmith

Thanks in advance!

Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

It's a different type of gallery, use this Custom CSS:

@media only screen and (max-width:1400px) {
  .sqs-gallery-block-grid.sqs-gallery-thumbnails-per-row-2 .sqs-gallery-design-grid-slide {
    width: 100%;

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.