Black hole lightning due to particle acceleration at subhorizon scales