.header > #logo.logo {
    width: auto;
    height: auto;
    max-width: min(360px, calc(100% - 40px));
    max-height: 240px;
    object-fit: contain;
}
