ul.thumbs {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

ul.thumbs li {
    display: inline-block;
    height: 428px;
    overflow: hidden;
    padding: 0;
    float: left;
    position: relative;
	margin:100px 0 0px 0;
}
.portfolio-post-wrap a.thumbnail:hover {
	transform: scale(1.2);
	webkit-transition: all 2s ease 0s;
    -moz-transition: all 2s ease 0s;
    transition: all 2s ease 0s;

}
.portfolio-post-wrap a {
	webkit-transition: all 2s ease 0s;
    -moz-transition: all 2s ease 0s;
    transition: all 2s ease 0s;
}
.portfolio-post-wrap a.thumbnail {
	transform: scale(1);
	webkit-transition: all 2s ease 0s;
    -moz-transition: all 2s ease 0s;
    transition: all 2s ease 0s;
}
ul.thumbs li a.thumbnail {
	background-repeat: no-repeat;
	background-size: cover;
    background-color: #cecece;
    background-position-x: 50%;
	display: block;
	/*overflow: hidden;*/
    box-sizing: border-box;
		webkit-transition: all 2s ease 0s;
    -moz-transition: all 2s ease 0s;
    transition: all 2s ease 0s;
	z-index: 9;
    width: 100%;
    height: 100%;
	/*border-bottom: 6px solid #1b8ad4;*/
}

ul.thumbs li a.thumbnail h4 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 7px 10px;
    text-transform: uppercase;
    background-color: #efefef;
    color: #6b6b6b;
    font-size: 14px;
    margin: 0;
}

ul.thumbs li a.thumbnail .description {
    padding: 0;
    position: absolute;
    height: 100%;
    top: 100%;
    width: 100%;
    box-sizing: inherit;
    opacity: 1;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    color: #fff;
    /* background-color: rgba(255, 255, 255, 0.7); */
    font-size: 30px;
    background: rgba(27,138,212,0.88) !important;
    font-weight: 300;
    padding: 170px 12px;
    /* line-height: 10px; */
    box-sizing: inherit;
    text-align: center;
    font-family: Lato!important;
}

ul.thumbs li a.thumbnail .active-arrow {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 25px solid rgba(27,138,212,1);
    bottom: -2px;
    z-index: 99;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

@media (max-width: 970px)  {
	/*ul.thumbs li {
		width: 50% !important;
	}*/
	.media iframe{
		width: 100%;
	}
}

@media (max-width: 1200px) and (min-width: 970px) {
    ul.thumbs li {
        width: 33.3333% !important;
    }
	ul.thumbs li a.thumbnail .description {
		    padding: 140px 12px;
			font-size:25px;
	}
	ul.thumbs li {
		height: 320px;
		margin:50px 0 0px 0;
	}
}

ul.thumbs li a.thumbnail:hover .description {
	height: 100%;
	top: 0;
}

ul.thumbs li.content {
	width: 100% !important;
	display: none;
	margin-bottom: 40px;
	background: none;
	float: left;
    min-height: 250px;
	position: relative;
	padding: 35px 15px 0 15px !important;
	margin-top:0;
	height:auto;
	border-top:6px solid #1b8ad4;
}

ul.thumbs li.content h3 {
    display: inline-block;
}

ul.thumbs li.content .close {
    position: absolute;
    top: 16px;
    right: 12px;
    color: #c2c2c2;
    cursor: pointer;
    font-weight: bold;
    /* font-weight: normal; */
    font-family: -webkit-pictograph;
    font-size: 40px;
    line-height: 20px;
}

ul.thumbs li.content .close:hover {
    opacity: 0.7;
}

ul.thumbs li.content .media {
    display: inline-block;
    float: left;
    margin-right: 20px;
    width: 50%;
    min-height: 200px;
}

ul.thumbs li.content .media img {
    max-width: 100%;
}


.small-image {
	text-align:center;
}
.portfolio-content {
    display: none;
}
.image-bg {
    min-height: 280px;
    display: inline-block;
    position: relative;
    background-size: 100%!important;
    /*width: 22.5%;*/
    /*max-width:275px;*/
	min-width:344px;
	max-width:380px;
	margin:15px;
	box-shadow:0px 5px 21px 0px rgba(0, 0, 0, 0.1);
}
.image-bg a {
	display:inline;
}
.image-bg .image-shop-scroll {
    transition: all 3s ease-out 0s;
    -webkit-transition: all 3s ease-out 0s;
    -moz-transition: all 3s ease-out 0s;
    -ms-transition: all 3s ease-out 0s;
    -o-transition: all 3s ease-out 0s;
}

.image-bg .image-shop-scroll {
    background-position: center 0!important;
    background-repeat: no-repeat!important;
    background-size: 100%!important;
    position: absolute;
    width: 100%;
    min-height: 280px;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: #fff;
    border-radius: 0px;
}
.image-bg:hover .image-shop-scroll {
    background-position: center 100%!important;
}
@media (max-width: 1080px) {
	.close {
		/*right: 0 !important;*/
		top: 7px !important;
	}
	ul.thumbs .media {
		margin-right: 0;
		margin-bottom: 20px;
	}
}
@media (max-width: 590px) {
	ul.thumbs {
		text-align:center;
	}
	ul.thumbs li {
		    width: 90% !important;
			margin: 40px auto 0 auto;
			height: 300px;
			float: none;
	}
	ul.thumbs .media {
		display: none !important;
	}
	/*.image-bg {
		width:50%;
	}*/
	ul.thumbs li.content {
		float:none;
		margin-top: -11px !important;
		width:90% !important;
		padding:20px 0px !important; 
	}
	.image-bg {
		margin:15px 0px !important;
	}
}
@media (max-width: 700px) and (min-width: 590px) {
	ul.thumbs .media {
		width: 100% !important;
		display: block !important;
		margin-top: 60px;
	}
}
