Respond to media and scrolling breakpoints.