img { width: 20%; height: auto; } /* For smaller screens (e.g., mobile), make the image 100% of the container width */ @media (max-width: 768px) { img { width: 70%; } } .glav { font-size: min(6em, 7vw); margin-top: 0; margin-bottom: 0; }