More refined behaviour for colorboxes when transitioning in/out of mobile