Illinois State - how to deduct margin interest expsnes

In 2021, I had a large capital gain and a large margin interest expense carry-forward. I was able to deduct most of the margin interest expense carry-forward against my capital gains on my Federal filing. How can I do that for Illinois state return?