Define callbacks for various viewport sizes.