Footer problem on gallery page but perfect on index and blog page

I am having issues with my footer but only on my Gallery page where it has taken over the whole page as a background but on my index and blog page it is perfect. Im not sure if its my html code or css. Any ideas would be greatly appreciated.

Can you share your demo via codepen?