/**
 * Custom Posts Lists
 *
 * Currently via the custom Posts List WP Bakery page builder module.
 *
 * 2021-04
 */


/*! ===== Posts List ===== */

.wstl-posts-list .wstl-posts {
	display: flex;
	flex-wrap: wrap;
	margin-top:   -30px;
	margin-left:  -15px;
	margin-right: -15px;
}

/* Columns layout */
.wstl-posts-list .wstl-post-card {
	flex: 0 0 100%;
	padding-left:  15px;
	padding-right: 15px;
	margin-top: 30px;
}

@media (min-width: 1000px) {
	.wstl-posts-list.columns-2 .wstl-post-card {
		flex: 0 0 50%;
	}
	.wstl-posts-list.columns-3 .wstl-post-card {
		flex: 0 0 33.3333%;
	}
}

/* No posts message */
.wstl-posts-list .wstl-no-posts {
	width: 100%;
	padding: 90px 0 60px;
	text-align: center;
}



/*! ===== Post Card ===== */

.wstl-post-card {}

.wstl-post-card .wstl-card-wrap {
	position: relative;
	height: 100%;
}

.wstl-post-card .wstl-card-link {
	display: block;
	position: absolute;
	z-index: 10;
	top:  0;
	left: 0;
	width:  100%;
	height: 100%;
}

.wstl-post-card .wstl-card-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: all 0.3s ease;
}

.wstl-post-card .wstl-card-header {
	margin-bottom: 30px;
}

.wstl-post-card .wstl-card-body {
	flex: 1;  /* push footer to bottom of card */
}

.wstl-post-card .wstl-card-footer {
	margin-top: 30px;
}

.wstl-post-card .wstl-post-thumbnail {
	position: relative;
}
.wstl-post-card .wstl-post-thumbnail img {
	margin: 0;
	width: 100%;
}

.wstl-post-card .wstl-post-meta {
	font-size: 0.8571em;  /* ~ 12px */
	line-height: 1.4;
	color: #616569;
}

.wstl-post-card .wstl-post-meta .wstl-terms {
	margin:  0;
	padding: 0;
}

.wstl-post-card .wstl-post-meta .wstl-term {
	display: inline-block;
	margin-bottom: 0.5em;
}
.wstl-post-card .wstl-post-meta .wstl-term::after {
	content: ', ';
}
.wstl-post-card .wstl-post-meta .wstl-term:last-child::after {
	content: none;
}



/*! ===== Filter Bar ===== */
/* matching Blog's categories list (see: css/blog.css) */

.wstl-posts-list .wstl-filter-bar {
	margin: 0 0 30px;
}

.wstl-posts-list .wstl-filter-bar .wstl-terms {
	margin: 0 auto;
	font-size: 12px;
	line-height: normal;
	text-align: center;
	list-style: none;
}

.wstl-posts-list .wstl-filter-bar .wstl-term {
	display: inline-block;
}

.wstl-posts-list .wstl-filter-bar .wstl-term-link {
	display: inline-block;
	padding: 1em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration-color: rgba(97, 101, 105, 0.4);
	color: #616569;
	background: transparent;
	transition: all 0.3s ease;
}
.wstl-posts-list .wstl-filter-bar .wstl-term-link:hover,
.wstl-posts-list .wstl-filter-bar .wstl-term-link:focus,
.wstl-posts-list .wstl-filter-bar .current .wstl-term-link {
	color:      #283B4D;
	background: rgba(33, 182, 215, 0.15);
}
.wstl-posts-list .wstl-filter-bar .current .wstl-term-link {
	background: transparent;
	cursor: default;
}



/*! ===== Posts List: Blog ===== */

.wstl-posts-list.style-blog {}

.wstl-posts-list.style-blog .wstl-card-header {
	margin: 0;
}

.wstl-posts-list.style-blog .wstl-card-body {
	padding: 30px 10px;
	text-align: center;
}

.wstl-posts-list.style-blog .wstl-post-title {
	font-size: 1.0714em;  /* ~15px */
	font-weight: 500;
	line-height: 1.4;
}

.wstl-posts-list.style-blog .wstl-post-title a {
	color: #283B4D;
	text-decoration-color: rgba(40, 59, 77, 0.4);
}
.wstl-posts-list.style-blog .wstl-post-title a:hover,
.wstl-posts-list.style-blog .wstl-post-title a:focus,
.wstl-posts-list.style-blog .wstl-card-link:hover ~ .wstl-card-content .wstl-post-title a {
	color: #DA1D47;
	text-decoration-color: currentcolor;
}

/* Add a thick border around the image on hover */
.wstl-posts-list.style-blog .wstl-post-thumbnail::before {
	content: '';
	position: absolute;
	z-index: -1;
	top:    0;
	right:  0;
	bottom: 0;
	left:   0;
	border: 8px solid #DA1D47;
	background: transparent;
	/* "medium_depth" shadow */
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
	opacity: 0;
	transition: all 0.3s ease;
}
.wstl-posts-list.style-blog .wstl-card-link:hover ~ .wstl-card-content .wstl-post-thumbnail::before {
	/* offset border width (to show) */
	top:    -8px;
	right:  -8px;
	bottom: -8px;
	left:   -8px;
	opacity: 1;
}



/*! ===== Posts List: Simple Text ===== */

.wstl-posts-list.style-simple-text {}

.wstl-posts-list.style-simple-text .wstl-card-content {
	padding: 8%;
	background: #fff;
	border: 0 solid #FFC700;
	border-left-width: 40px;
	border-radius: 10px;
	/* "small depth" */
	-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
	        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
}
/* alternating colors */
.wstl-posts-list.style-simple-text .wstl-post-card:nth-child(5n + 2) .wstl-card-content {
	border-color: #21b6d7;
}
.wstl-posts-list.style-simple-text .wstl-post-card:nth-child(5n + 3) .wstl-card-content {
	border-color: #283B4D;
}
.wstl-posts-list.style-simple-text .wstl-post-card:nth-child(5n + 4) .wstl-card-content {
	border-color: #DA1D47;
}
.wstl-posts-list.style-simple-text .wstl-post-card:nth-child(5n + 5) .wstl-card-content {
	border-color: #E06080;
}
.wstl-posts-list.style-simple-text .wstl-post-card:nth-child(5n + 6) .wstl-card-content {
	border-color: #FFC700;
}

/* Pop up when full card link is hovered */
.wstl-posts-list.style-simple-text .wstl-card-link:hover ~ .wstl-card-content {
	transform: scale(1.05) translate(0, -8px);
	z-index: 2;
}

.wstl-posts-list.style-simple-text .wstl-card-link:hover ~ .wstl-card-content .wstl-more-link {
	color: inherit;
	text-decoration-color: currentcolor;
}
.wstl-posts-list.style-simple-text .wstl-card-link:hover ~ .wstl-card-content .wstl-more-link::after {
	transform: translateX(0.5em);
}



/*! ===== Posts List: Thumbnail ===== */

.wstl-posts-list.style-thumbnail .wstl-posts {
	margin-top: -60px;
}

.wstl-posts-list.style-thumbnail .wstl-post-card {
	margin-top: 60px;
}

.wstl-posts-list.style-thumbnail .wstl-card-header {
	margin-bottom: 10px;
}

.wstl-posts-list.style-thumbnail .wstl-card-header .wstl-post-thumbnail {
	overflow: hidden;
	padding: 10px;
	background: #fff;
	border-radius: 10px;
	transition: all 0.3s ease;
}
.wstl-posts-list.style-thumbnail .wstl-card-header .wstl-post-thumbnail img {
	width: 100%;
	margin: 0;
	border-radius: 8px;
}

.wstl-posts-list.style-thumbnail .wstl-post-meta {
	margin-top: 20px;
}

.wstl-posts-list.style-thumbnail .wstl-post-meta .wstl-terms {
	/* text-transform: uppercase; */
}

/* Pop when full card link is hovered */
.wstl-posts-list.style-thumbnail .wstl-card-link:hover ~ .wstl-card-content .wstl-card-header .wstl-post-thumbnail {
	/* "medium_depth" shadow */
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
	transform: scale(1.05) translate(0, -8px);
}

.wstl-posts-list.style-thumbnail .wstl-card-link:hover ~ .wstl-card-content .wstl-more-link {
	color: inherit;
	text-decoration-color: currentcolor;
}
.wstl-posts-list.style-thumbnail .wstl-card-link:hover ~ .wstl-card-content .wstl-more-link::after {
	transform: translateX(0.5em);
}
