In California, either parent can have sole custody of their children, or both parents can share custody. Although judges have the final say on custody and visitation, they usually agree to whatever arrangement the parents come up with.
If the parents cannot agree, a judge will make a decision in court. After the parents have met with a Family Court Services mediator, the judge will usually decide on custody and visitation.