Pion in the Medium with a Light-Front Model