#bio .emph1 { font-weight: 600; color: #467d20; } #bio .emph2 { font-weight: 600; color: var(--gold); } #bio .emph3 { font-weight: 600; color: #404040; } #photos p.name { font-weight: 600; } #photos p.instrument { color: #483200; } @media (min-width: 50em) { main { max-width: 55em; justify-self: center; } main #photos { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; width: 100%; } #photos > a.member { display: block; height: 100%; text-decoration: none; } #photos img.portrait { /* Center portraits horizontally within a.member. Alternative: set * a.member to display: flex, flex-direction: column. */ display: block; margin-left: auto; margin-right: auto; max-height: 60vh; transition: filter 1s, transform 1s; } #photos a:hover img.portrait, #photos a:focus img.portrait { transform: scale(1.05); } #photos p { margin: 0; } } @media (max-width: 50em) { #photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(20%, 50%)); justify-content: space-evenly; width: 100%; } #photos > a.member { display: block; text-decoration: none; } #photos img.portrait { display: block; margin-left: auto; margin-right: auto; max-height: 60vh; } #photos p { margin: 0; text-align: center; } }