.story-figure {
    margin: 28px auto;
    padding: 0;
    max-width: 100%;
    text-align: center;
}

.story-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid black;
    border-bottom: none;
}

.story-image-caption {
    font-size: 13.5px;
    color: #495057;
    background: #f8f9fa;
    text-align: center;
    margin: 0 auto 0 auto;
    padding: 10px 14px 12px 14px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid black;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.story-figure:not([data-caption])::after,
.story-figure[data-caption=""]::after {
    display: none;
}