Who Gets Child Custody After Divorce?

Divorce often leads to disputes between parents about child custody. What does Islam say about this? Who can children live with, and who is responsible for their financial support? Based on materials from ekrembugraekinci.com