Standard disclaimer: you should consult an actual solicitor!
I think it would somewhat depend on the judge's assessment of the situation, but I would think so long as you're acting in good faith they'd likely rule for you to pay whatever costs you can afford, and the rest would be covered by public finances.
It wouldn't surprise me to hear of judges deciding that the defence's legal team is grossly excessive and telling them they're not claiming for everything either, at least in the UK judges have quite a lot of leeway in what they can do in their own court room.
I think it would somewhat depend on the judge's assessment of the situation, but I would think so long as you're acting in good faith they'd likely rule for you to pay whatever costs you can afford, and the rest would be covered by public finances.
It wouldn't surprise me to hear of judges deciding that the defence's legal team is grossly excessive and telling them they're not claiming for everything either, at least in the UK judges have quite a lot of leeway in what they can do in their own court room.