Can we trap light?

I know it is not practical to obtain a perfect reflective mirror. But in theory, can light be trapped indefinitely inside a box of perfect mirrors?

As you mentioned, practically no real world mirrors are 100% reflective. In theory, it is still complicated. Even if you have a 100% reflective mirror and a parallel light, gravity will affect the trapped photons and there will be a phase change.