/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Callout Tiles 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.
*/

/*
	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.
*/

.ccl-widget.core-callout-tiles {
	padding-top: 0;
}

.ccl-widget.core-callout-tiles .slide img {
	transform-origin: center;
	transition: transform 300ms ease;
}

.ccl-widget.core-callout-tiles .slide .img-cont::after {
	content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 69%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.ccl-widget.core-callout-tiles .slide .img-cont .waves {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all ease-out 0.4s;
    pointer-events: none;
}

.ccl-widget.core-callout-tiles .slide .content-section {
	position: absolute;
    bottom: 0;
    top: auto;
    height: auto;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--space-5);
    width: 100%;
    pointer-events: none;
    z-index: 2;
    padding-bottom: 25px;
    padding-left: 16px;
}

.ccl-widget.core-callout-tiles .slide .slide-title,
.ccl-widget.core-callout-tiles .slide .slide-title a {
	font-family: var(--font-alt);
	font-weight: normal;
	text-transform: none;
	font-size: 40px;
	margin: 0;
}

@media (hover: hover) {
	.ccl-widget.core-callout-tiles .slide:hover .img-cont img {
		transform: none;
	}
	.ccl-widget.core-callout-tiles .slide:hover .img-cont .waves {
	    opacity: 1;
	    transform: translateY(0);
	}
}

@media (min-width: 64em) {
	.ccl-widget.core-callout-tiles.js-loaded .slide .slide-title,
	.ccl-widget.core-callout-tiles.js-loaded .slide .slide-title a {
		font-size: calc(36px + (45 - 36) * ((100vw - 1025px) / (1280 - 1025)));
		line-height: 1.15em;
	}
}

@media (min-width: 80em) {

	.ccl-widget.core-callout-tiles.js-loaded .slide .slide-title,
	.ccl-widget.core-callout-tiles.js-loaded .slide .slide-title a {
		font-size: 45px;
	}
}