/* POSTS */

.POSTS::before,
.POSTS::after {
	content: "";
	display: block;
	overflow: hidden;
}

.POSTS .filter {
	float: none;
	margin: 0 0 40rem;
	overflow: hidden;
}

.POSTS .filter .b-button {
	width: 100%;
	line-height: 40rem;
	height: 40rem;
	padding: 0;
}

.POSTS .post {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.POSTS .image {
	display: none;
	margin-bottom: 20rem;
}

.POSTS .content .type {
	margin-bottom: 5rem;
	color: var(--white);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.POSTS .content .type a {
	color: var(--orange);
	position: relative;
	/* z-index: 1; */
	font-weight: 700;
}

.POSTS .content .title {
	margin-top: 0;
}

.POSTS .content .title a::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.POSTS .content .excerpt {
	display: none;
}

.POSTS .pagination {
	margin: 60rem 0 0;
	text-align: center;
}

.POSTS .pagination .page-numbers {
	width: 30rem;
	display: inline-block;
	vertical-align: top;
	height: 40rem;
	line-height: 40rem;
	text-align: center;
	font-weight: 700;
	font-size: 20rem;
	color: var(--black);

}

.POSTS .pagination a.page-numbers:hover {
	color: var(--orange);
}

.POSTS .pagination .page-numbers.current {
	width: 40rem;
	background: var(--black);
	color: var(--white);
	border-radius: 20rem;
}

.POSTS .screen-reader-text {
	display: none;
}

/* ajax load more */

.POSTS .alm-reveal {
	display: flex;
	flex-wrap: wrap;
	margin: -20rem -20rem -40rem;
}

.POSTS .alm-item {
	padding: 20rem 20rem 40rem;
	box-sizing: border-box;
	flex: 0 0 auto;
	align-items: stretch;
	width: 33.333333%;
}

.POSTS .ajax-load-more-wrap[data-total-posts="0"] .alm-listing:empty::before {content: "No results found.";}
.POSTS .results + .posts .ajax-load-more-wrap[data-total-posts="0"] .alm-listing:empty::before {display: none;}

.POSTS .alm-reveal + .alm-reveal {padding-top: 40rem;}
.POSTS .alm-btn-wrap {text-align: center; overflow: hidden;}
.POSTS .alm-load-more-btn {margin-top: 60rem;}
.POSTS .alm-load-more-btn.done {display: none;}

.POSTS .posts.alt-hide-button .alm-load-more-btn.more {display: none;}

.b-inverted .POSTS .b-button {color: var(--black); background: var(--white);}
.b-inverted .POSTS .post:hover .b-button {color: var(--black); background: var(--orange);}


@media screen and (max-width: 960px) {
	.POSTS .filter .b-columns {margin: -5rem;}
	.POSTS .filter .b-columns > .b-column {padding: 5rem;}
	.POSTS .alm-reveal {margin: -10rem -10rem -30rem;}
	.POSTS .alm-item {width: 100%; padding: 10rem 10rem 30rem;}
	.POSTS .alm-reveal + .alm-reveal {padding-top: 30rem;}
	.POSTS .alm-load-more-btn {margin-top: 40rem;}

	.POSTS .pagination .page-numbers {width: 20rem; height: 30rem; line-height: 30rem;}
	.POSTS .pagination .page-numbers.current {width: 30rem; border-radius: 15rem;}
}



/* DEFAULT */

.POSTS[data-style=""] .background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url(../jpg/fallback.jpg) no-repeat center / cover;
	transition: transform 0.25s;
}

.POSTS[data-style=""] .image {display: none;}
.POSTS[data-style=""] .content {position: relative;}
.POSTS[data-style=""] .container {
	margin-top: 0;
	aspect-ratio: 4/3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 30rem;
	margin-bottom: 10rem;
}

.POSTS[data-style=""] .content .title {
	font-size: 22rem;
	color: var(--white);
}

.POSTS[data-style=""] .content .title a {
	flex: 0 0 100%; color: var(--white);
}

.POSTS[data-style=""] .post:hover .background {
	transform: scale(1.25);
}

.POSTS[data-style=""] .post:hover .title {
	text-decoration: underline;
}



/* TITLE & EXCERPT */

.POSTS[data-style="title-excerpt"] .post {
	color: var(--black);
	background: var(--light-grey);
	padding: 30rem;
	border-left: 3px solid transparent;
	transition: background-color 0.25s, border-color 0.25s;
}

.POSTS[data-style="title-excerpt"] .post:hover {
	background-color: var(--white);
	border-color: var(--blue);
}

.POSTS[data-style="title-excerpt"] .image {display: none;}
.POSTS[data-style="title-excerpt"] .title {aspect-ratio: none; background: none; display: block;}
.POSTS[data-style="title-excerpt"] .type {display: none;}
.POSTS[data-style="title-excerpt"] .link {display: none;}
.POSTS[data-style="title-excerpt"] .excerpt {display: block; margin-bottom: 0;}

.b-inverted .POSTS[data-style="title-excerpt"] .post,
[data-style="light-grey"] .POSTS[data-style="title-excerpt"] .post {background-color: var(--white);}

@media screen and (min-width: 961px) {
	.POSTS[data-style="title-excerpt"] .posts > .b-columns > .b-column {width: 50%;}
}

@media screen and (max-width: 960px) {
	.POSTS[data-style="title-excerpt"] .post {padding: 20rem;}
}
