you need to build the blocks in 2 rows, while so that each of them is 25% wide of the screen width, and the height is dynamically changed with the width (so that with any extension you get a square).
When reducing the screen, let's say reaching 700px, these 8 blocks should line up in 4 rows of 2 blocks. I searched for info in Google, I did not find it (I found it, but I don’t know how to adapt myself because of my inexperience). I would be very happy to help!
Thank you in advance!
.our-projects { width: 100%; height: 699px; } .wrap-projects { display: flex; flex-direction: column; width: inherit; height: inherit; background: #cec; } .projects-items { display: flex; width: 1365px; min-width: 1365px; margin: 0 auto; flex-wrap: wrap; height: 599px; background: #cee; } .proj-item { display: flex; flex-direction: row; width: 25%; height: 50%; background: #fef; } <section class="our-projects"> <div class="wrap-projects"> <div class="projects-items"> <div class="proj-item"> <a href="#"><img src="../images/img-proj1.jpg" alt=""></a> </div> <div class="proj-item"> <a href="#"><img src="../images/img-proj2.jpg" alt=""></a> </div> <div class="proj-item"> <a href="#"><img src="../images/img-proj3.jpg" alt=""></a> </div> <div class="proj-item"> <a href="#"><img src="../images/img-proj4.jpg" alt=""></a> </div> <div class="proj-item"> <a href="#"><img src="../images/img-proj5.jpg" alt=""></a> </div> <div class="proj-item"> <a href="#"><img src="../images/img-proj6.jpg" alt=""></a> </div> <div class="proj-item"> <a href="#"><img src="../images/img-proj7.jpg" alt=""></a> </div> <div class="proj-item"> <a href="#"><img src="../images/img-proj8.jpg" alt=""></a> </div> </div> <div class="more-projects" style="display:flex;height:100px;width:inherit;background-color: #ce2;"> </div> </div> </section>