When the player enables and switches over to the second, the main scene camera is disabled. The issue is that raycasts appear to be originating from the disabled main scene camera, rather than the newly enabled second camera despite the origin being updated in code which is preventing interaction with the arrow & close buttons in screenshot 2 while allowing interaction with the scene as if you were viewing it from the main camera.