/*-----------------------------------------------------------------------------------

TABLE OF CONTENTS:
1. General
2. Links
3. Typo
4. Stuff
5. Media Queries

-----------------------------------------------------------------------------------*/

/*-----------------------------------------------------------------------------------
1. General
-----------------------------------------------------------------------------------*/

.fp-slidesNav {
	left: auto;
	right: 2.5em;
	z-index: 12;
}

.fp-tableCell {
	overflow: hidden;
	position: relative;
}

.page-template-thmlv-page-portfolio #thmlvHeader {
	margin-bottom: 0;
}

.page-template-thmlv-page-portfolio #thmlvHeader.thmlvNoHeader #thmlvHeaderTitleWrap {
	padding-top: 0;
}

#thmlvCaptionWrapper {
	background-color : rgba(0, 0, 0, 0.5);
	color: #ffffff;
	margin: 1em;
	position: absolute;
	width: 50%;
	z-index: 1;
}

.thmlvFullSelected {
	background-position: center center;
	background-size: cover;
	overflow-x: hidden; overflow-y: hidden;
}

.thmlvFullSelected:not(.format-video) {
	z-index: 1; /* fix FF bug on overflow hidden */
}

.thmlvFullSelected .fp-slide {
	background-position: center center;
	background-size: cover;
}

.thmlvFullSelected .thmlvImageWrapper {
	-webkit-transform: scale3D(1.15, 1.15, 1);
	-moz-transform: scale3D(1.15, 1.15, 1);
	-ms-transform: scale3D(1.15, 1.15, 1);
	-o-transform: scale3D(1.15, 1.15, 1);
	transform: scale3D(1.15, 1.15, 1);
}

.thmlvGalleryCell {
	display: table-cell;
	vertical-align: middle;
}

.thmlvGalleryWrap {
	display: table;
	height: 100%;
	left:0;
    margin-left:auto;
    margin-right:auto;
	position: absolute;
	right:0;
	width: 100%;
	z-index: 11;
}

.thmlvGridCaption {
	background-color : rgba(0, 0, 0, 0.5);
	color: #ffffff;
	height: 100%;
	padding-bottom: 1em;
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 1em;
	transition: background-color 0.4s ease-out 0s;
	-webkit-transition: background-color 0.4s ease-out 0s;
	-o-transition: background-color 0.4s ease-out 0s;
	width: 100%;
}

.thmlvGridOverlay {
	background-position: center center;
	background-size: cover;
	display: none;
	height: 100%;
	padding-bottom: 1.222em;
	padding-left: 1.222em;
	padding-right: 1.222em;
	padding-top: 1.222em;
	position: absolute;
	top: 0;
	z-index: 2;
	width: 100%;
}

.thmlvGridOverlay .thmlvGridCaption {
	overflow: hidden;
	padding-bottom: 1.888em;
	padding-left: 1.888em;
	padding-right: 1.888em;
	padding-top: 1.888em;
}

.thmlvGridPortfolio {
	background-color: #e6e6e6;
	display: inline-block;
	overflow: hidden;
	position: relative;
	width: 25%;
	vertical-align: top;
}

.thmlvGridPortfolio:nth-child(odd) {
	background-color: #f0f0f0;
}

.thmlvImageWrapper {
	left: -1px;
	background-position: 50% 0%;
	background-size: cover;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	min-height: 102%;
	position: absolute;
	-webkit-transform: scale3D(1, 1, 1);
	-moz-transform: scale3D(1, 1, 1);
	-ms-transform: scale3D(1, 1, 1);
	-o-transform: scale3D(1, 1, 1);
	transform: scale3D(1, 1, 1);
	-webkit-transition: opacity .3s ease-out,-webkit-transform .9s ease-out;
	-moz-transition: opacity .3s ease-out,-moz-transform .9s ease-out;
	-ms-transition: opacity .3s ease-out,-ms-transform .9s ease-out;
	-o-transition: opacity .3s ease-out,-o-transform .9s ease-out;
	transition: opacity .3s ease-out,transform .9s ease-out;
	-webkit-transform-origin: 50% 50%;
	-moz-transform-origin: 50% 50%;
	-ms-transform-origin: 50% 50%;
	-o-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
	top: -1px;
	min-width: 102%;
	z-index: 1;
}

.thmlvSelectedCaption {
	bottom: 5%;
	display: none;
	margin-bottom: 2em;
	position: absolute;
	left: 45%;
	right: 5%;
}

/*-----------------------------------------------------------------------------------
2. Links
-----------------------------------------------------------------------------------*/

.thmlvArrowRight {
	background-color: #ffffff;
	border-radius: 50%;
	color: #333333 !important;
	display: block;
	height: 2.666em;
	line-height: 2.666em;
	text-align: center;
	width: 2.666em;
}

.thmlvFullSelected:first-of-type .thmlvSelectedPrev {
	display: none;
}

.thmlvFullSelected:last-of-type .thmlvSelectedNext {
	display: none;
}

.thmlvGridCaption h1 a {
	color: #ffffff;
}

.thmlvNoHeader .thmlvSectionCategories a {
	color: #333333;
}

.thmlvSelectedCaption h1 a {
	color: #ffffff;
}

.thmlvSectionCategories a {
	color: #ffffff;
	font-size: 0.888em;
}

.thmlvSelectedPrev,
.thmlvSelectedNext {
	background-color: #ffffff;
	border-radius: 50%;
	color: #333333;
	display: block;
	height: 2.666em;
	line-height: 2.666em;
	margin: 0.5em 2.5em;
	text-align: center;
	width: 2.666em;
}

/*-----------------------------------------------------------------------------------
3. Typo
-----------------------------------------------------------------------------------*/

.thmlvGridCaption .thmlvSectionTitle {
	font-size: 1.888em;
	margin-bottom: 1em;
}

.thmlvSelectedNav {
	list-style-type: none;
	position: absolute;
	right: 0;
	z-index: 2;
}

.thmlvSelectedCaption .thmlvSectionTitle {
	font-size: 1.888em;
}

.thmlvSelectedCaption p {
	margin-bottom: 0;
	margin-top: 4em;
}

.thmlvSelectedCaption .thmlvSectionTitle {
	margin-bottom: 1em;
}

/*-----------------------------------------------------------------------------------
4. Stuff
-----------------------------------------------------------------------------------*/

.page-template-thmlv-page-selected #thmlvLogo .thmlvLogoSwitch {
	display: none;
}

.thmlvArrowRight .fa,
.thmlvSelectedPrev .fa,
.thmlvSelectedNext .fa {
	-webkit-transition: .2s ease-in-out;
    -moz-transition: .2s ease-in-out;
    -o-transition: .2s ease-in-out;
    transition: .2s ease-in-out;
}

.thmlvArrowRight:hover .fa {
	-webkit-transform: translate(.2em, 0);
    -moz-transform: translate(.2em, 0);
    -o-transform: translate(.2em, 0);
    -ms-transform: translate(.2em, 0);
    transform: translate(.2em, 0);
}

#thmlvInnerClient,
.thmlvLoopClient {
	display: block;
	font-size: 2em;
	margin-bottom: 0.222em;
	opacity: 0.6;
}

.thmlvNoHeader #thmlvInnerClient {
	color: #333333;
}

.thmlvGridCaption .thmlvLoopClient {
	font-size: 1.888em;
}

.thmlvNoHeader .thmlvSectionCategories {
	color: #333333;
}

.thmlvNoHeader .thmlvSectionCategories:after {
	border-color: #333333;
}

.thmlvSectionCategories {
	display: block;
	margin-bottom: 2.5em;
}

.thmlvSectionCategories:after {
	border-bottom: 1px solid #ffffff;
	content: "";
	display: block;
	margin: 0.5em 0 2.5em;
	opacity: 0.5;
	width: 60px;
}

.thmlvSelectedCaption .thmlvLoopClient {
	font-size: 1.888em;
}

.thmlvSelectedNext:hover .fa {
	-webkit-transform: translate(0, .2em);
    -moz-transform: translate(0, .2em);
    -o-transform: translate(0, .2em);
    -ms-transform: translate(0, .2em);
    transform: translate(0, .2em);
}

.thmlvSelectedPrev:hover .fa {
	-webkit-transform: translate(0, -.2em);
    -moz-transform: translate(0, -.2em);
    -o-transform: translate(0, -.2em);
    -ms-transform: translate(0, -.2em);
    transform: translate(0, -.2em);
}

/*-----------------------------------------------------------------------------------
5. Media queries
-----------------------------------------------------------------------------------*/

@media (max-width : 2100px) {
	.thmlvGridPortfolio {
		width: 33.333%;
	}
}

@media (max-width : 1440px) {	
	.thmlvGridPortfolio {
		width: 50%;
	}
}

@media (max-width : 786px) {	
	#thmlvCaptionWrapper {
		margin: 2%;
		width: 96%;
	}
	
	.page-template-thmlv-page-selected #thmlvLogo {
		display: none;
	}
	
	.thmlvSelectedCaption {
		left: 2em;
		right: 2em;
	}
	
	.thmlvSelectedNav {
		display: none;
	}
}

@media (max-width : 700px) {

	.thmlvGridCaption .thmlvSectionCategories {
		display: none;
	}
		
	.thmlvGridPortfolio {
		width: 100%;
	}
}