Nikki Croft, 51, was "infatuated" with the inmate and sent sexual photos of herself, a court heard.