/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/**
* Main container for the whole plugin
*/
.uctoday-plugin{
	-webkit-box-sizing: border-box;
 	-moz-box-sizing: border-box;
	box-sizing: border-box;
	font-size: inherit;
	max-width: 100%;
}

/**
* Styling the individual plugin post cell
*/
 .uctoday-list-item{
 	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
 	box-sizing: border-box;
	display: inline-block;
	list-style: none;
 	position: relative;
	vertical-align: top;
	width: 18em;
 }

 .uctoday-pictures{
	margin: 0;
 	padding: 0 6px 30px 6px;	
 }

 .uctoday-no-pictures + .uctoday-no-pictures {
	 padding-top: 0.5em;
 }

/**
* div container for the plugin post image
*/
.uctoday-img-container{
	width: 100%;
	padding-bottom: 66.66%;
	position: relative;
}

.uctoday-plugin .uctoday-img-container a {
	display: block;
	height: 100%;
	width: 100%;
	position: initial;
}

/**
* The plugin post picture itself
*/
.uctoday-img-container .uctoday-cell-image{
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

/**
* The container for the article title underneath the image
*/
.uctoday-title-container{
	font-weight: 700;
	font-size: .9em;
	margin: 1em 0;
}

/**
* Used for styling the article title link for each post
*/
.uctoday-list-item .uctoday-cell-title{
	border-bottom: 0;
 	box-shadow: 0 0 0 0;
 	color: #000;
 	font-size: 16px;
	font-weight: inherit;
 	line-height: 1.3em;
 	max-width: 100%;
 }

.screen-reader {
	position: absolute;
	left: -99999px;
}

/* 
 Override rules for all browsers that support css grid.
*/

@supports (display: grid) {
	.uctoday-plugin {
		display: grid;
		font-size: initial;
		grid-gap: 1em;
		grid-template-rows: auto;
	}

	div.uctoday-plugin-cols-2 {
		grid-template-columns: repeat(auto-fit, minmax(calc(100% / 2 - 1.5rem), 1fr));
	}

	div.uctoday-plugin-cols-3 {
		grid-template-columns: repeat(auto-fit, minmax(calc(100% / 3 - 1.5rem), 1fr));

	}

	div.uctoday-plugin-cols-4 {
		grid-template-columns: repeat(auto-fit, minmax(calc(100% / 4 - 1.5rem), 1fr));
	}

	.uctoday-pictures {
		margin: 0;
		padding: 0;
	}
	.uctoday-list-item {
		display: unset;
		vertical-align: unset;
		width: auto;
	}
	.uctoday-list-item.uctoday-no-pictures {
		display: block;
		width: auto;
	}
}

@media screen and (max-width: 992px) {
	.uctoday-plugin {
		margin: 0 0.8em 0 2em;
	}

	div[class*="uctoday-plugin-cols"] {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}