You have given #content p {margin-bottom:24px;}
if overrides the .wp-caption p {margin: 5px;}
Solution:- .wp-caption p {margin: 5px!important;}
This “!important” will override the content p class’s margin.
find this class set .wp-caption p.wp-caption-text in your style.css file. replace with this code.
.wp-caption p.wp-caption-text {
color: #888888;
font-size: 12px;
margin: 5px!important;
}
sorry for the late reply.