.gallery {
	position:fixed;
	text-align: center;
	top:0;
	left:0;
	background: rgba(0,0,0,0.8);
	z-index:98;
	height:100%;
	width:100%;
}

.gallery img {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	max-width: 1200px;
	max-height: 100%;
}

.gallery .close {
	position: fixed;
	right: 20px;
	top: 20px;
	display: block;
	width: 20px;
	height: 20px;
}

.gallery .left {
	position: fixed;
	left: 20px;
	top: 50%;
	display: block;
	width: 23px;
	height: 40px;
}

.gallery .right {
	position: fixed;
	right: 20px;
	top: 50%;
	display: block;
	width: 23px;
	height: 40px;
}

@media screen and (max-width: 1200px) {
	.gallery img {
		position: absolute;
		top: 50%;
		left: 50%;
		margin-right: -50%;
		transform: translate(-50%, -50%);
		max-width: 100%;
		max-height: 100%;
	}

	.gallery .close {
		position: fixed;
		right: 10px;
		top: 40px;
		display: block;
		width: 30px;
		height: 30px;
		border-radius: 5px;
		background: rgba(0,0,0,0.7);
	}

	.gallery .left {
		position: fixed;
		left: 10px;
		top: 50%;
		display: block;
		width: 50px;
		height: 50px;
		border-radius: 5px;
		background: rgba(0,0,0,0.7);
	}

	.gallery .right {
		position: fixed;
		right: 10px;
		top: 50%;
		display: block;
		width: 50px;
		height: 50px;
		border-radius: 5px;
		background: rgba(0,0,0,0.7);
	}
}

@media screen and (max-width: 512px) {
	.gallery .close {
		top: 70px;
	}
	
	.gallery .left {
		position: fixed;
		left: 10px;
		top: auto;
		bottom: 20px;
		display: block;
		width: 50px;
		height: 50px;
		border-radius: 5px;
		background: rgba(0,0,0,0.7);
	}

	.gallery .right {
		position: fixed;
		right: 10px;
		top: auto;
		bottom: 20px;
		display: block;
		width: 50px;
		height: 50px;
		border-radius: 5px;
		background: rgba(0,0,0,0.7);
	}
}