.cts-video-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.cts-video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	max-height: none;
	border: 0;
}

/* Fallback for browsers without aspect-ratio support. */
@supports not (aspect-ratio: 16 / 9) {
	.cts-video-wrap {
		height: 0;
		padding-bottom: 56.25%;
	}
}

/* Chess.com's own embed uses a 1366x786 ratio; below that, a fixed
   min-height keeps the board + movelist widget usable rather than
   shrinking to an unusable sliver on narrow screens. */
.cts-games-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 1366 / 786;
	min-height: 480px;
	overflow: hidden;
}

.cts-games-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	max-height: none;
	border: 0;
}

@supports not (aspect-ratio: 1366 / 786) {
	.cts-games-wrap {
		height: 480px;
	}
}
