figure {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

figcaption {
    margin-top: 0.75rem;
    padding: 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    font-style: italic;
}

/* On narrow screens, allow the figure to use the available width */
@media (max-width: 640px) {
    figure {
        margin: 1.5rem auto;
    }

    figcaption {
        font-size: 0.9rem;
    }
}
