Effects of gravity on buoyancy