.flex-gallery {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
}

.image-rate {
	position: relative;
	overflow: hidden;
	height: 250px;
	margin: 10px;
	flex-grow: 1;
	transition: opacity 0.4s ease;
}

@media (max-width: 991px){
	.image-rate {
		margin: 5px;
		height: 200px;
	}
}

.image-rate img {
	width: auto;
	height: 100%;
	min-width: 100%;
	max-width: 100%;
	object-fit: cover;
	cursor: pointer;
}



.image-rate:before,.image-rate:after {
	content: '⤢';
	cursor: pointer;
	font-weight: bold;
	font-size: 28px;
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	text-align: center;
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	color: #fff;
	opacity: 0;
	transition: all 300ms ease-in;
}
.image-rate:before {
	content: '';
	height: 100%;
	background: rgba(0,0,0,0.8);
}

.image-rate:hover:before,.image-rate:hover:after{opacity: 1}

#fullimage {
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.8);
	cursor: -webkit-zoom-out;
	display: table;
	width: 100%;
	height: 100%;
}
#fullimage .close {
	position: fixed;
	top: -200px;
	left: auto;
	background: url(../img/work/close.png);
	background-repeat: no-repeat;
	width: 25px;
	height: 25px;
	display: block;
	background-size: 25px 25px;
	opacity: 1;
}
#fullimage .close:hover {
	opacity: 0.7;
}
#fullimage .imgInner {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
}
#fullimage img {
	max-width: 100%;
	max-height: 100%;
}
@media (max-width: 767px) {
	#fullimage {
		height: 100%;
		background: rgba(0,0,0,0);
	}
	#fullimage::before {
		content: "";
		position: fixed;
		z-index: -1;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0,0,0,0.8);
		cursor: -webkit-zoom-out;
		display: table;
		width: 100%;
		height: 120%;
	}
	
	#fullimage .close {
		width: 15px;
		height: 15px;
		background-size: 15px 15px;
	}
	.image-rate {
		width: calc(40%);
		height: 180px;
	}
}
@media (max-width: 450px) {
	.image-rate {
		height: 120px;
	}
}