Update CSS for the overlays. Add in JS to check if the overlay is bigger than the window.