The Holy Spirit - since He overshadowed her - acted as her spouse and she was in fact very faithful to Him.
Then, after Jesus was born she had her whole life to live.
She lived her whole life for God - and stayed as she always was and always expected to be - for God.