header { display: grid; grid-template-columns: 2fr 4fr 2fr; grid-template-rows: 2fr 1fr; max-width: 60rem; padding: 2rem 4rem; margin: 0 auto; .logo { grid-row: 1/3; display: inline-block; height: 6.25rem; //border: .2rem solid var(--w-color); //padding: .5rem 1rem .5rem .5rem; h1 { color: var(--w-color); font-size: 1.2rem; line-height: 1.2rem; } a { display: inline-block; height: 6.25rem; img { max-width: 6.5rem; background: var(--b-color); } } } .nav, .auth { grid-row: 2; margin: 0 auto; a { display: inline-block; margin: 0 .5rem; h2 { color: var(--f-color); font-size: 1rem; &:hover { color: var(--fh-color); text-decoration: underline; } } &:hover { cursor: pointer } } } .auth { margin: 0; a { float: right; } } } @media only screen and (max-width: 768px) { header { grid-template-columns: 6rem calc(100% - 6rem); padding: 2.5rem 2rem 1rem 2rem; .logo { height: 5.75rem; a { height: 5.75rem; img { max-width: 6rem; } } } .nav { grid-row: 2; margin: 0; text-align: right; a { display: inline-block; } } } }