So I am newish to programming. I understand there are tutorials on flexbox and great resources of understanding flex but none that are straightforward in the sense of understanding how to limit the number of photos you want in a single column with flexbox. Below I am creating a 4 square photo of a surf fin just for practice. But it seems I am getting 3 photos on a line instead of 2 and 2.
But instead it look like this:
I know there is no code directly stating to do so but here is the code and html I have WITHOUT FLEX:
<div class="galary">
<img src="./row-1-col-1.png" style="max-width: 350px; height: auto;" />
<img src="./row-1-col-2.png" style="max-width: 350px; height: auto;" />
<img src="./row-2-col-1.png" style="max-width: 350px; height: auto;" />
<img src="./row-2-col-2.png" style="max-width: 350px; height: auto;" />
</div>
</body>
.galary {
margin-top: 5vh;
width: 100vw;
text-align: center;
background: #e8e8e8;
padding: 2rem 0rem;
}

