.mw-tmh-media-dialog .oo-ui-dialog-content > .oo-ui-window-body {
	/**
	 * Hide the mysterious overflow that ends up in this dialog
	 * in IE and EdgeHTML.
	 *
	 * Support: IE 11
	 * Support: Edge 12
	 */
	overflow: hidden;

	.oo-ui-layout {
		// VideoJS has a solid black background, so avoid flicker.
		background-color: #000;
	}

	video {
		// We need the video element to fill the parent BEFORE videojs styling loads
		// This influences resolution source picking in the dialog JS and avoids relayouting
		background-color: #000;
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
}
