alessandra reacted to
tuanphan in Change Gallery Columns for Mobile Only?
Use this code
@media screen and (max-width:767px) {
.gallery-masonry-wrapper.gallery-masonry-list--ready {
height: auto !important;
}
figure.gallery-masonry-item {
position: relative !important;
width: 100% !important;
transform: unset !important;
margin-left: 20px !important;
margin-right: 20px !important;
}
.gallery-masonry-item-wrapper {
height: auto !important;
}
.gallery-masonry .gallery-masonry-item[data-loaded] img {
width: 100% !important;
}
.gallery-masonry {
padding-left: 0 !important;
padding-right: 0 !important;
}
}