.search-wrapper {
	position: fixed;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    display: block;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 10% 10% 0 10%;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

.search-wrapper.hidden {
	opacity: 0;
	z-index: -1;
}

.search-wrapper.active {
	padding: 0 10% 0 10%;
}


.search-wrapper h2{
	color: white;
    font-size: 3em;
    font-weight: 200;
}

.search-wrapper.active h2 {
	font-size: 2em;
}

.search-form input {
	-moz-appearance: none;/* older firefox */
	-webkit-appearance: none; /* safari, chrome */
	appearance: none; /* rest */
	width: 80%;
    font-size: 2em;
    border: none;
    background: transparent;
    border-bottom: 1px solid white;
    caret-color: #c93a3a;
    color: white;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    border-radius: 0;
}

.search-form input:focus {
	outline: none;
}

.search-form button {
	font-size: 1em;
    cursor: pointer;
    border: 0;
    color: white;
    font-weight: bold;
    background: #c93a3a;
    padding: 10px;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

.search-close {
	height: 1.5em;
    width: 1.5em;
    position: absolute;
    right: 5%;
    top: 5%;
    background-image: url('../img/icon-cancel-white.svg');
    background-position: center;
    background-size: 1.5em;
    cursor: pointer;
}

.search-results {
	opacity: 0;
	width: 100%;
	height: 100%;
	overflow: scroll;
	padding-top: 2em;
}

.search-wrapper.active .search-results{
	opacity: 1;
	color: white;
}


.search .grid-item {
	width: 100%;
	position: relative;
}

.search .a-img {
	width: 180px;
	height: 180px;
}

.search .a-img:after {
	right: 0;
	width: 180px;
}

.search .post-format {
	left: 144px;
}

.search .post .category {
	left: 200px;
	font-size: 0.75em;
	top: 0;
}

.search .post-wrapper {
	left: 200px;
	top: 15px;
}

.search .post-wrapper .excerpt {
	font-size: 1em;
}

.search .text-post-wrapper {
	padding: 0;
}

.search .post-wrapper h2 {
	font-size: 1.5em;
}

.search.grid-item.grid-item--width2 .category {
	font-size: 0.85em;
}

.search.grid-item.grid-item--width2 h2 {
	font-size: 22px;
}

.search.post .excerpt {
	font-size: 16px;
	line-height: 18px;
}


@media screen and (max-width: 40em) {
	.search-wrapper {
		padding: 10% 10px 0;
	}
	
	.search-wrapper.active {
		padding: 0 10px;
	}
	
	.search .a-img {
		width: 100px;
		height: 100px;
	}
	
	.search .a-img:after {
		width: 100px;
	}
	
	.search .post-wrapper {
		left: 110px;
		width: calc(100% - 130px);
		line-height: 0.6em;
	}
	
	.search .post-format {
		left: 82px;
		width: 18px;
		height: 18px;
		padding: 5px;
	}
	
	.search .post-format:after {
		height: 8px;
		width: 8px;
	}
	
	.search .post .category {
		left: 110px;
		font-size: 0.5em;
		line-height: 1.1em;
	}
	
	.search .post-wrapper h2 a {
		padding: 0;
	}
	
	.search-wrapper h2 {
		font-size: 2em;
	}
	
	.search .post-wrapper h2 {
		font-size: 0.85em;
	}
	
	.search .post-wrapper .excerpt {
		font-size: 0.6em;
		line-height: 1.2em
	}
	
	.search-form input {
		font-size: 1em;
		border-radius: 0;
		width: 100%;
	}
	
	.search-form button {
		font-size: 0.8em;
		width: 100%;
		display: block;
		margin-top: 20px
	}
}