IRA

I'll be breaking down income by quarter as I was laid off in December 2022 and unemployed throughout Q1 (and made no quarterly payment for Q1; I paid in Q2 and will again in Q3).  What is the annual max I can pay into an IRA for 2023 and if I pay it as a lump sum in Q3 can I offset it against Q3 income?