/*
Description: Style CSS Main
Plugin: FAST GALLERY
Author: Ad-theme.com
*/
.gallery.fastgallery {
	margin-bottom: 20px;
	text-rendering:optimizelegibility;
}
.fg-gallery-item a {
	display:block;
}
.gallery.fastgallery .fg-gallery-caption {
	font-style:normal;
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;	
}
.fastgallery .fg-gallery-item {
	float: left;
	margin: 0 4px 4px 0!important;
	overflow: hidden;
	position: relative;
	-moz-hyphens: none;
    word-wrap: normal;
}
.fastgallery.gallery .fastgallery-gallery-icon .fg_zoom {
	position:relative;
	overflow:hidden;
}
.fastgallery.gallery .fastgallery-gallery-icon {
	overflow:hidden;
	position:relative;
}
.fastgallery.gallery {
	line-height:0;
	margin:0;
	padding:0;
}
.fastgallery.gallery .fastgallery-gallery-icon img {
	width:100%;
	max-width:100%;
	padding:0;
	height:auto;
	border:0px;	
}
.fastgallery.gallery .fastgallery-gallery-icon .fg_zoom a {
	position:absolute;
	bottom:0;
    font-size: 20px;
    position: absolute;
    text-decoration: none;
	opacity:0;
	height:100%;
	width:100%;
	 -webkit-transition: all .55s ease-in;
	  -moz-transition: all .55s ease-in;
	  -ms-transition: all .55s ease-in;
	  -o-transition: all .55s ease-in;
	  transition: all .55s ease-in;			
}

.fastgallery .fg-gallery-item a, .fastgallery .fg-gallery-caption {
	width:100%;
	max-width:100%;	
	overflow:hidden;
}
.fastgallery.gallery-columns-1 .fg-gallery-item {
	max-width: 100%;
}

.fastgallery.gallery-columns-2 .fg-gallery-item {
	max-width: 48%;
	max-width: -webkit-calc(50% - 4px);
	max-width:         calc(50% - 4px);
}

.fastgallery.gallery-columns-3 .fg-gallery-item {
	max-width: 32%;
	max-width: -webkit-calc(33.3% - 4px);
	max-width:         calc(33.3% - 4px);
}

.fastgallery.gallery-columns-4 .fg-gallery-item {
	max-width: 23%;
	max-width: -webkit-calc(25% - 4px);
	max-width:         calc(25% - 4px);
}

.fastgallery.gallery-columns-5 .fg-gallery-item {
	max-width: 19%;
	max-width: -webkit-calc(20% - 4px);
	max-width:         calc(20% - 4px);
}

.fastgallery.gallery-columns-6 .fg-gallery-item {
	max-width: 15%;
	max-width: -webkit-calc(16.7% - 4px);
	max-width:         calc(16.7% - 4px);
}

.fastgallery.gallery-columns-7 .fg-gallery-item {
	max-width: 13%;
	max-width: -webkit-calc(14.28% - 4px);
	max-width:         calc(14.28% - 4px);
}

.fastgallery.gallery-columns-8 .fg-gallery-item {
	max-width: 11%;
	max-width: -webkit-calc(12.5% - 4px);
	max-width:         calc(12.5% - 4px);
}

.fastgallery.gallery-columns-9 .fg-gallery-item {
	max-width: 9%;
	max-width: -webkit-calc(11.1% - 4px);
	max-width:         calc(11.1% - 4px);
}
@media only screen and (min-width : 1025px) {
	.fastgallery.gallery-columns-1 .fg-gallery-item:nth-of-type(1n),
	.fastgallery.gallery-columns-2 .fg-gallery-item:nth-of-type(2n),
	.fastgallery.gallery-columns-3 .fg-gallery-item:nth-of-type(3n),
	.fastgallery.gallery-columns-4 .fg-gallery-item:nth-of-type(4n),
	.fastgallery.gallery-columns-5 .fg-gallery-item:nth-of-type(5n),
	.fastgallery.gallery-columns-6 .fg-gallery-item:nth-of-type(6n),