Me. Rev. Stat. tit. 10, § 3860 (2025)
The court, except as provided in section 3859, may decide all questions of costs and apportion them as they think proper.