Firstly, don't try to hide it! You're bound to be asked about this in a job interview anyways! So, in your cover letter, briefly explain any employment gaps in a positive light. Focus on what you learned or how you stayed productive during that time. Whether it was through volunteering, freelancing, or continuing education, make sure you show the employer how these experiences have prepared you for the role.