/* ==========================================================================
# Portfolio Single Gallery - begin
========================================================================== */

.gallery {
	.edgtf-portfolio-single-media a {
		position: relative;
		overflow: hidden;
		display: block;

		.edgtf-portfolio-gallery-text-holder,
		.edgtf-portfolio-single-media a span {
			display: none;
		}

		.edgtf-portfolio-gallery-text-holder-inner {
			position: relative;
			display: table;
			width: 100%;
			height: 100%;
		}

		.edgtf-portfolio-gallery-text-holder-inner h4 {
			display: table-cell;
			vertical-align: middle;
			text-align: center;
			color: #fff;
			width: 100%;
			height: 100%;
		}

		img {
			display: block;
		}

		&:hover {

			.edgtf-portfolio-gallery-text-holder {
				opacity: 1;
			}

		}

	}

	&.edgtf-portfolio-single-holder {
		.edgtf-portfolio-related-holder {
			margin-top: 59px;
		}
	}

	.edgtf-portfolio-gallery{
		margin-bottom: 12px;
	}

	&.edgtf-portfolio-single-holder .edgtf-portfolio-title{
		margin-bottom: 13px;
	}
}

.gallery.edgtf-portfolio-gallery-three-columns {

	.edgtf-portfolio-single-media {
		width: 32%;
		margin-right: 2%;
		margin-bottom: 2%;
		float: left;

		&:nth-child(3n) {
			margin-right: 0;
		}
	}

}

.gallery.edgtf-portfolio-gallery-two-columns {

	.edgtf-portfolio-single-media {
		width: 49%;
		margin-right: 2%;
		margin-bottom: 2%;
		float: left;

		&:nth-child(2n) {
			margin-right: 0;
		}
	}

}

.gallery.edgtf-portfolio-gallery-four-columns {

	.edgtf-portfolio-single-media {
		width: 24%;
		margin-right: 1.333333%;
		margin-bottom: 2%;
		float: left;

		&:nth-child(4n) {
			margin-right: 0;
		}
	}

}

.gallery .edgtf-portfolio-single-media a .edgtf-portfolio-gallery-text-holder, .gallery .edgtf-portfolio-single-media a span {
	display: none;
}



/* ==========================================================================
# Portfolio Single Gallery - end
========================================================================== */