Should such issues arise, I would - as I always do - explain the church's teaching on marriage and note that not everyone practices what the church teaches about marriage.
The Bible, however, doesn't offer too much guidance on what to do with custody issues involving sperm donors, same-sex couples, or adoptive parents.