.embed {
	margin-right: calc(-1 * var(--margin));
	margin-left: calc(-1 * var(--margin));
	position: relative;
}

.embed > iframe {
	display: block;
	width: 100%;
	height: auto;
}

.embed > iframe[data-provider="vimeo"],
.embed > iframe[data-provider="youtube"] {
	aspect-ratio: var(--ratio, 16 / 9);
	position: relative;
	z-index: 1;
}

.embed > noscript {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.consent {
	display: none;
	align-items: center;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: var(--unit);
	overflow: auto;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	font-size: 1rem;
	background-color: white;
}

.media .consent {
	background-color: rgba(240, 240, 240, 0.8);
}

.embed > iframe[data-src] ~ .consent {
	display: flex;
	opacity: 0;
}

.embed > iframe[data-src] ~ .consent--show {
	opacity: 1;
}

.consent div {
	display: flex;
	gap: var(--half-unit);
}

.consent p {
	text-align: center;
}

.consent button {
	color: black;
	background-color: white;
	font-family: inherit;
	text-transform: uppercase;
	cursor: pointer;
}