.ryv-wrap {
	margin: 2.5em 0;
}

.ryv-heading {
	font-size: 1.3em;
	margin: 0 0 1em;
	font-weight: 700;
}

.ryv-grid {
	display: grid;
	grid-template-columns: repeat(var(--ryv-columns, 3), 1fr);
	gap: 20px;
}

.ryv-card {
	display: flex;
	flex-direction: column;
}

.ryv-thumb-btn {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.ryv-thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ryv-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 52px;
	height: 52px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
	padding-left: 4px;
}

.ryv-card-title {
	font-size: 0.92em;
	margin: 10px 0 0;
	line-height: 1.4;
	font-weight: 500;
}

.ryv-embed-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
}

.ryv-embed-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Sidebar layout, using container queries so it stacks correctly based on
   the actual width of the column it's rendered inside (not the viewport). */
.ryv-cq {
	container-type: inline-size;
}

.ryv-content-flex {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.ryv-content-main {
	flex: 1 1 0%;
	min-width: 0;
}

.ryv-content-side {
	flex: 0 0 auto;
	width: min( 300px, 38% );
}

.ryv-content-side .ryv-wrap {
	margin: 0;
}

.ryv-content-side .ryv-grid {
	grid-template-columns: 1fr;
}

.ryv-side-left .ryv-content-side {
	order: -1;
}

.ryv-side-right .ryv-content-side {
	order: 1;
}

@container (max-width: 650px) {
	.ryv-content-flex {
		flex-direction: column;
		gap: 20px;
	}
	.ryv-content-main {
		order: 1 !important;
		width: 100%;
	}
	.ryv-content-side {
		order: 2 !important;
		width: 100% !important;
	}
}

@media (max-width: 782px) {
	.ryv-content-flex {
		flex-direction: column;
		gap: 20px;
	}
	.ryv-content-main {
		order: 1 !important;
		width: 100%;
	}
	.ryv-content-side {
		order: 2 !important;
		width: 100% !important;
	}
}

@media (max-width: 600px) {
	.ryv-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
