How is Custody Determined in Ontario?

Husband and wife discussing custody with a family law lawyer