/* The heading and artwork stay together, with artwork below the text. */
.bm-pubs-heading-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1vh !important;
    min-width: 0;
}
.bm-pubs-heading-stack > .bm-pubs-heading-text {
    position: static !important;
    order: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
}
.bm-pubs-helebarda {
    position: static !important;
    display: block !important;
    order: 1 !important;
    width: 30vw !important;
    max-width: 30vw !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}
[data-bm-pubs-filter-label] {
    white-space: normal !important;
    overflow-wrap: anywhere;
    max-width: 100%;
    text-align: left;
    height: auto !important;
}
[data-bm-pubs-filter-group] {
    flex-wrap: wrap !important;
    white-space: normal !important;
    height: auto !important;
}

/* Public publications table only: title and download on desktop. */
table[data-bm-pubs-table] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
}
[data-bm-pubs-table] [data-bm-pubs-edition-cell],
[data-bm-pubs-table] [data-bm-pubs-download-icon] {
    display: none !important;
}
[data-bm-pubs-table] .bm-pubs-download-action::after {
    content: none !important;
    display: none !important;
}
[data-bm-pubs-table] [data-bm-pubs-title-cell] {
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
[data-bm-pubs-table] [data-bm-pubs-download-cell] {
    width: auto !important;
    min-width: 0 !important;
}
@media (max-width: 640px) {
    [data-bm-pubs-table-parent] {
        box-sizing: border-box;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    table[data-bm-pubs-table] {
        table-layout: fixed !important;
    }
    [data-bm-pubs-table] colgroup,
    [data-bm-pubs-table] [data-bm-pubs-download-cell] {
        display: none !important;
    }
    [data-bm-pubs-table] [data-bm-pubs-title-cell] {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        white-space: normal !important;
    }
    [data-bm-pubs-table] .bm-pubs-mobile-download {
        display: block;
        margin-top: 0.65em;
        max-width: 100%;
        white-space: normal !important;
    }
    [data-bm-pubs-table] .bm-pubs-mobile-download .bm-pubs-download-action {
        max-width: 100%;
        white-space: normal !important;
    }
}
