.img-wrapper{
    width: 100%;
    max-height: 100%;
    height: fit-content;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.img-wrapper[data-wrapperdirection="horizontal"]{
    overflow-x: auto;
    flex-direction: row !important;
    gap: 1rem;
    align-items: flex-end;
}
.img-wrapper[data-wrapperdirection="horizontal"] .img-wrapper{
    width: auto;
    flex: 1;
}
.img-wrapper[data-wrapperdirection="horizontal"] .img-title{
    white-space: nowrap;
}
.img-title{
    width: 100%;
    font-family: Belleza;
    font-size: 1.2rem;
    text-align: center;
    display: block;
    margin-block-start: 0.5rem;
    margin-block-end: 0.5rem;
}
.img-title::before{
    content: 'Figure ' attr(data-figurenum) ': ';
    font-weight: bold;
}
.img-wrapper img{
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.img-wrapper img[data-imgratio="43"]{
    aspect-ratio: 4 / 3;
}