While agreeing to the answer of one member (@sv.), I am providing my answer below.
The Khajuraho temples feature a variety of artwork, of which 10% is sexual or erotic art outside and inside the temples.
We have to remember that Sex was never decried in the Veda or subsequent literature. Sex is but Natural to all living beings. And, to gratify sexual ...
N. Ramesan in The Tirumala Temple explains the idea behind those erotic scenes depicted in temple art:
These are erotic scenes shown in the sculptures in the Pratima
mandapa. Such scenes are not unknown in temples. The shāstras lay down
that Kāma is one of the purushārthas of life and the Vishnudharmottara
which is a standard ...