maartendeckers reacted to
tuanphan in Reduce masonry grid gallery to 1 column on mobile, Squarespace 7.1 Fluid Engine
Use this CSS code
/* Masonry to grid mobile */
@media screen and (max-width:767px) {
.gallery-masonry-wrapper.gallery-masonry-list--ready {
height: auto !important;
display: grid;
grid-template-columns: repeat(1,1fr) !important;
grid-column-gap: 10px;
grid-row-gap: 10px;
}
figure.gallery-masonry-item {
position: relative !important;
width: 100% !important;
transform: unset !important;
}
.gallery-masonry-item-wrapper {
height: 100% !important;
}
figure.gallery-masonry-item img {
width: 100% !important;
}
}