.section {
    padding: 1rem 1.5rem;
}

.container {
    max-width:800px
}

/* 1. Wrapper handles the column layout and spacing */
.markdown .fig-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns children to the left */
    margin: 1rem 0;
    padding-left: 1rem; /* Optional: adds breathing room from page edge */
}

/* 2. Image styling */
.markdown .fig-wrapper img {
    width: 100%; /* Let the markdown style width override if set */
    display: block;
}

/* 3. Caption alignment fix */
.markdown .fig-caption {
    display: block !important;
    text-align: right !important;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-style: italic;
    
    /* This is the key line: Forces caption to start at the same left edge as the image */
    padding-left: 0; 
    max-width: 100%;
}