/* Cutout image: an image shell with a jagged "shard" edge, bleeding to the right edge of its container.
 * Used by the Callout Box and the News page header. Wrap the output of tv_base_site_render_cutout() in a
 * container with a height. The curve is coloured to match the section behind it. */

.tv-base-cutout {
	position: relative;
	overflow: hidden;
	align-self: stretch;
	margin-right: calc(50% - 50vw);
}

.tv-base-cutout__shell {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--color-on-primary) 16%, transparent);
	overflow: hidden;
}

.tv-base-cutout__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tv-base-cutout__curve {
	position: absolute;
	top: 0;
	left: 0;
	width: 28%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 2;
}

.tv-base-cutout__svg {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: auto;
	display: block;
}

@media (max-width: 900px) {
	.tv-base-cutout {
		margin-right: 0;
	}

	.tv-base-cutout__curve {
		width: 18%;
	}
}

@media (max-width: 768px) {
	.tv-base-cutout__shell {
		border-radius: var(--radius-md);
	}

	.tv-base-cutout__curve {
		display: none;
	}
}
