.gallery{
    position: relative;
    width: 100%;
    max-width: 1600px;
    padding: 0 10px 40px 10px;
    margin: 0 auto;
}

.gallery .filtr-item {
    height: 280px;
    padding: 0!important;
    margin: 0!important;
    width: 25%;
    display: inline-block;
    float: left;
    cursor: pointer;
    color: white;
    font-size: 30px;
    text-decoration: none;
    text-shadow: 1px;
}

.gallery .filtr-item:hover {
    color: white;
}

.gallery .filtr-item img{
    height: 100%!important;
    width: 100%;
    border: none;
}

.gallery .filtr-item .image_title{
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.item-desc {

    color: white;
    position: absolute;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    z-index: 1;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.gallery .simplefilter{
    text-align: center;
    padding: 60px 0;
}

/* Filter controls */
.gallery .simplefilter li {
    font-size: 17.642px;
  font-family: "Roboto";
  font-weight: 300;
  color: rgb(93, 90, 90);
  line-height: 1.2;

  border-top: 1px solid rgb(140, 49, 44);
  border-right: 1px solid rgb(140, 49, 44);
  border-bottom: 1px solid rgb(140, 49, 44);


    cursor: pointer;
    display: inline-block;

    padding: 1rem 2rem;
    margin: 0 -2px;
}

.gallery .simplefilter li:nth-child(1) {

  border-left: 1px solid rgb(140, 49, 44);

}

.gallery .simplefilter li.active {
   background-color: rgb(140, 49, 44);
   color: white;
}

.gallery .filtr-container > a:hover .overlay{
	display: block;
}
.gallery .filtr-item .overlay{
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width:100%;
	background-color: rgba(0,0,0,0.5);
	color: #fff;
	padding: 10%;
	text-overflow:ellipses;
	cursor: pointer;
	align-items:center;
	justify-content: center;
}
.gallery .filtr-item .overlay img{
	width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    left: 50%;
    margin-left: -20px;
}
.gallery .filtr-item .overlay h1{
	text-transform: capitalize;
	font-size: 30px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.gallery .filtr-item .overlay h1{
    text-overflow: ellipsis;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 27px;
    text-decoration: underline;
}

@media only screen and (max-width: 1023px) {
    .gallery .filtr-item {
        height: 200px;
        width: 33%;
    }
}

@media only screen and (max-width: 767px) {
    .gallery .filtr-item {
        height: 150px;
        width: 50%;
    }
}
