/* ==========================================================================
# Image Gallery - begin
========================================================================== */

/* Image Gallery Grid - begin
========================================================================== */

.edgtf-image-gallery {

	.edgtf-grayscale .edgtf-gallery-image {

		img {
			-webkit-filter: grayscale(100%);
			-moz-filter: grayscale(100%);
			filter: gray;
			filter: grayscale(100%);
			filter: url(img/desaturate.svg#grayscale);
		}

		&:hover img {
			-webkit-filter: grayscale(0);
			filter: none;
		}
	}


	.edgtf-gallery-image {

		overflow:hidden;

		a {
			display:block;
			@include edgtfTransition(all 0.3s);
			backface-visibility: hidden;
			-webkit-backface-visibility: hidden;

			img {
				display: block;
			}
		}

		&:hover a {
			@include edgtfTransform(translateZ(0) scale(1.1, 1.1));
		}
	}

	.edgtf-gallery-grid-with-space.edgtf-gallery-columns-2 {

		.edgtf-gallery-image {
			width: 49%;
			margin-right: 2%;
			margin-bottom: 2%;
			display: inline-block;
			float: left;

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

			&:nth-child(2n+1) {
				clear: both;
			}

		}

	}

	.edgtf-gallery-grid-no-space.edgtf-gallery-columns-2 {

		.edgtf-gallery-image {
			width: 50%;
			display: inline-block;
			float: left;
		}
	}


	.edgtf-gallery-grid-with-space.edgtf-gallery-columns-3 {

		.edgtf-gallery-image {
			width: 32%;
			margin-right: 2%;
			margin-bottom: 2%;
			display: inline-block;
			float: left;

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

			&:nth-child(3n+1) {
				clear: both;
			}

		}

	}

	.edgtf-gallery-grid-no-space.edgtf-gallery-columns-3 {

		.edgtf-gallery-image {
			width: 33.333%;
			display: inline-block;
			float: left;
		}

	}

	.edgtf-gallery-grid-with-space.edgtf-gallery-columns-4 {

		.edgtf-gallery-image {
			width: 24%;
			margin-right: 1.33333%;
			margin-bottom: 1.33333%;
			display: inline-block;
			float: left;

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

			&:nth-child(4n+1) {
				clear: both;
			}

		}

	}

	.edgtf-gallery-grid-no-space.edgtf-gallery-columns-4 {

		.edgtf-gallery-image {
			width: 25%;
			display: inline-block;
			float: left;
		}

	}

	.edgtf-gallery-grid-with-space.edgtf-gallery-columns-5 {

		.edgtf-gallery-image {
			width: 19%;
			margin-right: 1.25%;
			margin-bottom: 1.25%;
			display: inline-block;
			float: left;

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

			&:nth-child(5n+1) {
				clear: both;
			}

		}

	}

	.edgtf-gallery-grid-no-space.edgtf-gallery-columns-5 {

		.edgtf-gallery-image {
			width: 20%;
			display: inline-block;
			float: left;
		}

	}

}

/* Image Gallery Grid - end
========================================================================== */

/* Image Gallery Slider - begin
========================================================================== */

.edgtf-image-gallery {

	a.slick-slide img{
		width: 100%;
		vertical-align: middle;
	}

	.edgtf-gallery-image-carousel{
		.slick-slide{
			margin: 0 15px;
			outline: none;
		}

		.slick-track{
			cursor: grab;
			cursor: -moz-grab;
			cursor: -webkit-grab;
		}
	}

}

/* Image Gallery Slider - end
========================================================================== */
/* ==========================================================================
# Image Gallery - end
========================================================================== */