Child Custody

How do courts decide child custody for same-sex couples?