ul.thumbs {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

ul.thumbs li {
    display: inline-block;
    height: 300px;
    overflow: hidden;
    border:4px solid transparent;
    padding: 0;
  
    float: left;
    position: relative;
    border-radius:5px;
}

ul.thumbs li a.thumbnail {
	background-repeat: no-repeat;

    background-color:#d9c77e;
    background-size:contain;
    background-position: center center;
	display: block;
	/*overflow: hidden;*/
    box-sizing: border-box;
	transition: opacity 0.3s;
	-webkit-transition: opacity 0.3s;
	-moz-transition: opacity 0.3s;
	z-index: 9;
    width: 100%;
    height: 100%;
}

ul.thumbs li a.thumbnail h4 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 7px 10px;
font-family: 'Open Sans,sans-serif';
    background-color:rgb(30,30,30);
    color: #d9c77e;
    font-size: 14px;
    margin: 0;
}

ul.thumbs li a.thumbnail .description {
    padding: 0;
    position: absolute;
    height: 0;
    bottom: 0;
    width: 100%;
    box-sizing: inherit;
    opacity: 0;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    color: #333333;
    background-color: rgba(30, 30, 30, 0.9);
    font-size: 18px;
    padding: 18px 12px;
    line-height: 10px;
    box-sizing: inherit;
    text-align: center;

}

ul.thumbs li a.thumbnail .active-arrow {
    width: 0;
   
    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%;
	}
	ul.thumbs li.content {
	width: 100% !important;
	display: none;
	margin-bottom: 40px;
	background: none;
	float: left;
    height: 300px;
	position: relative;
	padding: 45px 0 45px;
}
}

@media (max-width: 1200px) and (min-width: 970px) {
    ul.thumbs li {
        width: 33.3333% !important;
    }
}

ul.thumbs li a.thumbnail:hover .description {
	height: 50px;
	opacity: 1;
}

ul.thumbs li.content {
	width: 100% !important;
	display: none;
	margin-bottom: 40px;
	background: none;
	float: left;
    height: auto;
	position: relative;
	padding: 45px 0 45px;
}
@media (max-width: 970px)  {
	ul.thumbs li {
		width: 50% !important;
	}
	.media iframe{
		width: 100%;
	}
	ul.thumbs li.content {
	width: 100% !important;
	display: none;
	margin-bottom: 40px;
	background: none;
	float: left;
    height: auto;
	position: relative;
	padding: 45px 0 45px;
}
}

ul.thumbs li.content h3 {
    display: inline-block;
}

ul.thumbs li.content .close {
    position: absolute;
    top: 0;
    right: 0;
    color: #c2c2c2;
    cursor: pointer;
    font-weight: normal;
    font-family: -webkit-pictograph;
    font-size: 76px;
    line-height: 70px;
}

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%;
}

@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 li {
		width: 100% !important;
	}
	ul.thumbs .media {
		display: none !important;
	}
	ul.thumbs li a.thumbnail h4 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2px 2px;
font-family: 'Open Sans,sans-serif';
    background-color:rgb(30,30,30);
    color: #d9c77e;
    font-size: 14px;
    margin: 0;
}
}
@media (max-width: 700px) and (min-width: 590px) {
	ul.thumbs .media {
		width: 100% !important;
		display: block !important;
		margin-top: 60px;
	}
	ul.thumbs li a.thumbnail h4 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2px 2px;
font-family: 'Open Sans,sans-serif';
    background-color:rgb(30,30,30);
    color: #d9c77e;
    font-size: 14px;
    margin: 0;
}
}

.portfolio-content {
    display: none;
    background-color: black;
}