/* Front End CSS file for the a-folio plugin */

.a-folio {
	margin: 0 -10px 2em;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

.a-folio-tile-wrapper {
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 20px;
	box-sizing: border-box;
	display: -ms-flexbox;
	display: flex;
	width: 50%;
	height: 460px;
	flex-wrap: wrap;
}

.a-folio-tile-size-1_3 {
	width: 33.3333%;
	height: 350px;
}

.a-folio-tile-size-1_4 {
	width: 25%;
	height: 230px;
}

.a-folio-tiled-container .a-folio-tile-size-1_4 {
	min-width: 50%;
	width: 50%;
	margin: 0;
}

.a-folio-tiled-container .a-folio-tile-size-1_4:nth-child(odd) {
	padding-left: 0;
}

.a-folio-tiled-container .a-folio-tile-size-1_4:nth-child(even) {
	padding-right: 0;
}

.a-folio-tile {
	background-size: cover;
	background-position: center;
	overflow: hidden;
	width: 100%;
	height: 100%;
	position: relative;
	color: #fff;
	background-color: #ccc;
}

.a-folio-tile a {
	color: #fff;
}

.a-folio-tile-cover {
	background: rgba(127,127,127,0.75);
	position: absolute;
	top: 340px;
	width: 100%;
	height: 100%;
	-webkit-transition: top .5s;
	transition: top .5s;
	display: flex;
	flex-direction: column;
}

.a-folio-tile-size-1_4 .a-folio-tile-cover {
	height: 270px;
}

.a-folio-tile-size-1_3 .a-folio-tile-cover {
	top: 270px;
}

.a-folio-tile-size-1_4 .a-folio-tile-cover {
	top: 150px;
}

.a-folio:not(.touch) .a-folio-tile:hover .a-folio-tile-cover, .a-folio.touch .a-folio-tile .a-folio-tile-cover.touch-clicked {
	top: 0;
}

.a-folio:not(.touch) .a-folio-tile-size-1_4 .a-folio-tile:hover .a-folio-tile-cover, .a-folio.touch .a-folio-tile-size-1_4 .a-folio-tile .a-folio-tile-cover.touch-clicked {
	top: -60px;
}

.a-folio-tile-header {
	height: 100px;
	min-height: 100px;
	display: flex;
	flex-direction: row;
}

.a-folio-tile-size-1_4 .a-folio-tile-header, .a-folio-tile-size-1_3 .a-folio-tile-header {
	height: 60px;
	min-height: 60px;
}

.a-folio-tile-title {
	display: flex;
	flex-direction: column;
	padding: 10px 10px 10px 0;
	width: 100%;
}

.a-folio-noicon .a-folio-tile-title {
	margin: auto 20px;
}

.a-folio-tile-title-inner {
	margin: auto 0;
}

.a-folio-tile-title h1, .a-folio-tile-title h2 {
	line-height: 1em;
	margin: 0;
	padding: 0 20px 0 0;
	color: #fff;
}

.a-folio-tile-title h1 {
	font-size: 24px;
}

.a-folio-tile-size-1_4 .a-folio-tile-title h1, .a-folio-tile-size-1_3 .a-folio-tile-title h1 {
	font-size: 20px;
	padding: 0;
	margin: auto 0;
	height: auto;
	display: block;
}

.a-folio-tile-title h2 {
	font-weight: normal;
	font-size: 18px;
	margin-top: 0.3em;
}

.a-folio-tile-icon {
	height: 100%;
	width: 100px;
	min-width: 100px;
	text-align: center;
}

.a-folio-tile-icon .fa {
	font-size: 64px;
	line-height: 100px;
}

.a-folio-tile-size-1_4 .a-folio-tile-icon, .a-folio-tile-size-1_3 .a-folio-tile-icon {
	width: 60px;
	min-width: 60px;
	height: 60px;
}

.a-folio-tile-size-1_4 .a-folio-tile-icon .fa, .a-folio-tile-size-1_3 .a-folio-tile-icon .fa {
	font-size: 44px;
	line-height: 60px;
}

.a-folio-tile-content {
	padding: 30px 40px 40px;
	height: 100%;
}

.a-folio-tile-size-1_3 .a-folio-tile-content {
	padding: 20px 30px 30px;
}

.a-folio-tile-size-1_4 .a-folio-tile-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.a-folio-tile-button {
	position: absolute;
	bottom: 40px;
	left: 0;
	width: 100%;
	text-align: center;
}

.a-folio-tile-size-1_4 .a-folio-tile-button {
	position: static;
	margin: auto;
}

.a-folio-cta .a-folio-cta-text-outer {
	display: flex;
	box-shadow: none;
	border: none;
	height: 100%;
	width: 100%;
	padding: 40px;
	text-align: center;
	flex-direction: column;
	text-decoration: none;
}

.a-folio-tile-size-1_4 .a-folio-cta .a-folio-cta-text-outer {
	padding: 20px;
}

.a-folio-cta .a-folio-cta-text {
	margin: auto;
	font-size: 1.6em;
}

.a-folio-tile-size-1_4 .a-folio-cta .a-folio-cta-text {
	font-size: 1.4em;
}
