/* Editor styles for the PSRC Callout Layout Carousel */

.psrc-feature-callout-layout-carousel-container {
	margin: 0 auto 2em;
	width: auto;
}

.psrc-feature-callout-layout-carousel-container.cols3 {
	width: 999px;
}

.psrc-feature-callout-layout-carousel-container.cols2 {
	width: 666px;
}

.psrc-feature-callout-layout-carousel-container.cols1 {
	width: 333px;
}

.psrc-feature-callout-layout-carousel-left.flexcol-half, .psrc-feature-callout-layout-carousel-right.flexcol-half {
	width: 50%;
}

.psrc-feature-callout-layout-carousel-left.flexcol-half {
	margin-right: 37px;
}

.psrc-feature-callout-layout-carousel-ind {
	background-position: top center;
	background-size:cover;
	filter: none;
	margin: 0 18px;
	position: relative;
	transition: all ease-in 150ms;
	width: 100%;
	max-width: 333px;
}

.psrc-feature-callout-layout-carousel-ind:hover, .psrc-feature-callout-layout-carousel-ind:focus {
	filter: grayscale(.5);
}

.psrc-feature-callout-layout-carousel-static:hover, .psrc-feature-callout-layout-carousel-static:focus {
	filter: grayscale(.5);
}

.psrc-feature-callout-layout-carousel-ind.flexcol-auto {
	width: 100%;
}

.psrc-feature-callout-layout-carousel-ind-image {
	position: relative;
	line-height: .5em;
	transition: all ease-in 150ms;
	width: 100%;
	max-width: 333px;
	z-index: 0;
}


.feature-embed-mask-carousel {
	background-image: none;
	height: 100%;
	line-height: 1em;
	opacity: 1;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	transition: all ease-in 150ms;
	z-index: 1;
}

body.theme-red .feature-embed-mask-carousel {
	background-image: url("psrc-red-overlay.png");
}

body.theme-blue .feature-embed-mask-carousel {
	background-image: url("psrc-blue-overlay.png");
}

/* Account for the respect color scheme option */
body.theme-blue .psrc-feature-callout-layout-carousel-container.nocolor .feature-embed-mask-carousel, body.theme-red .psrc-feature-callout-layout-carousel-container.nocolor .feature-embed-mask-carousel {
	background-image: url("feature-post-mask.png");
	background-position: bottom center;
	background-repeat: no-repeat;
}

h3.psrc-feature-callout-layout-carousel-ind-title {
	background-color: transparent;
	color: #FFF;
	font-size: 18px;
	font-weight: normal;
	margin: 0;
	line-height: 1.1em;
	position: absolute;
	text-align: left;
	text-decoration: none;
	bottom: 10%;
	left: 6%;
	right: 6%;
	text-shadow: var(--psrc-text-shadow-title);
	transition: all ease-in 150ms;
	z-index: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: pre-wrap;
}

.flexcol-fourth h3.psrc-feature-callout-layout-carousel-ind-title {
	padding: 6px 6px;
}

.psrc-feature-callout-layout-carousel-static h3.psrc-feature-callout-layout-carousel-ind-title {
	bottom: 0;
}


/* Responsive Styles */

@media screen and (min-width: 320px) and (max-width: 1024px) {
	
	.psrc-feature-callout-layout-carousel-container {
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
	}
	
	.psrc-feature-callout-layout-carousel-left.flexcol-half, .psrc-feature-callout-layout-carousel-right.flexcol-half {
		width: 100%;
	}
	
	.psrc-feature-callout-layout-carousel-static {
		height: 190px;
	}

	.psrc-feature-callout-layout-carousel-ind {
		flex-grow: 0;
	}
	
	.psrc-feature-callout-layout-carousel-left.flexcol-half {
		margin-right: 0;
	}

	.psrc-feature-callout-layout-carousel-ind-image img {
		width: 100%;
		height: auto;
		object-fit: cover;
	}
	
	h3.psrc-feature-callout-layout-carousel-ind-title {
		font-size: 16px;
	}
	
}


@media screen and (min-width: 768px) and (max-width: 1024px) {
	
	.psrc-post-callout-layout-carousel-container {
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
	}
	
	.psrc-post-callout-layout-carousel-static {
		height: 250px;
	}
	
	h3.psrc-post-callout-layout-carousel-ind-title {
		font-size: 18px;
	}
	
}


@media screen and (min-width: 320px) and (max-width: 768px) {
	
	.psrc-feature-callout-layout-carousel-container, .psrc-feature-callout-layout-carousel-container.cols1, .psrc-feature-callout-layout-carousel-container.cols2, .psrc-feature-callout-layout-carousel-container.cols3 {
		width: auto;
	}
	
	.psrc-feature-callout-layout-carousel-ind {
		width: auto;
		max-width: auto;
	}

}