Fixed modal box issue on small and medium viewports