/* = Portfolio
----------------------------------------------------*/
.wrapper-penci-portfolio {
	width: 100%;
	overflow: hidden;

	.page-numbers {
		margin-bottom: 0;
		li {
			margin-left: 0;
			display: inline-block;
		}
	}

	.penci-pagination {
		padding-bottom: 0;
		opacity: 0;
		visibility: hidden;
	}

	.penci-pagenavi-shortcode .penci-pagination,
	.penci-portfolio.loaded + .penci-pagination {
		opacity: 1;
		visibility: visible;
	}
}

.penci-portfolio-filter {
	display: block;
	text-align: center;
	margin: 0 0 15px 0;
	position: relative;
}

.entry-content .penci-portfolio-filter ul,
.penci-portfolio-filter ul {
	list-style: none;
	display: inline-block;
	vertical-align: top;
	padding: 0 !important;
	margin: 0;
}

.entry-content .penci-portfolio-filter ul li,
.penci-portfolio-filter ul li {
	display: inline-block;
	float: left;
	margin: 0 0 5px 10px;
	padding: 0;

	&:after {
		content: '/';
		opacity: 0.3;
		font-family: 'Roboto', sans-serif;
	}

	&:last-child {
		margin-right: 0;

		&:after {
			content: none;
		}
	}
}

.post-entry .penci-portfolio-filter ul li a,
.penci-portfolio-filter ul li a {
	color: $color__dark;
	font-family: $font__main;
	margin-right: 5px;
	font-size: 14px;
}

.post-entry .penci-portfolio-filter ul li a:hover,
.post-entry .penci-portfolio-filter ul li.active a,
.penci-portfolio-filter ul li a:hover,
.penci-portfolio-filter ul li.active a {
	color: $color__blue;
	text-decoration: none;
}

.penci-portfolio-filter {
	li {
		-webkit-transition: all .2s cubic-bezier(.445, .050, .55, .95);
		transition: all .2s cubic-bezier(.445, .050, .55, .95);
		-webkit-transition-delay: 50ms;
		transition-delay: 50ms
	}

	ul li + li {
		-webkit-transition-delay: .1s;
		transition-delay: .1s
	}

	ul li + li + li {
		-webkit-transition-delay: 150ms;
		transition-delay: 150ms
	}

	ul li + li + li + li {
		-webkit-transition-delay: .2s;
		transition-delay: .2s
	}

	ul li + li + li + li + li {
		-webkit-transition-delay: 250ms;
		transition-delay: 250ms
	}

	ul li + li + li + li + li + li {
		-webkit-transition-delay: .3s;
		transition-delay: .3s
	}

	ul.is-active li {
		-webkit-transition-delay: 250ms;
		transition-delay: 250ms
	}

	ul.is-active li + li {
		-webkit-transition-delay: .3s;
		transition-delay: .3s
	}

	ul.is-active li + li + li {
		-webkit-transition-delay: 350ms;
		transition-delay: 350ms
	}

	ul.is-active li + li + li + li {
		-webkit-transition-delay: .4s;
		transition-delay: .4s
	}

	ul.is-active li + li + li + li + li {
		-webkit-transition-delay: 450ms;
		transition-delay: 450ms
	}

	ul.is-active li + li + li + li + li + li {
		-webkit-transition-delay: .5s;
		transition-delay: .5s
	}

	.portfolio-subcategory {
		position: absolute;
		top: 0;
		right: 50%;
		transform: translateX(50%);
		z-index: 10;
		visibility: hidden;

		li {
			visibility: hidden;
			margin-bottom: 10px;
			-webkit-transform: translateY(-20px);
			transform: translateY(-20px);
			zoom: 1;
			filter: alpha(opacity=0);
			-webkit-opacity: 0;
			-moz-opacity: 0;
			opacity: 0;
		}

		&.is-active {

			li {
				visibility: visible;
				zoom: 1;
				filter: alpha(opacity=100);
				-webkit-opacity: 1;
				-moz-opacity: 1;
				opacity: 1;
				-webkit-transform: translateY(0);
				transform: translateY(0);
				-webkit-transition-delay: 250ms;
				transition-delay: 250ms;
			}
		}
	}

	.penci-pfl-subcat-back a {
		-webkit-opacity: .5;
		-moz-opacity: .5;
		opacity: .5;

		i {
			display: inline-block;
			margin-right: 10px;
			zoom: 1;
			filter: alpha(opacity=0);
			-webkit-opacity: 0;
			-moz-opacity: 0;
			opacity: 0;
			transition: all 0.3s;
		}

		&:hover {
			zoom: 1;
			filter: alpha(opacity=100);
			-webkit-opacity: 1;
			-moz-opacity: 1;
			opacity: 1;

			i {
				zoom: 1;
				filter: alpha(opacity=100);
				-webkit-opacity: 1;
				-moz-opacity: 1;
				opacity: 1
			}
		}

	}
}

.subcategory-active.penci-portfolio-filter .penci-pfl-root-cats li {
	visibility: hidden;
	zoom: 1;
	filter: alpha(opacity=0);
	-webkit-opacity: 0;
	-moz-opacity: 0;
	opacity: 0;
	-webkit-transform: translateY(-20px);
	transform: translateY(-20px)
}
.penci_breadcrumbs  + .wrapper-penci-portfolio {
	margin-top: 20px;
}

.penci-portfolio-wrap {
	margin-left: -10px;
	margin-right: -10px;

	.inner-portfolio-posts {
		display: inline-block;
		width: 100%;
		vertical-align: top;
	}

	.portfolio-item {
		width: 33.33333%;
		padding: 0 10px;
		box-sizing: border-box;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		float: left;
		margin-bottom: 20px;
	}

	&.column-1 .portfolio-item {
		width: 100%;
	}
	&.column-2 .portfolio-item {
		width: 50%;
	}

	&.column-3 .portfolio-item {
		width: 33.33333%;
	}
	&.column-4 .portfolio-item {
		width: 25%;
	}
	&.column-5 .portfolio-item {
		width: 20%;
	}
	&.column-6 .portfolio-item {
		width: 16.6666667%;
	}

	.wow {
		visibility: hidden;
	}
}

.penci-portfolio-mix {
	.penci-portfolio-wrap {
		.portfolio-item {
			width: 25%;

			&:nth-child( 5n + 2 ) {
				width: 50%;
			}
		}
	}

	.penci-pfl-big-item .penci-plf-square .penci-image-placeholder {
		padding-bottom: 100% !important;
	}

	.penci-pfl-big-item .penci-plf-vertical .penci-image-placeholder {
		padding-bottom: 100% !important;
	}

	.penci-pfl-big-item .penci-plf-landscape .penci-image-placeholder {
		padding-bottom: 66.66667% !important;
	}
}

.inner-item-portfolio {
	position: relative;

	img {
		width: 100%;
		display: block;
	}
}

.penci-portfolio-thumbnail a:after {
	opacity: 0;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #000;
	content: "";
	-webkit-transition: .5s;
	transition: .5s;
	z-index: 10;
}

.inner-item-portfolio:hover .penci-portfolio-thumbnail a:after {
	opacity: 0.87;
}

.inner-item-portfolio .portfolio-desc {
	position: absolute;
	text-align: center;
	top: 50%;
	width: 100%;
	padding: 0 10px;
	margin: 0;
	z-index: 12;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	opacity: 0;
	visibility: hidden;
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
}

.inner-item-portfolio a {
	text-decoration: none !important;
}

.inner-item-portfolio .portfolio-desc h3 {
	opacity: 0;
	text-transform: none;
	font-size: 20px;
	margin-top: 0;
	margin-bottom: 4px;
	position: relative;
	-webkit-transform: translate(0, 10px);
	-ms-transform: translate(0, 10px);
	transform: translate(0, 10px);
	-webkit-transition: all .5s ease;
	transition: all .5s ease;
	color: $color__white;
}

.inner-item-portfolio .portfolio-desc span {
	opacity: 0;
	font-size: 12px;
	display: block;
	vertical-align: top;
	line-height: 1.3;
	text-decoration: none;
	-webkit-transform: translate(0, 20px);
	-ms-transform: translate(0, 20px);
	transform: translate(0, 20px);
	-webkit-transition: all .5s ease;
	transition: all .5s ease;
	color: #adadad;
}


.inner-item-portfolio .portfolio-desc span.amount,
.inner-item-portfolio .portfolio-desc span.amount span{
	display: inline-block;
}

.inner-item-portfolio:hover .portfolio-desc {
	visibility: visible;
	opacity: 1;
}

.inner-item-portfolio:hover .portfolio-desc h3,
.inner-item-portfolio:hover .portfolio-desc span {
	-webkit-transform: translate(0, 0);
	-ms-transform: translate(0, 0);
	transform: translate(0, 0);
	opacity: 1;
}

.penci-portfolio-below_img {
	.inner-item-portfolio .portfolio-desc {
		position: static;
		transform: none;
		padding: 0;
		margin-top: 11px;
		opacity: 1;
		visibility: visible;

		h3, span {
			opacity: 1;
			transform: none;
		}

		h3 {
			color: #111111;
		}

		a:hover h3 {
			color: $color__blue;
		}
	}

	.penci-portfolio-thumbnail {
		position: relative;
	}

	.inner-item-portfolio:hover .penci-portfolio-thumbnail a:after {
		opacity: 0.3;
	}
}

.single-portfolio-thumbnail {
	margin-bottom: 23px;
	text-align: center;
	vertical-align: top;

	img {
		vertical-align: top;
	}
}

.portfolio-page-content .portfolio-detail {
	margin: 0 auto;
}

.single-portfolio {
	.penci-social-buttons {
		text-align: center;
		margin-bottom: 0;
	}

	.penci-social-buttons + .post-comments {
		border-top: 1px solid $color__border;
	}

	.penci_breadcrumbs {
		margin-bottom: 7px;
	}

	&.single .entry-content {
		margin-bottom: 20px;
		margin-top: 11px;
	}
}

.single-portfolio.single .penci-plf-single-info .penci-entry-content {
	margin-top: 0;
	margin-bottom: 0;
}

.penci-plf-single-info {
	.penci-plf-info-inner {
		margin-top: -20px;
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: start;
		-webkit-align-items: flex-start;
		-ms-flex-align: start;
		align-items: flex-start;


	}

	.penci-plf-info {
		width: 100%;
		max-width: 400px;
		padding-left: 50px;
	}

	.penci-plf-desc {
		flex: 1;
	}


	.penci-col-inner {
		margin-top: 20px;
	}

	&.pfl_properties_block {
		.penci-plf-info-inner {
			display: block;
		}
		.penci-plf-desc,
		.penci-plf-info {
			max-width: 100%;
			width: 100%;
			padding-left: 0;
		}
	}
}

.penci-pfl-info-item {
	display: table;
	table-layout: fixed;

	.penci-pfl-info-label {
		min-width: 108px;
		font-weight: 600;
		display: table-cell;
		color: #111;
	}
	.penci-pfl-info-value {
		display: table-cell;
	}
	a {
		font-weight: 400;
	}
}

.penci-pagenavi-shortcode {
	li {
		list-style: none;
		display: inline-block;
		vertical-align: top;
		padding: 0;
		margin: 0;
	}

	.align-left li {
		float: left;
	}

	.align-right li {
		float: right;
	}
}

.entry-content .penci-portfolio-more-button {
	color: $color__white;

	&:hover {
		text-decoration: none;
	}
}

.penci-post-related {
	.inner-item-portfolio {
		opacity: 1 !important;
	}

	.inner-item-portfolio.animated {
		animation-name: none !important;
	}

	.wrapper-penci-portfolio {
		margin-bottom: -20px;
	}
}

.penci-portfolio-more-button {
	.ajax-more-finished {
		visibility: hidden;
		-webkit-transition: all .3s ease-in-out;
		transition: all .3s ease-in-out;
		opacity: 0;
		display: none;
	}

	.ajaxdot {
		-webkit-transition: all .3s ease-in-out;
		transition: all .3s ease-in-out;
	}

	&.penci-plf-loading-1 {
		.penci-portfolio-ajaxdot {
			font-size: 8px;
			width: 32px;
			margin: 0 auto 0 -16px;
			opacity: 0;
			top: 50%;
			height: 8px;
			left: 50%;
			z-index: -1;
			position: absolute;
			transform: translateY(-50%);
		}

		.dot {
			width: 1em;
			height: 1em;
			border-radius: .5em;
			background: #fff;
			position: absolute;
			-webkit-animation-duration: .6s;
			animation-duration: .6s;
			-webkit-animation-timing-function: ease;
			animation-timing-function: ease;
			-webkit-animation-iteration-count: infinite;
			animation-iteration-count: infinite
		}

		.dot1 {
			-webkit-animation-name: revealPortfolio;
			animation-name: revealPortfolio;
		}

		.dot2, .dot3 {
			-webkit-animation-name: slidePortfolio;
			animation-name: slidePortfolio;
		}

		.dot4 {
			left: 3em;
			-webkit-animation-name: revealbackPortfolio;
			animation-name: revealbackPortfolio;
		}

		.dot1, .dot2 {
			left: 0
		}

		.dot3 {
			left: 1.5em
		}
	}

	&.penci-plf-loading-2 {
		.penci-portfolio-ajaxdot {
			display: inline-block;
		    width: 30px;
		    height: 30px;
		    background-color: #111;
		    border-radius: 100%;
		    -webkit-animation: scaleoutPortfolio 1s infinite ease-in-out;
		    animation: scaleoutPortfolio 1s infinite ease-in-out;
		    z-index: 50;
		    opacity: 0;
		    position: absolute;
		    top:5px;;
		    left: 50%;
		    margin-left: -15px;
		    visibility: hidden;
		}

		.dot{
			display: none;
		}
	}

	

	&.is-finished {
		.ajax-more-finished {
			visibility: visible;
			opacity: 1;
			display: block;
		}

		.ajax-more-text {
			-webkit-transition-duration: 50ms;
			transition-duration: 50ms;
			zoom: 1;
			-webkit-opacity: 0;
			-moz-opacity: 0;
			opacity: 0;
			display: none;
		}

	}

	&.infinite,
	&.loading-posts {
		.penci-portfolio-ajaxdot {
			opacity: 1;
			z-index: 100;
			visibility: visible;
		}

		.ajax-more-text {
			opacity: 0;
			visibility: hidden;
		}

		&.penci-plf-loading-2{
			background: transparent !important;
			color: transparent !important;
			border-color: transparent !important;
		}
	}
}

.penci-pfl-no-trans {
	webkit-transition: none !important;
	transition: none !important;
}

.penci-pfl-no-opacity {
	opacity: 0 !important;
}

.penci-pfl-info-item {
	margin-bottom: 5px;

	&:last-child {
		margin-bottom: 0;
	}
}

.penci-pfl-social_share {
	padding-top: 27px;
	margin-top: 27px;
	margin-bottom: 0;
	border-top: 1px solid #ececec;

	.penci-social-item {
		padding-right: 16px;

		&:last-child {
			padding-right: 0;
		}
	}
}

.penci-pfl-related{
	padding-bottom: 20px;

	.post-related_content {
		margin-left: 0;
		margin-right: 0;
	}
}

.penci-pfl-pagination {
	width: 100%;
	margin-top: 60px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	&:after {
		content: '';
		display: table;
		clear: both;
		width: 100%;
	}

	.penci-pfl-prev,
	.penci-pfl-next {
		span{
			color: inherit;
			text-transform: none;
		}
	}

	.penci-pfl-prev {
		width: 42%;
		float: left;
	}

	.penci-pfl-back-wap {
		width: 16%;
		float: left;
		text-align: center;
	}

	.penci-pfl-back {
		width: 22px;
		display: inline-block;
		vertical-align: top;

		span {
			color: inherit;
		}
	}
	.penci-square-1,
	.penci-square-2 {
		width: 22px;
		height: 10px;
		display: block;
		position: relative;

		&:before,
		&:after {
			content: '';
			width: 10px;
			height: 10px;
			border-top: 10px solid;
			display: block;
			float: left;
		}

		&:after {
			float: right;
		}
	}

	.penci-square-2 {
		margin-top: 2px;
	}

	.penci-pfl-next {
		text-align: right;
		float: right;
		width: 42%;
	}
	.prev-title {
		font-size: 20px;
		line-height: 32px;
	}

	.fa {
		font-size: 32px;
		line-height: 32px;
	}
}

.working-only-mobile {
	display: none;
}

.penci-noclick {
	pointer-events: none;
	zoom: 1;

	.penci-pfl-next-title,
	.penci-pfl-prev-title {
		-webkit-opacity: .4;
		-moz-opacity: .4;
		opacity: .4;
	}

}

.penci-ajax-more {
	a.penci-portfolio-more-button{
		height: 40px;
		line-height: 40px;
		min-width: 180px;
		max-width: none;
		display: inline-block !important;
		vertical-align: top;
		width: auto;
		padding-left: 15px;
		padding-right: 15px;
	}

	&.penci-pag-center{
		text-align: center;
	}

	&.penci-pag-left{
		text-align: left;
	}

	&.penci-pag-right{
		text-align: right;
	}

}

@-webkit-keyframes revealPortfolio {
	from {
		-webkit-transform: scale(.001);
		transform: scale(.001)
	}

	to {
		-webkit-transform: scale(1);
		transform: scale(1)
	}
}

@keyframes revealPortfolio {
	from {
		-webkit-transform: scale(.001);
		transform: scale(.001)
	}

	to {
		-webkit-transform: scale(1);
		transform: scale(1)
	}
}

@-webkit-keyframes slidePortfolio {
	to {
		-webkit-transform: translateX(1.5em);
		transform: translateX(1.5em)
	}
}

@keyframes slidePortfolio {
	to {
		-webkit-transform: translateX(1.5em);
		transform: translateX(1.5em)
	}
}

@-webkit-keyframes revealbackPortfolio {
	from {
		-webkit-transform: scale(1);
		transform: scale(1)
	}

	to {
		-webkit-transform: scale(.001);
		transform: scale(.001)
	}
}

@keyframes revealbackPortfolio {
	from {
		-webkit-transform: scale(1);
		transform: scale(1)
	}

	to {
		-webkit-transform: scale(.001);
		transform: scale(.001)
	}
}

@-webkit-keyframes fadeInPortfolio {
	0% {
		top: 40px;
		opacity: 0
	}

	100% {
		top: 0;
		opacity: 1
	}
}

@keyframes fadeInPortfolio {
	0% {
		top: 40px;
		opacity: 0
	}

	100% {
		top: 0;
		opacity: 1
	}
}

.fadeInPortfolio {
	-webkit-animation-name: fadeInPortfolio;
	animation-name: fadeInPortfolio
}

@-webkit-keyframes scaleoutPortfolio {
    0% {
        -webkit-transform: scale(0)
    }

    100% {
        -webkit-transform: scale(1);
        opacity: 0
    }
}

@keyframes scaleoutPortfolio {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0)
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0
    }
}


.wow.fast {
	-webkit-animation-duration: .3s;
	animation-duration: .3s
}

.penci-image-placeholder{
	position: relative;
	display: block;
	background-color: #eee;

	&>img {
		position: absolute;
		display: block;
		max-width: 100%;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		image-rendering: auto;
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		-webkit-transform: translate3d(0,0,0);
		transform: translate3d(0,0,0);
		-webkit-filter: blur(0);
		filter: blur(0);
		opacity: 0;
	}

	.penci-lazyloaded {
		-webkit-animation: pencipflOpacityIn .4s cubic-bezier(0.5, -0.04, 0.47, 0.98) forwards;
		animation: pencipflOpacityIn .4s cubic-bezier(0.5, -0.04, 0.47, 0.98) forwards;
	}
}

.penci-image-placeholder.penci-lazyloaded-parent {
	-webkit-animation: pencipflBackgroundOut .4s cubic-bezier(0.5, -0.04, 0.47, 0.98) forwards;
	animation: pencipflBackgroundOut .4s cubic-bezier(0.5, -0.04, 0.47, 0.98) forwards;
}
@-webkit-keyframes pencipflBackgroundOut {
	to {
		background: 0 0
	}
}

@keyframes pencipflBackgroundOut {
	to {
		background: 0 0
	}
}

@-webkit-keyframes pencipflOpacityIn {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

@keyframes pencipflOpacityIn {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

@media only screen and (max-width: 1169px) {
	.penci-portfolio-wrap .portfolio-item {
		width: 50%;
	}

	.penci-portfolio.column-4 .portfolio-item,
	.penci-portfolio.column-6 .portfolio-item,
	.penci-portfolio.column-5 .portfolio-item {
		width: 33.333333%;
	}

}

@media only screen and (max-width: 960px) {
	.penci-portfolio.column-6 .portfolio-item,
	.penci-portfolio.column-5 .portfolio-item,
	.penci-portfolio.column-4 .portfolio-item,
	.penci-portfolio.column-3 .portfolio-item {
		width: 50%;
	}


}

@media only screen and (max-width: 768px) {
	.penci-portfolio-wrap .portfolio-item {
		width: 50% !important;
	}

	.working-only-pc {
		display: none;
	}

	.working-only-mobile {
		display: block;
	}

	.penci-plf-single-info {
		.penci-plf-info-inner {
			display: block;
		}
		.penci-plf-desc,
		.penci-plf-info {
			max-width: 100%;
			width: 100%;
			padding-left: 0;
		}
	}
}

@media only screen and (max-width: 600px) {
	.penci-portfolio-wrap .portfolio-item {
		width: 100% !important;
	}
}

