/* Styles for the `figure` shortcode (layouts/shortcodes/figure.html). */

.post-figure {
    margin: 1.75rem auto;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px -10px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-figure:hover {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 16px 32px -12px rgba(15, 23, 42, 0.18);
}

.post-figure img {
    width: 100%;
    height: auto;
    display: block;
    background: #f8fafc;
}

.post-figure figcaption {
    margin: 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    font-style: normal;
    text-align: center;
}

@media (max-width: 640px) {
    .post-figure {
        margin: 1.25rem auto;
        border-radius: 10px;
    }

    .post-figure figcaption {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}
