/*
 *
 * @info Video block styles: its place in the page only
 * @path assets/css/blocks/video.css
 *
 * The player is Video.js's default skin as it comes (2026-11-25): no colours,
 * filters or sizes of its own. Until then a rule on every element inside the
 * block (`*`) gave each of them a black background, `aspect-ratio: 16/9` and
 * a brightness filter, plus the settings of Mux Player (`mux-player`).
 *
 */

[data-type*="video"] {
	--grid-column: 3/-3;

	padding-block: var(--space-xs-s);
	max-width: 100vw;
}

/* the i18n wrapper is an inline custom element: as a block, the player
   takes the column's width */
[data-type*="video"] media-i18n {
	display: block;
}

/* „The skin has no size of its own" — the documented sizing, as in Video.js's
   installation guide: full width, 16:9 */
[data-type*="video"] video-skin {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
}
