How did medieval castles fare after the advent of gunpowder, were existing castles modified somehow or were they razed to the ground replaced with more efficient designs?
>>3051088
Check out the sate of the castle in your picture and you'll get your answer
You saw a gradual transition towards lower and thicker walls, eventually culminating in the star forts.
Gunpowder didn't, as commonly believed, instantly make castles obsolete. Early cannons were unwieldy and relatively weak. It did, however, change the mechanics of siegecraft.
Fun fact of the day, a petard is a cannon that is designed to be rolled up until it's touching the gate of a fortification, and then fired at point blank range to blow the door off.
"Hoist upon your own petard" literally refers to the act of being killed in an explosion from a malfunctioning siege machine.