/*
 * Layout that WordPress 5.9 gave this site and later versions no longer do (added 2026-10 during the
 * move to WordPress 7.1). See also the should_load_separate_core_block_assets filter in functions.php.
 *
 * Videos are stored as plain HTML (<figure class="wp-block-video">), and 7.1's video CSS no longer has
 * the bottom margin. The gallery default gap changed from 16px to 0.5em.
 */
.wp-block-video { margin: 0 0 1em; }
.wp-block-video video { width: 100%; }
.wp-block-gallery.has-nested-images { --wp--style--gallery-gap-default: 16px; }
/*
 * A gallery that WordPress could not parse as a block (e.g. a damaged block comment in a translation)
 * gets no layout classes in 7.1 and would stack its images; give it the 5.9 flex layout.
 */
.wp-block-gallery.has-nested-images:not(.is-layout-flex) { display: flex; flex-wrap: wrap; gap: 16px; }
/*
 * 5.9 put a 16px margin under every gallery image, so each gallery ended with 16px of space after its
 * last row. 7.1 uses gap, which leaves nothing after the last row.
 */
.wp-block-gallery.has-nested-images { padding-bottom: 16px; }
