An example of a metaphor in the passage is when Kayla gasped for air, which suggests an intense emotional state, as if she were not only out of breath but also overwhelmed by fear or anxiety about losing Bailey. While it doesn't use explicit metaphorical language, the phrase "gasped for air" can imply the weight of her worry, likening it to a physical struggle, even though it doesn't literally equate her emotional state to being underwater or suffocating. A clearer metaphor could be constructed, but in the text provided, the emotional weight of Kayla's experience serves as a metaphorical representation of her dread and urgency.
If you enhanced the passage to include an explicit metaphor, it might read: “Kayla’s heart raced like a drum, echoing the chaos of the fireworks outside.”