Hello, I am trying to set up a responsive image grid in the Gallery Addon in the Selixo template. I have added custom CSS to try and achieve this. Result - a responsive grid using all the images. My issue is that it is showing with a blank area where the first image should be positioned, but the first image is appearing in the second image slot.
Here is the custom code I have used:
.sppb-addon-gallery .sppb-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
gap: 5px;
padding: 0;
margin: 0;
}
.sppb-addon-gallery .sppb-gallery-item {
overflow: hidden;
border-radius: 8px;
position: relative;
}
.sppb-addon-gallery .sppb-gallery-item img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
transition: transform 0.3s ease;
}
I haven't been able to remedy this and would appreciate some assistance to get this showing a full grid with the first image in the first grid space. Thank you.