
.gallery .images .image {
	position: relative;
	max-width: 800px;
	padding-bottom:100%;  /*change this value to adj the aspect ratio of main image window*/
	height: 0;
	overflow: hidden;
	display: none;
	border-radius: 0px;
	/*box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);*/
	}


.gallery {
	background-color:#eee;
	padding:20px 20px 20px 20px;
	border-top:3px solid #eee;
	border-bottom:3px solid #eee;
	}


.active {
/*background-color:red;*/
margin:0 auto;
	}


.images{
/*background-color:green;*/
	}


.content{
/*background-color:blue;*/
	}


.thumbs{
/*background-color:yellow;*/
	}


.thumb{
/*background-color:purple;*/
	}


.gallery .images .image.active {
	display: block;
	}


.gallery .images .image .content {
	position: absolute;
	width: 100%;
	height: 100%;
	background: center no-repeat;
	background-size: contain;
	}


.thumb {
	padding:5px;
	border:1px solid #eee4e5;
	background-color:#cccccc;
	}


.gallery .thumbs {
	margin-top: 10px;
	display: inline-block;
	width: 100%;
	text-align: center;
	}


.gallery .thumbs .thumb {
	box-sizing: border-box;
	background: center no-repeat;
	background-size: cover;
	display: inline-block;
	position: relative;
	margin: 4px;
	border: 3px solid transparent;
	width: 100px;
	height: 100px;
	cursor: pointer;
	}


.gallery .thumbs .thumb:before {
	content: '';
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid transparent;
	position: absolute;
	left: 45px;
	top: -8px;
	}


.gallery .thumbs .thumb.active {
	border-color: silver;
	}


.gallery .thumbs .thumb.active:before {
	border-bottom-color: silver;
	}




/*--------------Media Queries---------------*/




@media (max-width: 768px) {


.gallery .thumbs {
	height: 80px;
	overflow-x: auto;
	overflow-y: hidden;
	}


.gallery{
	padding:20px 20px 20px 20px;
	}


.gallery .thumbs .thumb {
	width: 55px;
	height: 55px;
	}


.gallery .thumbs .thumb:before {
	left: 25px;
	}
	
	}


