  Thermodynamic properties of a photon gas in a small box are explored taking
into account finite size effects. General thermodynamic relations are derived
for this finite system. Photon gas thermodynamic functions are calculated for
the case of cuboid cavity on the basis of first principles. New finite size
effects are discussed.
