318 hard start when hot

The connections at the battery, starter, and grounds at the block are all suspects for hard cranking. A set of headers cooking the starter will do the same thing. A weak starter and or a weak battery with a dead cell will also cause the same symptoms. Last but definitely not least is the initial timing. Too much initial will cause the exact thing you’re describing when hot.
And it starts ok after it cools off so it's heat related.