#gallery{
	width: 100%;
	text-align: center;
    padding-bottom: 40px;
}

.photo{
	display: inline-block;
    width: 32%;
    height: 270px;
	margin: 2px;
	overflow: hidden;
	position: relative;
}

.photo > div{
	width: 100%;
	height: 100%;
	background-position: center;
    background-size: cover;
    transition: all .5s;
    transform: scale(1.2) rotate(0deg);
}

.photo:hover > div{
	transform: scale(1);
}

.photo:hover > .black-glass{
	opacity: 1;
}

.black-glass{
	position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
}

@media only screen and (max-width: 599px) {
    .photo{
    	width: 90%;
	    height: 200px;
	    margin: 5px 0px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 767px){
    .photo{
    	width: 90%;
	    height: 200px;
	    margin: 5px 0px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px){
    .photo{
		width: 300px;
	}
}
