/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Slider family. This enables the ability to
	a family of widgets in a single update without touching the structure of the widget and without needing
	to duplicate efforts across several widget-specific CSS files.
*/

.core-hero-image {
	--yellow-rect-offset: 15px;
	margin-bottom: 36px;
	z-index: 16;
	position: relative;
}

.core-hero-image.short {
	margin-bottom: 0;
}

.core-hero-image.show-logo .banner-content:after {
	--size: 136px;
	content: '';
	position: absolute;
	right: 0;
	bottom: -20px;
	width: var(--size);
	height: calc(var(--size) + 9px);
	background-image: url(/includes/public/assets/shared/blog-hero-starburst.svg);
	background-size: 145px;
	z-index: 1;
	pointer-events: none;
}

.core-hero-image .banner-content {
	width: 100%;
	height: 100%;
	flex-direction: column-reverse;
	justify-content: space-between;
	max-width: unset;
	padding: 14px 16px;
	padding-left: 0;
	padding-bottom: 0;
	pointer-events: none;
	z-index: 2;
}


.core-hero-image .title-desc-container {
	position: relative;
	align-self: flex-start;
	max-width: unset;
	width: min-content;
	margin-bottom: calc(var(--yellow-rect-offset) * -1);
	padding-left: 25px;
	padding-right: 17px;
	padding-bottom: 6px;
	pointer-events: all;
}

.core-hero-image .title-desc-container :is(h1, h2) {
	color: white;
	position: relative;
	text-transform: uppercase;
	font-weight: 900;
	margin-bottom: 0;
	text-decoration: none;
}

.core-hero-image .title-desc-container a:hover {
	text-decoration: none;
}

.core-hero-image .img-cont:after {
	background: rgba(0,0,0,.2);
}

.core-hero-image .title-desc-container .banner-title-1 {
	font-size: 40px;
	font-size: max(25px, min(calc(30px + 10 * (100vw - 280px) / 95), 40px));
	line-height: .88;
	margin-bottom: 4px;
	width: max-content;
	width: min-content;
}

.core-hero-image .title-desc-container .banner-title-2 {
	font-size: 60px;
	font-size: max(40px, min(calc(45px + 15 * (100vw - 280px) / 95), 42px));
	line-height: .88;
}

.core-hero-image .title-desc-container:before {
	content: '';
	position: absolute;
	height: 30px;
	width: 100%;
	left: 0;
	bottom: 0;
	background-color: var(--yellow);
	z-index: 0;
}

.core-hero-image.red-background .title-desc-container:before {
	background-color: var(--red);
}


.core-hero-image .credits {
	font-size: 10px;
	font-family: var(--font-body);
	font-style: normal;
	color: var(--white);
	background: rgba(0, 0, 0, .7);
	flex-grow: 0;
	padding: 6px 10px;
}

.core-hero-image .shared-play-button {
	transform: unset;
	left: 15px;
	top: 15px;
}

@media (min-width: 40em) {

	.core-hero-image .banner-content {
		flex-direction: row;
		padding-right: 10px;
		width:  auto;
		width: 100%;
		justify-content: space-between;
	}

	.core-hero-image.show-logo .banner-content:after {
		--size: 199px;
		right: 20px;
		bottom: -50px;
		height: var(--size);
		background-size: 100%;
	}

	.core-hero-image .title-desc-container {
		align-self: end;
		width: unset;
		max-width: 80%;
	}

	.core-hero-image .credits {
		font-size: 12px;
		margin-bottom: 11px;
		padding: 5px 16px 4px;
		padding-left: 14px;
	}

	.core-hero-image .title-desc-container .banner-title-1 {
		width: unset;
	}

	.core-hero-image .title-desc-container .banner-title-2 {
		font-size: 136px;
		font-size: min(calc(60px + 76 * (100vw - 640px) / 800), 136px);
	}

	.core-hero-image .shared-play-button {
		transform: translate(-50%, -50%);
		left: 50%;
		top: 50%;
	}
}

@media (min-width: 64em) {
	.core-hero-image {
		--yellow-rect-offset: 39px;
		margin-bottom: 71px;
	}

	.core-hero-image .title-desc-container {
		padding-left: 57px;
		padding-right: 50px;
		padding-bottom: 22px;
	}

	.core-hero-image.show-logo .banner-content:after {
		--size: 299px;
	}
	
	.core-hero-image .title-desc-container .banner-title-1 {
		font-size: 94px;
		margin-bottom: 10px;
		font-size: min(calc(40px + 54 * (100vw - 1024px) / 426), 94px);
	}

	.core-hero-image .title-desc-container:before {
		height: 72px;
	}
}