Works right out of the box. I've made a small modification so the edit icon appears right under the content.
Great job, tanxs.
Would be great if you could ad some exceptions for components.
I just tested with Phoca Gallery 2.7.0, slideshow and popups work fine.
Provide some specifics and I can try to help. Before and After page source would be very helpful.