/**
 * The product video, under the gallery on the block product page.
 *
 * Every one of these embeds is YouTube's own iframe, pasted in with width="640" height="360" on it.
 * Left alone it overflows the product column and never scales, so the attributes are overridden and
 * the box is given the aspect ratio instead.
 */

.qv-product-video {
	margin-top: var( --wp--preset--spacing--30, 1.5rem );
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var( --wp--custom--radius--medium, 6px );
	background: #000;
}

.qv-product-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/*
 * Complianz, while the video waits for consent, gives the box a fixed height of its own
 * (.cmplz-placeholder-N { height: 426px }), and with the aspect ratio above that sets the width too,
 * wider than the column. The box takes its height from its width again, blocked or not.
 */
.qv-product-video.cmplz-blocked-content-container {
	width: 100%;
	height: auto;
}
