/**
 * OptConnect video sections (PR 3.10).
 *
 * One stylesheet for the family — `optconnect/video-embed` and
 * `optconnect/video-split`. It is the shortest family file in the theme, and that is
 * the finding rather than an omission: **core already owns the hard part.** Block
 * themes get `responsive-embeds` support automatically
 * (`_add_default_theme_supports()`, wp-includes/theme.php), so `<body>` carries
 * `wp-embed-responsive` and core's own
 * `.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before`
 * reserves 56.25% of the width while
 * `.wp-embed-responsive .wp-has-aspect-ratio iframe` pins the iframe over it. Nothing
 * here reimplements that, and nothing here sets a width, a height or an aspect ratio.
 *
 * Four things that could have lived here do not:
 *
 *   - **The 16:9 frame and the iframe fill.** Core's, as above. A second copy would
 *     drift the moment an editor picks 4:3 from the block's own aspect-ratio control.
 *   - **The 45 / 55 split.** `core/columns` with `width` declared per column in the
 *     markup, so the Site Editor's column controls stay truthful.
 *   - **The stacking breakpoint.** `core/columns` collapses on its own at core's 781px,
 *     and both columns go to 100% there, which makes the vertical centring a no-op. No
 *     media query in this file — the same call every family here has made since PR 3.1.
 *   - **The light band.** `backgroundColor: accent-5` on `optconnect/video-split`, so
 *     the editor shows the fill the front end renders.
 *
 * Same no-margins convention as the other family stylesheets: nothing inside a
 * block-gapped group gets a `margin` declaration, because core's flow layout emits
 * `.wp-container-… > * + * { margin-block-start: … }` at one-class specificity and this
 * file loads after it. Spacing between blocks is `blockGap` in the pattern markup.
 *
 * The unstyled hooks the patterns carry — `.oc-video--single`, `.oc-video--split`,
 * `.oc-video__cols`, `.oc-video__copy`, `.oc-video__media`, `.oc-video__title`,
 * `.oc-video__text` — are deliberate, the same naming the other families use, and are
 * where a per-shape override goes when one is finally needed.
 */

/* --------------------------------------------------------------------------
 * The frame
 * ---------------------------------------------------------------------- */

/* A 12px radius, the same one PR 3.1 unified the cards on and PR 3.4 the split photos,
   so a video sitting between two rebuilt sections is cut the same way they are.
   `overflow: hidden` is load-bearing and not decoration: core positions the iframe
   absolutely over the reserved box, so without it the iframe's own square corners paint
   straight over the radius and nothing appears to have been rounded at all.

   The background is what the reserved box shows until the iframe paints — and it is what
   a visitor who declines marketing cookies is left with permanently, because Cookiebot's
   auto-blocker is what holds the YouTube embed shut (measured on both sites; see
   `optconnect/video-embed`). A tinted box reads as a video that has not loaded; a white
   one reads as a hole in the page, and on `optconnect/video-split`'s `accent-5` band it
   reads as a mistake. `accent-5` on white and white on `accent-5` are each invisible one
   way round, so this is the brand ink at 6% instead — a wash that shows on either
   background without inventing a colour. It is covered completely once the iframe
   arrives, since core insets that iframe to 0 on all four sides. */
.oc-video .wp-block-embed__wrapper {
	background-color: rgba(29, 44, 56, 0.06);
	border-radius: 12px;
	overflow: hidden;
}
