Baby Gate Install Ideas Needed

Our LO is starting to roll and thinking about crawling. I’m at a loss for how to protect our stairs based on where the opposite railing terminates. There’s no straight line between the wall and the wood post that won’t leave a gap that would be dangerous for our little man.