In the middle of / while doing something.
Long explanation:
The ~最中に grammar point is used to indicate that something happens while in the middle of doing something else or during a certain situation. It can be translated as 'in the middle of' or 'while' in English. The formation involves appending 最中に to the target action or event expressed by a verb, adjective, or noun.