Leased Office Space as W-2 and IC

I am leasing an office space (lease is under my name only, not my employer’s) and using it for both W-2 (remote worker; company HQ’d in another state) and independent contractor 1099 work. Am I allowed to write off the rent as a business expense on my IC portion of the tax return? If so, how much? E.g. full amount, pro-rata split, etc. Thank you.