img { width: 100%; max-width: 70vw; } @media only screen and (max-width: 600px) { img { max-width: 100%; } }