It doesn't complicate it, because the answer is: no.
Nothing changes about the legal custody system of children due to N-way marriages.
If two people in the N-way marriage have a child, it's not the N-way marriage that acquires custody, it's the two biological parents.
Marriages do not define custody, period. That is not how it works in the US.
Keep in mind that presumptively is not definitively. If there is a paternity test that later says otherwise, eg if your wife or husband cheated on you, then that other person can typically acquire parental custody, because they are the biological parent. All things being equal (not involving abuse or danger to the child), biology is the first line of legal custody.
What about adoption? The most sane thing to do near-term, would be to keep it the same - adoptions are max two people legal scenarios. If the system is cleaned up, simplified, or otherwise adjusted for N-way marriages, then perhaps later there could be N-way adoptions as well (and scientifically, we may eventually see N-way biological custody too).