I am confused about the following:

Mass is condensed energy. A photon has no mass, but it has a degree (of quantised) energy. Does that mean it does not have *enough* energy for it to be condensed enough to qualify as "mass"? If so, what is the (approximate) threshold?