She wasn't fired. She held an elected office, and served out her term. She was jailed for contempt of court during part of that term.
She did what every non-crazy American should have done. She refused to go along with social justice warrior nonsense.
First, I think she went beyond what "every non-crazy American should have done". Non-crazy americans would have, I think, done things a bit less. If nothing else it isn't "crazy" to avoid spending time in jail on contempt of court charge.
Second, I view what she was doing was executing state contracts, more than religious marriage. The state gets to set the rules in that case, not the religion of the employees. How would you handle an employee that, say, insisted that only people of the same religion get married? IE no christian-muslim marriages? Atheists can't get married? Etc...?
The government needs to act in an agnostic fashion, and she prevented that. Like it or not, there are religions out there that are fine with gay marriage. Her refusing to fill out the government paperwork to have the government recognize their marriage is a violation, I believe.
Third, this leads into that she not only didn't do them herself, she refused to have the employees under her do them either. If she'd allowed that, it would be no worse than the grocery store where the teen employee needs to go get an older one to sell cigarettes. The *office* could still have performed its state mandated duties and it wouldn't have become a national news story.
A sane American would have done one of basically 3 things:
1. Follow the court order and issue gay marriage certificates. She doesn't have to approve of the unions, merely ensure that they meet state regulations.
2. Have somebody else more willing issue the certificates.
3. Resign.