Are County Real Estate Taxes Considered Expenses Against the Sale of an Inherited Home?

Am I able to claim the county real estate taxes (that are based on the assessed value of the property) as an expense against the capital gains of a home that was inherited?  I haven't lived in the home since inheriting it and it was not used for any other purpose.  The taxes were assessed and paid in the same tax year as the home was sold and out of the proceeds of the sale.  Additionally, I anticipate itemizing and my state and local taxes (SALT) exceed the $10,000 limit (without the taxes paid on the inherited home).