body .header-title { position: absolute; width: 100%; transition: 2s ease !important; left: 50%; transform: translate(-50%,-50%); top: 20vh; } body header#header.shrink .header-title { width: 15% !important; left: 50%; top: 3.2vh; text-align: left; } body .header-title img { width: 100% !important; max-height: 400px; }