.single-portfolio {
	.page-content {
		padding: 100px 0 0;
		background-color: #ffffff;
	}
	.post-video {
		margin-bottom: 30px;
	}
	.post-share {
		margin: 0 -8px;
		a {
			padding: 0 8px;
			font-size: 16px;
		}
	}
	.page-main-content {
		.tm-grid-wrapper {
			.grid-item,
			.grid-sizer {
				width: calc((100% - 60px) / 3);
			}
		}
	}
	.swiper-nav-button {
		margin-top: -60px;
		width: 60px;
		height: 120px;
		opacity: 0.9;
		text-align: center;
		font-size: 18px;
		font-weight: normal;
		line-height: 120px;
		color: #ffffff;
		&.swiper-button-disabled {
			opacity: 0.35;
		}
	}
	.swiper-button-prev {
		border-radius: 0 5px 5px 0;
		left: 0;
	}
	.swiper-button-next {
		border-radius: 5px 0 0 5px;
		right: 0;
	}

	.comment-form-wrap .comment-respond {
		margin-bottom: 90px;
	}

	.related-portfolio-wrap {
		background: rgba(238,238,238,1);
		background: -moz-linear-gradient(top, rgba(238,238,238,1) 0%, rgba(255,255,255,1) 100%);
		background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(238,238,238,1)), color-stop(100%, rgba(255,255,255,1)));
		background: -webkit-linear-gradient(top, rgba(238,238,238,1) 0%, rgba(255,255,255,1) 100%);
		background: -o-linear-gradient(top, rgba(238,238,238,1) 0%, rgba(255,255,255,1) 100%);
		background: -ms-linear-gradient(top, rgba(238,238,238,1) 0%, rgba(255,255,255,1) 100%);
		background: linear-gradient(to bottom, rgba(238,238,238,1) 0%, rgba(255,255,255,1) 100%);
	}
	.related-portfolio-title {
		margin: 100px 0 50px;
		text-align: center;
		font-size: 20px;
		font-weight: 700;
		.sub {
			display: block;
			font-size: 36px;
		}
	}

	.related-portfolio-list {
		margin-bottom: 100px;
	}

	.related-post-item {
		.post-thumbnail {
			> img {
				width: 100%;
			}
		}
		.post-overlay {
			@extend %transit;
			position: absolute;
			top: 0;
			left: 0;
			visibility: hidden;
			width: 100%;
			height: 100%;
			opacity: 0;
		}
		.post-overlay-content {
			@extend %transit;
			position: absolute;
			top: 0;
			left: 0;
			visibility: hidden;
			width: 100%;
			height: 100%;
			opacity: 0;
			box-sizing: border-box;
		}
		.post-overlay-info {
			position: absolute;
			bottom: 0;
			left: 0;
			width: 100%;
			padding: 20px 15px 50px 50px;
		}
		.post-overlay-title {
			transition: .5s ease-out .3s;
			transform: translateY(-20px);
			opacity: 0;
			a {
				font-weight: bold;
				font-size: 20px;
				color: #ffffff;
			}
		}
		.post-overlay-categories {
			transition: .5s ease-out .3s;
			transform: translateY(20px);
			opacity: 0;
			a {
				font-size: 15px;
				font-weight: 700;
				color: $secondary-color;
			}
		}
		&:hover {
			.post-overlay,
			.post-overlay-content {
				visibility: visible;
				opacity: .9;
			}
			.post-overlay-title, .post-overlay-categories {
				transform: translateY(0);
				opacity: 1;
			}
		}
	}
}

.portfolio-nav {
	margin-bottom: 50px;
	.prev-portfolio:before, .next-portfolio:after {
		font-family: FontAwesome;
		font-size: 18px;
		color: rgba(27,31,45,0.2);
	}
	.prev-portfolio:before {
		content: '\f053';
		margin-right: 15px;
	}
	.next-portfolio:after {
		content: '\f054';
		margin-left: 15px;
	}
	.all {
		color: rgba(27,31,45,0.2);
	}
	.prev-portfolio, .next-portfolio {
		a {
			font-size: 20px;
			font-weight: 700;
			color: $primary-color;
			&:hover {
				color: $secondary-color;
			}
		}
	}
}

.portfolio-details-style1 {
	.feature-wrap {
		padding-left: 30px;
	}
}

.portfolio-details-style2 {
	.feature-wrap {
		padding-right: 30px;
	}
}

.portfolio-details-style3 {
	margin-bottom: 20px;
}

.portfolio-details-style4 {
	.tm-swiper {
		margin-bottom: 45px;
	}
}

.portfolio-details-heading {
	margin-bottom: 20px;
	font-size: 36px;
}

.portfolio-details-content {
	padding-bottom: 50px;
}

.tm-button-view-project {
	text-transform: none !important;
	font-weight: normal !important;
	font-size: 18px !important;
}

.portfolio-details-list {
	@include clearfix;
	margin: 0;
	padding: 50px 0 20px;
	border-top: 1px solid #dddddd;
	li {
		list-style-type: none;
	}
	> li {
		float: left;
		margin-bottom: 30px;
		width: 50%;
	}
	a {
		color: #878c9b;
	}
	label,
	span {
		display: block;
	}
	label {
		margin-bottom: 11px;
		font-size: 16px;
		font-weight: 700;
	}
	.portfolio-categories {
		margin: 0;
		padding: 0;
		li {
			display: block;
			+ li {
				margin-top: 2px;
			}
		}
	}
}

.portfolio-details-gallery {
	img {
		margin-bottom: 30px;
	}
	.gallery-item {
		position: relative;
		margin-bottom: 30px;
		&:hover {
			.overlay {
				visibility: visible;
				opacity: .9;
			}
		}
		img {
			width: 100%;
		}
	}
	.overlay {
		@extend %transit;
		position: absolute;
		top: 0;
		left: 0;
		visibility: hidden;
		width: 100%;
		height: 100%;
		opacity: 0;
		> div {
			position: absolute;
			top: 50%;
			left: 50%;
			color: #ffffff;
			font-size: 32px;
			transform: translate(-50%, -50%);
		}
	}
}

.portfolio-details-social {
	@extend %clearfix;
	padding: 25px 0 50px;
	border-top: 1px solid #dddddd;
	.post-view,
	.post-likes {
		float: right;
		i {
			font-size: 15px;
		}
	}
	.post-view {
		i {
			color: #333a57;
		}
	}
	.post-likes {
		margin-left: 15px;
		.sl-button {
			padding-right: 0;
		}
		.sl-icon {
			margin-right: 5px;
		}
		.loader {
			margin-left: 10px;
		}
		a,
		a.liked {
			color: #e35667;
		}
	}
}

.portfolio-feature {
	margin-bottom: 30px;
}

.post-type-archive-portfolio {
	.tm-grid-pagination {
		text-align: center;
	}
}

@include media-breakpoint-only(md) {
	.portfolio-details-list {
		> li {
			width: 100%;
			float: none;
		}
	}
}

@include media-breakpoint-down(sm) {
	.single-portfolio {
		.page-main-content {
			.tm-grid-wrapper {
				.grid-item,
				.grid-sizer {
					width: calc((100% - 30px) / 2);
				}
			}
		}
		.swiper-nav-button {
			margin-top: -25px;
			width: 50px;
			height: 50px;
			text-align: center;
			font-size: 30px;
			line-height: 50px;
		}
		.swiper-button-prev {
			left: 20px;
		}
		.swiper-button-next {
			right: 20px;
		}
	}
	.portfolio-details-style1,
	.portfolio-details-style2,
	.portfolio-details-style3 {
		.feature-wrap {
			padding: 0;
		}
	}
	.portfolio-details-style4 {
		.tm-swiper {
			margin-bottom: 50px;
		}
	}
	.portfolio-details-style5 {
		.tm-popup-video {
			margin-bottom: 50px;
		}
	}
}

@include media-breakpoint-down(xs) {
	.single-portfolio {
		.page-main-content {
			.tm-grid-wrapper {
				.grid-item,
				.grid-sizer {
					width: 100%;
				}
			}
		}
	}
	.portfolio-details-list {
		li {
			float: none;
			margin-bottom: 10px;
			width: 100%;
		}
	}
}
