Buy me a coffee

Gallery Section: Grid #9

gallery-section-grid9-min

How to

#1. First you need to set Gallery Section: Grid to 4 columns

#2. Next, use this code to Custom CSS box

figure.gallery-grid-item:nth-child(7n - 6), figure.gallery-grid-item:nth-child(7n - 4)   {
    grid-column: ~"1 / 3" !important;       
}  
figure.gallery-grid-item:nth-child(7n - 5)  {
    grid-column: ~"3 / 5" !important;       
} 
figure.gallery-grid-item:nth-child(7n-1) {
    grid-column: ~"1 / 4" !important;       
} 
div.gallery-grid-wrapper {
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-template-rows: repeat(12,minmax(0,0.5fr)) !important;
}
.gallery-grid-item-wrapper {
    padding-bottom: 0 !important; 
    height: 100%;
}
.gallery-grid-item img {
    position: static !important;
}

Extra

Apply code for specific page

With Business Plan/Higher, use this code to Page Header

<style>
figure.gallery-grid-item:nth-child(7n - 6), figure.gallery-grid-item:nth-child(7n - 4)   {
    grid-column: 1 / 3 !important;
}  
figure.gallery-grid-item:nth-child(7n - 5)  {
    grid-column: 3 / 5 !important;       
} 
figure.gallery-grid-item:nth-child(7n-1) {
    grid-column: 1 / 4 !important;       
} 
div.gallery-grid-wrapper {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    grid-template-rows: repeat(12,minmax(0,0.5fr)) !important;
}
.gallery-grid-item-wrapper {
    padding-bottom: 0 !important; 
    height: 100%;
}
.gallery-grid-item img {
    position: static !important;
}
</style>

Need a help?

Just send me an email with your site url. I will answer within 24 hours

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to: https://beaverhero.com/squarespace-how-to/
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder