I invested in a house almost 1.5 year back and will get possession in next 2 months. For the house + interiors, the EMI is right now around 15% of the takehome salary of my spouse and mine put together and will be around 30-32% post possession . We are ok with it. Our only criteria was to buy a house where we could see ourselves for next 20-25 years (so buying a 4bhk although 3bhk is enough right now) from a reputed builder (we are first-time home buyers, so didn't have expertise on purchasing right house) and having amenities that we couldn't trade-off on (open space, garden etc).
We were hesitant at that point, since post-possession EMI alone (excluding interiors) was coming to ~35%-40% at that time. But my uncle gave a great advice which made us take that final step - "Your salary will keep increasing while EMI will remain the same". Over the last 1.5 year, that proved to be accurate as we moved to better jobs with increased pay.
I am not saying buy things that you can't afford or over-pay, but keep in mind that EMI will be constant for the duration of loan while your salary will ideally keep increasing