That seemed to half way work. The gallery is contained now but something is still pushing the whole thing to the right when the gallery opens. I tried a few things but it didn't seem to help.
Can you see what is loading in the gallery the is pushing everything over?