Voici le code du css
.grid{ display: grid; gap :10px; grid-template-columns: repeat(4,1fr); } img { object-fit: cover; width: 100%; height: 100%; }