Where to put the periods when using a parenthetical sentence?
Solution 1:
Punctuation within parentheses
If your parentheses enclose a sentence-within-a-sentence, don't use a period within the parentheses. Do, however, use a question mark or an exclamation point if it is called for.
Mother love (hers was fierce) ruined the young boy's life.
They finally said (why couldn't they have admitted it earlier?) that she had been there.
The wedding reception (what a fiasco!) ended abruptly.
If the parentheses enclose a complete sentence that stands alone, keep the period within the parentheses.
(Her father was the only one who didn't attend.)
From Cliffsnotes
Solution 2:
The punctuation marks are correct.
When a full sentence is placed between parentheses, the period is placed inside them too. For the sentences surrounding the parenthetical one, the rule is the usual one.