I need some help with the overlap that I have at the bottom of the image grid.
I would like there to be even space like at the top.
Here is my code:
HTML:
<div class="zone blue main-container">
<figure class="box zone"><a href=""><img src="/img/Church.JPG" alt=""></a></figure>
<figure class="box zone"><a href=""><img src="/img/Church1.jpg" alt=""></a></figure>
<figure class="box zone"><a href=""><img src="/img/Church2.jpg" alt=""></a></figure>
<figure class="box zone"><a href=""><img src="/img/Church3.jpg" alt=""></a></figure>
<figure class="box zone"><a href=""><img src="/img/Hot-air-balloon.jpg" alt=""></a></figure>
<figure class="box zone"><a href=""><img src="/img/Hot-air-balloon1.jpg" alt=""></a></figure>
<figure class="box zone"><a href=""><img src="/img/Suspension-bridge.jpg" alt=""></a></figure>
<figure class="box zone"><a href=""><img src="/img/Weston.jpg" alt=""></a></figure>
</div>
<footer class="zone yellow">
<div>footer</div>
</footer>
CSS:
/* GRID AREA */
.main-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
}
.box > a > img {
width: 100%;
height: 100%;
object-fit: cover;
}
.box {
/* background-color: #3d8bff; */
height: 100%;
margin: 10px;
}
footer {
height: 30vh;
text-align: center;
}
footer div {
font-size: 2.4em;
}
.zone {
cursor: pointer;
color:#FFF;
font-size: 1.3em;
border-radius: 4px;
border: 1px solid #bbb;
transition: all 0.3s linear;
}
MANY THANKS IN ADVANCE!