pre.result { background-color: #DDD; } /* code { background-color: #EEE } */ /* From https://blog.cavelab.dev/2021/04/photo-gallery-posts and then run through sass: */ .photo-container { display: flex; flex-wrap: wrap; margin: 0 -40px; } @media (max-width: 899px) { .photo-container { margin: 0; } } .photo-container img { height: auto; /* CMH: needed to add this manually */ border-radius: 8px; } .photo-container .photo-item { padding: 2px; width: 50%; } @media (max-width: 683px) { .photo-container .photo-item { width: 100%; } }