Automatically equalize max-width of medium-and-up to width minus padding for compact-and-down (calculate max-width with $contain-padding).