In any contempt proceeding, the court may award the prevailing party costs and reasonable attorney fees under Idaho Code § 7-610, regardless of whether the court imposes a civil sanction, a criminal sanction, or no sanction. The procedure for awarding such costs and fees shall be as provided in Rule 54(e) of the Idaho Rules of Civil Procedure, except that the determination of the prevailing party shall be based upon who prevailed in the contempt proceeding rather than in the civil action as a whole.