A projectile is fired from a gun at an angle of 45° with respect to the horizontal. Given 9.8 meters per second squared as the acceleration due to gravity, and neglecting air resistance, what are the magnitude and direction of the acceleration of the projectile when it reaches its maximum height?