body.page-template-resources {
	background: #eee;
}

/* Masthead (for NON-DESKTOP-specific, mobile or BOTH D&M) */
body.page-template-resources .entry-header {
	padding-top: 200px;
}

body.page-template-resources .entry-header img {
	width: 300px;
}

body.page-template-resources .entry-header .entry-title {
	margin-top: -30px;
	font-size: 3rem;
}

/* HERO */
body.page-template-resources #overview {
	background: var(--mh-dark-bg-color);
	color: var(--mh-light-text-color);
	font-family: var(--mh-body-font);
	font-size: 1rem;
	text-align: left;
}


/* Resource Grid */
#resources-grid .resource {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

#resources-grid .resource {
	background: none !important;
	overflow: hidden;
}

#resources-grid .resource a {
	display: block;
	color: var(--mh-dark-text-color);
	font-family: var(--mh-resource-font);
	text-decoration: none;
	padding: 10px;
}

#resources-grid .resource a img {
	border-radius: 10px;
	height: auto;
}

#resources-grid .resource a .resource-terms {
	position: relative;
}

#resources-grid .resource a .resource-terms p {
	display: none;
	position: absolute;
	left: 10px;
	bottom: 0;
	padding: 0 10px;
}

#resources-grid .resource a .resource-terms .resource-term {
	background: rgba(255,255,255,.9);
	border-radius: 25px;
	padding: 5px 10px;
	font-family: var(--mh-resource-font);
	line-height: 2;
	text-transform: uppercase;
	letter-spacing: 1px;
	white-space: nowrap;
	font-size: .7rem;
}

#resources-grid .resource a .resource-title h2 {
	font-size: .9rem;
	padding:  10px 5px;
	margin: 0;
}

/* Resource Grid: Repeating some Bootstrap stuff for Ajax grid */
.alm-ajax {
	padding-top: 1.5rem;
}

.alm-ajax .alm-reveal {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(1.5rem * -1);
    margin-right: calc(1.5rem * -.5);
    margin-left: calc(1.5rem * -.5);
}

.alm-ajax .alm-reveal>* {
	flex-shrink: 0;
	max-width: 100%;
	padding-right: calc(1.5rem * .5);
	padding-left: calc(1.5rem * .5);
	margin-top: 0;
}

#ajax-load-more .alm-btn-wrap {
	text-align: center;
	margin: 40px 0;
}

#ajax-load-more button.more {
	border: 0;
	background: #ddd;
	color: #999;
	text-transform: uppercase;
	padding: 10px 30px;
	margin: auto;
	
}

/* Resource Search */

#resource-search {
	padding: 3vw 0 2vw 0;
}

#resource-search input[type="text"] {
	background: var(--mh-light-bg-color) url('../images/resources/background-search.png') center left no-repeat;
	background-size: contain;
	z-index: 51;
	position: relative;
	padding: 15px 15px 15px 80px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: .9rem;
	width: 100%;
}

#resource-search .submit-container {
	margin-top: 4vh;
	text-align: center;
}

#resource-search .submit-container input.submit, #resource-search .submit-container .btn {
	background: rgb(218, 218, 218);
	border-radius: 10px;
	border: 0;
	padding: 20px;
	display: block;
	cursor: pointer;
	font-size: .8rem;
	letter-spacing: 1px;
	text-decoration: none;
	width: 100%;
	text-transform: uppercase;
}

#resource-search .submit-container input.submit {
	background: #892287;
	color: var(--mh-light-text-color);
}

#resource-search .search-filter {
	background: var(--mh-light-bg-color);
	display: none;
	margin-top: 3px;
	width: 100%;
	padding: 4vh;
	position: relative;
	z-index: 60;
}

#resource-search .search-filter h3 {
	cursor: pointer;
	font-weight: lighter;
	text-transform: uppercase;
	font-size: 1rem;
	margin-top: 1vw;
	letter-spacing: 2px;
}

.filter-terms-list {
	display: none;
	list-style: none;
	padding: 0;
}

.filter-terms-list li {
	display: inline-block;
	padding: 5px;
}

.filter-terms-list li input[type="checkbox"] {
	display: none;
}

.filter-terms-list li label {
	background: rgb(218, 218, 218);
	border-radius: 10px;
	cursor: pointer;
	padding: 5px 10px;
}

.filter-terms-list li :checked + label {
	background: rgb(199, 133, 201);
}

#resource-search .search-overlay {
	background: rgba(0,0,0,.5);
	position: fixed;
	display: none;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 50;
}

/* Individual Resource Template */
body.resource-template-default .entry-header {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	height: auto;
	text-align: left;
}

body.resource-template-default .entry-header .wp-post-image {
	display: none;
}

body.resource-template-default .entry-header .entry-title {
	text-align: left;
	position: static;
	font-size: 2.5rem;
}

body.resource-template-default .entry-content {
	padding-top: 5vw;
	padding-bottom: 5vw;
}

body.page-template-resources .entry-header {
	background: var(--mh-dark-bg-color);
	color: var(--mh-light-text-color);
}

/* DESKTOP */
@media screen and (min-width: 992px) {

body.page-template-resources .entry-header {
	height: 500px;
}

body.page-template-resources .entry-header .entry-title {
	font-size: 7rem;
	margin-top: -100px;
}

body.page-template-resources .entry-header .entry-title {
	margin-top: 0;
}

body.page-template-resources #overview {
	font-size: 1.5rem;
	padding: 12vw 50px;
}

#resource-search .search-filter {
	padding: 6vh;
}

#resource-search .search-filter h3 {
	font-size: 1.75rem;
}

.filter-terms-list li label {
	padding: 10px 20px;
}

#resource-search .submit-container input.submit, #resource-search .submit-container .btn {
	font-size: 1.1rem;
	letter-spacing: 1px;
}

body.resource-template-default .entry-header {
	padding-top: 150px;
}

body.page-template-resources .entry-header .wp-post-image {
	left: calc(50vw - 150px);
	position: absolute;
	z-index: 5;
}

body.page-template-resources .entry-header .entry-title {
	left: 0;
	top: 375px;
	position: absolute;
	z-index: 10;
	width: 100%;
	text-align: center;
	font-size: 9rem;
}

#resources-grid .resource a .resource-terms p {
	display: block;
}

#resources-grid .resource a .resource-title h2 {
	font-size: 1.3rem;
	padding:  10px 20px 20px 20px;
}

/* DESKTOP: Individual Resource template */
body.resource-template-default .entry-header .entry-title {
	font-size: 5rem;
}

}

/* WIDE DESKTOP */
@media screen and (min-width: 1280px) {

	body.page-template-resources #overview {
		padding-top: 150px;
		padding-bottom: 150px;
	}

}