/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Image Box 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.
*/

/* Imagebox Styling */
.core-imagebox .overlap-image {
    --color-display: var(--sw-key-color);
    --color-display-hover: var(--sw-key-color-hover);
}

.core-imagebox {
	margin-bottom: var(--widget-margin-bottom);
	padding-top: var(--widget-padding-top);
}

.core-imagebox .slide .content-section {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    padding: var(--space-5) 0;
}

.core-imagebox .slide .content-section h3 a,
.core-imagebox .slide .content-section h2 {
    font-size: var(--text-2xl);
    line-height: var(--leading-tight);
    font-weight: 400;
    color: var(--color-display);
}

.ccl-widget.core-imagebox.imagebox-1-across .slide .content-section h2, 
.ccl-widget.core-imagebox.imagebox-1-across .slide a.read-more:not(p *), 
.ccl-widget.core-imagebox.imagebox-1-across .slide-footer a {
    color: var(--white);
}

.core-imagebox .slide .content-section p {
    color: var(--color-display);
}

.core-imagebox[data-width="full"] .slide .content-section {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    padding: var(--space-5);
}

.core-imagebox[data-width="full"] .slide .content-section h3 a,
.core-imagebox .slide .content-section h2 {
    font-size: var(--text-2xl);
    line-height: var(--leading-tight);
    font-weight: 400;
    color: var(--color-display);
}

.core-imagebox[data-width="full"] .slide .content-section p {
    color: var(--color-display);
}

.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 .slide-title {
	font-size: var(--text-xl);
	font-weight: 700;
	line-height: var(--leading-snug);
	margin-bottom: var(--space-1);
    color: var(--color-display);
}

.core-imagebox .content-section p {
	margin-bottom: var(--space-4);
	font-size: var(--text-base);
	font-weight: 400;
	line-height: var(--leading-tight);
}

.core-imagebox .slide a.read-more:not(p *), 
.core-imagebox .slide .slide-footer a {
    color: var(--color-display);
}