12345678910111213.gallery { display: grid; grid-gap: 0px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));} .image img { height: auto; width: auto; max-height: 300px; max-width: 800px;}