The mother appeals. In any custody dispute, the court must determine, under the totality of the circumstances, what is in the best interests of the child (seeEschbach v. Eschbach, 56 N.Y.2d 167, 171, 451 N.Y.S.2d 658, 436 N.E.2d 1260 ; Matter ofOfori v. St. Louis, 192 A.D.3d 809, 810, 139 N.Y.S.3d 869 ). Among the several relevant factors to be considered in making this determination is "the effect an award of custody to one parent might have on the child's relationship with the other parent" ( Matter ofOfori v. St. Louis, 192 A.D.3d at 810, 139 N.Y.S.3d 869 [internal quotation marks omitted]).
In any custody dispute, the court must determine, under the totality of the circumstances, what is in the best interests of the child (see Eschbach v Eschbach, 56 N.Y.2d 167, 171; Matter of Ofori v St. Louis, 192 A.D.3d 809, 810). Among the several relevant factors to be considered in making this determination is "the effect an award of custody to one parent might have on the child's relationship with the other parent" (Matter of Ofori v St. Louis, 192 A.D.3d at 810 [internal quotation marks omitted]). The authority of this Court in such matters is as broad as that of the hearing court, and the hearing court's determination will not stand if it is not supported by a sound and substantial basis in the record