Hera comes to about 5,000 km from the surface of Mars during its flyby. It will also image Deimos, the smaller of Mars's two moons, from a minimum 1000 km away (while venturing as close as 300 km).