.nextgen_pro_thumbnail_grid {
	text-align: center;
	width: 100%;
	max-width: 100% !important;
	display:flex!important;
}
/* ensure legacy styles available */
.ngg-galleryoverview {
    overflow: hidden;
    margin-top: 10px;
    width: 100%;
    clear: both;
    display: block !important;
}
.ngg-galleryoverview .desc {
    /* required for description */
    margin: 0px 10px 10px 0px;
    padding: 5px;
}
.ngg-gallery-thumbnail-box {
    float: left;
    max-width: 100% !important;
}
/*.ngg-template-caption .ngg-gallery-thumbnail-box {
		border: 1px solid #a9a9a9;
}*/
.ngg-gallery-thumbnail {
    max-width: 100% !important;
    background-color: #FFFFFF;
    border: 1px solid #A9A9A9;
    margin-right: 5px;
    margin: 5px;
}
.ngg-template-caption .ngg-gallery-thumbnail {
    margin-right: 0px;
}
.ngg-gallery-thumbnail-box a {
		color:#333!important;
		display: block;
    width: 220px !important;
  	margin: .75% !important; 	
  	padding: 4px 5px 2px 3px;
    box-shadow: none;
}
.ngg-gallery-thumbnail-box img {
    display: block;
    margin: 3px;
    position: relative;
    max-width: 100% !important;
    height: auto;
}
.ngg-gallery-thumbnail-box span {
    /* Images description */
		color:#333!important;
	  padding: 2px 5px;
    display: table;
		text-align:center;
		width:100%;
}
.ngg-gallery-thumbnail img {border: 1px solid #fff!important;padding:0px!important;}
.ngg-gallery-thumbnail span {
	background-color:transparent;}
}
.ngg-gallery-thumbnail-box a.ngg-simplelightbox {
	border:1px solid #fff!important;
}

/* Customized: Pro Thumbnail Templates */
/* caption style 2 - shows image title & description */
.nextgen_pro_thumbnail_grid.pro-thumbnail-caption-template-2 .image-wrapper {
    max-width: 215px !important;
	width: 31.5% !important;
  	margin: .75% !important; 	
  	border: 1px solid #a9a9a9;
    padding: 5px 5px 2px;
    vertical-align: top;
}

.nextgen_pro_thumbnail_grid.pro-thumbnail-caption-template-2 h4 {
    font-size: 14px!important;
		font-weight:400;
		color:#333;
  	letter-spacing: 1px;
		line-height:14px!important;
		margin-top:2px;
		margin-bottom:2px;
		text-transform: capitalize;
}

.nextgen_pro_thumbnail_grid.pro-thumbnail-caption-template-2 .ngg-caption {
    padding: 4px;
    font-size: 13px;
  	line-height: 1;
    word-break: break-word;
}


/* caption style 1 - only shows description, not image title */
.nextgen_pro_thumbnail_grid.pro-thumbnail-caption-template .image-wrapper {
    max-width: 215px !important;
		width: 31.5% !important;
  	margin: .75% !important;
  	border: 1px solid #a9a9a9;
    padding: 5px;
    vertical-align: top;
}
.nextgen_pro_thumbnail_grid.pro-thumbnail-caption-template .ngg-caption {
    padding-top: 0px;
    font-size: 13px;
  	line-height: 1.0!important;
    word-break: break-word;
}