/*
	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-imagebox {
	--font-title: var(--font-display);
	--font-desc: var(--font-body);
	--color-display: var(--gray-100);
	--color-display-hover: var(--gray-100);
	--color-body: var(--gray-100);

	margin-bottom: var(--space-12);
	padding-top: var(--space-8);
	color: var(--color-body);
}

.core-imagebox .inner {
	position: relative;
}

.core-imagebox .img-cont {
	position: relative;
	overflow: hidden;
}

.core-imagebox .slides {
	display: grid;
	gap: var(--space-3);
}

.core-imagebox:not([data-width="full"]) .slides {
	max-width: var(--width-base);
	padding-left: var(--space-5);
	padding-right: var(--space-5);
	margin-left: auto;
	margin-right: auto;
}

.core-imagebox .img-cont::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 75%;
	background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
	pointer-events: none;
}

.core-imagebox .content-section {
	position: absolute;
	left: var(--space-4);
	bottom: var(--space-4);
	margin-right: var(--space-4);
}

.core-imagebox .content-section .slide-title {
	font-family: var(--font-title);
	font-size: var(--text-xl);
	font-weight: 700;
	line-height: var(--leading-snug);
	color: var(--color-display);
	margin-bottom: var(--space-1);
}

.core-imagebox .content-section .slide-title > a {
	color: inherit;
}

@media (hover: hover) {
	.core-imagebox .content-section .slide-title > a:hover {
		text-decoration: underline;
	}	
}

.core-imagebox .content-section p {
	margin-bottom: var(--space-4);
	font-family: var(--font-desc);
	font-size: var(--text-base);
	line-height: var(--leading-tight);
	color: var(--color-body);
}

.core-imagebox .slide .slide-footer {
	--color: var(--color-display);
	--color-hover: var(--color-display-hover);
	--font-family: var(--font-desc);
	--btn-hover-color: var(--primary-color-200);
	--btn-hover-text-color: var(--gray-700)
}
.core-imagebox .slide .slide-footer .fa-file-download {
	display: none;
}

@media screen and (min-width: 64em) {
	.core-imagebox .slide .slide-footer .read-more {
		margin: 0 var(--space-4) var(--space-2);
	}

	.core-imagebox .slide .slide-footer .qv-btn {
		color: var(--color);
	}
}

@media (hover: hover) {
	.core-imagebox .slide .qv-btn:hover {
		color: var(--text-color);
	}
	
	.core-imagebox .slide .qv-btn:hover .qv-text {
		text-decoration: underline;
	} 
}

@media screen and (min-width: 40em) {
	.core-imagebox .slides {
		display: grid;
		gap: var(--space-3);
	}

	.core-imagebox:not([data-slides-across="1"]) .slides {
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (min-width: 64em) {
	.core-imagebox[data-slides-across="3"] .slides {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.core-imagebox[data-slides-across="4"] .slides {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}

	.core-imagebox .content-section {
		left: var(--space-8);
		bottom: var(--space-8);
		margin-right: var(--space-8);
	}
}
