/* Keep the image list in normal flow even after the waterfall script lays it out. */
#nv_forum.pg_forumdisplay ul#waterfall.ql-forum-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    margin-inline: 0;
}
#nv_forum.pg_forumdisplay ul#waterfall.ql-forum-grid::before,
#nv_forum.pg_forumdisplay ul#waterfall.ql-forum-grid::after {
    content: none !important;
    display: none !important;
}
#nv_forum.pg_forumdisplay ul#waterfall.ql-forum-grid > li {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
}
#nv_forum.pg_forumdisplay ul#waterfall.ql-forum-grid > li > .c > a {
    display: block;
    float: none;
    width: 100%;
}
#nv_forum.pg_forumdisplay ul#waterfall.ql-forum-grid > li > .c > a > img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
}
#nv_forum.pg_forumdisplay ul#waterfall.ql-forum-grid > li > .c > a > .nopic {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}
