site: www.havenandhomedesign.com
pass: havenandhome
In the Gallery section of my site, I am using a portfolio layout (and grid:strips specifically for the images). Initially, on mobile, it was not displaying images in a single column, but rather a mix of one and two columns. I have forced the images to display in one column using this code:
@media (max-width: 640px) {
.gallery-strips .gallery-strips-item img {
height: 100%!important;
width: 100%!important;
}
.gallery-strips .gallery-strips-wrapper {
columns: 1;
column-gap: 0;
padding: 0 0px;
height: auto!important;
display: block!important;
}
.gallery-strips-item-wrapper {
height: auto!important;
}
.gallery-strips-item {
position: relative!important;
padding: 10px!important;
transform: none!important;
width: 100%!important;
display: block;
}
}
This fixed the problem, but it created a separate one. Now the images are not centered on the screen (the padding to the right of the image is smaller than the padding to the left, skewing the images to the right).
How do I fix this and recenter the images? Thanks in advance for the help.