Example 1
I talked to him at an event.
Example 2
I talked to him in an event.
Example 3
I talked to him at a wedding.
Example 4
I talked to him in a wedding.
When we talk about an event such as a meeting, wedding, or party, it seems that both "in" and "at" can be used but convey slightly different meanings.
What are the differences?
"At" simply says I am just a more passive participant while "in" says I play a more active role?