The gravity by definition always exerts 1 g of accerleration on any given object. If this acceleration is compensated by a counterforce, the object is weightless. Therefore if no other forces are acting on the object, the object is unaccelerated and continues on its current trajectory in a straight line.
Consider the example of the F-16 in straight an level flight and plot the different forces you arrive at the following well-known picture:
The complete gravity of 1 g is compensated by the lift of the aircraft and drag is compensated by thrust.
During a climb the situation is a bit different:
As you can see, the gravity still pulls the plane down towards earth, but now the lift and thrust combined cancel out the gravity combined with the drag of the aircraft. However the magnitude of the gravity is still 1 g.
But the FLCS of the F-16 does not do this for you as it always commands 1 g of acceleration regardless of pitch attitude (according to this source). Therefore during a climb you would have to trim (reduce) the acceleration commanded by the FLCS such that a stable climb is achieved. For example in a $60^\circ$ climb, you would have to reduce the acceleration command to only $\cos(60^\circ)\cdot 1 g = 0.5g$ and adjust the throttle such that more thrust is generated. This is not automatically done by FLCS!
However in newer blocks, the FLCS automatically compensated for roll attitude. Therefore if you fly a curve with a bank angle of say $60^\circ$, the acceleration command is automatically increased to 2 gs to compensate for the centrifugal acceleration of said curve. However apparently this is only implemented in newer F-16 models.
With this in mind, the target acceleration formula for hands-off stick flight, looks something like this:
$n_{cmd} = 1g\cdot sin(\varphi)\cdot \delta_{trim}$
with $n_{cmd}$ being the target acceleration, $\varphi$ the roll angle, and $\delta_{trim}$ the trim input, normally being 1.