Jump to content

Balboa theme 2-column masonry gallery

Recommended Posts

I'm working on a site that uses the Balboa theme.  By default, the masonry gallery jumps from 2 columns to 1 between screen width 768px and 577px.  At 556px it returns to two columns.  I'm can't determine what is causing this jump and how to prevent it cleanly.  The solutions I've found in the link below result in either a reordering of the images or large vertical gaps between images. 

Any ideas for disabling this forced 1-column switch?

Link to comment
  • Replies 4
  • Views 491
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
On 2/23/2023 at 12:14 AM, KB_Designs said:

Hi Taunphan,

You can use the Balboa demo site, as the same issue exists there by default.

https://balboa-demo.squarespace.com/landscapes

Thanks!

Add to Design > Custom CSS

@media only screen and (max-width: 768px) {
    .gallery-masonry .gallery-masonry-wrapper {
        columns: 2;
        column-gap: 0;
        height: auto!important;
        display: block!important;
        padding: 0px;
    }
    .gallery-masonry-item-wrapper {
        height: auto!important;
    }
    .gallery-masonry-item {
        position: relative!important;
        transform: none!important;
        width: 100%!important;
        display: block;
        padding: 1.5px!important;
        box-sizing: border-box;
    }

    .gallery-masonry .gallery-masonry-item img {
        height: 100%!important;
      	width: 100%!important;
    }
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 weeks later...

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.