I bought a condo in the suburbs of Toronto in 2010. At the time, my mortgage as a percentage of my take-home pay was almost exactly 20% (around 36% factoring in property taxes, insurance, and condo fees). I knew I'd have to be careful, but I was confident I could make it work.
I looked at how much it would cost someone today. I took the salary for that job today (which I estimate is about 20% higher - and that's generous), the price of the condo today (which has more than doubled), the interest rate today (which is less than half), and I assumed the same down payment. So, updating the calculation in 2022, the mortgage would be just over 40% of take-home pay (around 53% factoring in property taxes, insurance, and condo fees - assuming no changes in any of those amounts, which is unrealistic).
I feel terrible for young people in Toronto, Vancouver (and, from what I've read, many big cities in the US). Unless they're born into wealth and/or have lucrative careers (and are comfortable waiting many years to build up a large enough down payment), buying a condo (let alone a house) will stretch them thin. Many of them would be better off moving to smaller cities (though, of course, there are usually fewer quality job opportunities, not to mention this separates them from their families, friends and communities). I have a cousin who's graduating from university in another 18 months, and I think he's come to the realization that he doesn't have a future in Toronto. Older generations (mine included) have done a poor job of ensuring young people have a reasonable path to home ownership.