This script fixes structural issues when using Splide sliders with Bricks Builder and Gutenbricks InnerBlocks.
- Gutenberg may insert multiple
<figure>elements (image blocks) inside a single Gutenbricks InnerBlock wrapper. - Bricks sometimes incorrectly applies
.splide__slideclasses to the wrapper instead of individual slides. - Splide requires the following structure: