This question already has an answer here:
I read somewhere that a mechitzah is technically something required only in a shul. Is there a halachic source for this?
I read somewhere that the concept of mechitzah has been extended to include weddings etc. to prevent kalus rosh. Where is the halachic source for this?