/*
	README

	Do NOT modify this file directly; a number of widgets depend on this file being as is.
	Use the CSS file that is associated with your widget
	(ie. template: widget_template_custom_my_widget.html, CSS: widget_template_custom_my_widget.css)
	to make any theme-ing or overwrites you need.

	If you need to make significant changes such that overwriting would be complicated
	consider not using a different component from the Core Collection Library or
	not using the Core Component Library altogether.

	If you still feel the need to edit this file, copy/paste this CSS into a different file
	and use that instead.
*/

.core-hero-image {
	--font-title: var(--font-display);
	--font-desc: var(--font-body);
	--text-color: var(--gray-100);

	position: relative;
}

/* Overlay Effect */
.core-hero-image .img-cont:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 40%);
	pointer-events: none;
}

.core-hero-image .banner-content {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: var(--space-8) var(--space-12);
	width: 100%;
	max-width: var(--width-comfortable);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-3);
}

.core-hero-image .banner-title {
	color: var(--text-color);
	font-family: var(--font-title);
	font-size: var(--text-2xl);
	font-weight: 700;
	margin-bottom: var(--space-2);
	line-height: var(--leading-tight);
	max-width: 80%;
}

@media (min-width: 40em) {
	.core-hero-image .banner-title {
		max-width: 70%;
	}
}

.core-hero-image .banner-description {
	font-family: var(--font-desc);
	font-size: var(--text-base);
	color: var(--text-color);
}

.core-hero-image .title-desc-container { max-width: var(--width-comfortable); }

.core-hero-image .read-more {
	font-weight: 700;
	color: var(--text-color);
}

@media (hover: hover) {
	.core-hero-image .banner-title > a:hover {
		color: inherit;
		text-decoration: underline;
	}

	.core-hero-image .read-more:hover {
		text-decoration: underline;
	}	
}

.core-hero-image .credits {
	font-size: var(--text-xs);
	font-family: var(--font-body);
	font-style: italic;
	color: var(--gray-100);
	flex-grow: 1;
	text-align: right;
}