.avatar { height: 200px; display: flex; gap: 2em; } .avatar h1 { font-size: 2em; } .avatar h4 { font-weight: normal; } .avatar > img { box-shadow: var(--box-shadow); border-radius: 100%; max-width: 100%; transition-duration: 0.3s; } .avatar > img:hover { transition-duration: 0.3s; transform: scale(1.1) rotate(-20deg); } /* mobile */ @media (max-aspect-ratio: 1/1) { .avatar { flex-direction: column; height: unset; text-align: center; gap: unset; } .avatar h1 { font-size: 1.5em; } }