Are legal fees to challenge a property upset sale deductible if the property is used for both home

We did get the upset sale overturned and were able to keep our property. But without the court challenge to the upset sale, we would have lost our home AND my home workplace, where I've been working for 20 years.  The workplace at home is a video/photo/audio production studio, not simply a home office with a desk