Jump to content

Make gallery block Grid single column on mobile

Recommended Posts

Hi,

I have 2 pages with a grid gallery block that contains multiple videos with thumbnails. It is set to be 2 columns wide on desktop, but I would like them to be single column on mobile. Is it possible to do this with CSS?

Page is here: https://simon-lamarre.com/projets/commercial It's a blog post with a bunch of stuff hidden. I really wanted that video lightbox.

Thanks!

Edited by SimonLL
Link to comment
On 2/3/2022 at 11:26 AM, SimonLL said:

Hi,

I have 2 pages with a grid gallery block that contains multiple videos with thumbnails. It is set to be 2 columns wide on desktop, but I would like them to be single column on mobile. Is it possible to do this with CSS?

Page is here: https://simon-lamarre.com/projets/commercial It's a blog post with a bunch of stuff hidden. I really wanted that video lightbox.

Thanks!

Kindly try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  .sqs-layout .sqs-gallery-design-grid-slide {
    width: 100% !important;
  }

  .sqs-layout .sqs-gallery-design-grid-slide img{
    width: 100% !important;
    height: 100% !important;
  }

}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.