In my epic fantasy tale, there is a small romantic sideplot. When the main group reaches a kingdom for work, the deutertagonist, while starting off as bitter, begins to develop feelings for the princess. The princess also starts having feelings for the deutertagonist over time, and they start to have a sexual relationship.
There is one problem: The kingdom has homophobic views. It isn't illegal completely, but for details:
Despite homosexuality being decriminalization and tolerated, it's heavily stigmatized. The princess and deutertagonist may not get executed, but it still results in bad effects.
The enlightened monarch is hypocritical and has double standards (would be bad when he finds out about his daughter.)
In addition story-wise:
This small sideplot occurs between 6 months to a year.
The two characters are supposed to have dislike towards each other, but they eventually warm up.
How could I write the narrative so that, while in a short timespan, it does not feel rushed and/or just unnecessarily placed in for the sake of it?