/* Fixed maximum thumbnail width: even a single photo stays small. */
:is(.cdvm-event-description,body.single-cdvm_event) :is(.gallery,.wp-block-gallery,.blocks-gallery-grid){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(0,150px))!important;gap:12px!important;justify-content:start;margin:20px 0;}
:is(.cdvm-event-description,body.single-cdvm_event) :is(.gallery-item,.wp-block-gallery figure.wp-block-image,.blocks-gallery-item){float:none!important;width:100%!important;max-width:150px!important;min-width:0;margin:0!important;flex:none!important;align-self:start;}
:is(.cdvm-event-description,body.single-cdvm_event) :is(.gallery,.wp-block-gallery) img{display:block!important;width:100%!important;max-width:150px!important;height:110px!important;object-fit:cover!important;border:0!important;border-radius:8px;}
:is(.cdvm-event-description,body.single-cdvm_event) .gallery br{display:none;}
:is(.cdvm-event-description,body.single-cdvm_event) :is(.gallery-caption,.wp-block-gallery figcaption){position:static!important;font-size:.85em;margin-top:5px;padding:0!important;background:none!important;color:inherit!important;}
@media(max-width:380px){:is(.cdvm-event-description,body.single-cdvm_event) :is(.gallery,.wp-block-gallery,.blocks-gallery-grid){grid-template-columns:repeat(auto-fill,minmax(0,120px))!important;}}
:is(.cdvm-event-description,body.single-cdvm_event) .wp-block-gallery > .blocks-gallery-grid{grid-column:1 / -1;width:100%;margin:0;}
