.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 50vw; } .gallery img { width: 100%; height: auto; }