Md. Code, Fam. Law § 1-202

Current with effective changes from the 2024 legislative session, chs. 2-121
Section 1-202 - Appointment of counsel for minor
(a) In an action in which custody, visitation rights, or the amount of support of a minor child is contested, the court may:
(1)
(i) appoint a lawyer who shall serve as a child advocate attorney to represent the minor child and who may not represent any party to the action; or
(ii) appoint a lawyer who shall serve as a best interest attorney to represent the minor child and who may not represent any party to the action; and
(2) impose counsel fees against one or more parties to the action.
(b) A lawyer appointed under this section shall exercise ordinary care and diligence in the representation of a minor child.

Md. Code, FL § 1-202