Use window.innerHeight for vertical positioning