.gallery {
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
	width: 100%;
	margin-top: 3.25rem;
	margin-bottom: 2.25rem;
	overflow: hidden;
	position: relative;
	cursor: move;
	cursor: grab;
}
/*.gallery::before, .gallery::after {
	content: '';
	display: block;
	width: 10%;
	height: 100%;
	position: absolute;
	top: 0;
	z-index: 1;
}
.gallery::before {
	left: 0;
	background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
}
.gallery::after {
	right: 0;
	background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
}*/
.photos {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	height: 45rem;
	flex-basis: 275rem;
	flex-shrink: 0;
	z-index: 0;
	/*transition: .5s ease;*/
}
.gallery .photo {
	display: block;
	width: 21rem;
	height: 14rem;
	position: relative;
	overflow: hidden;
	margin: 2rem;
	cursor: pointer;
	transition: .3s ease;
	box-shadow: 0 0 0 rgba(0,0,0,.2);
}
.gallery .photo:nth-child(4n+2), .gallery .photo:nth-child(4n+3) {
	height: 21rem;
}
.gallery .photo:hover {
	transform: scale(1.1);
	box-shadow: 0 1rem 1.8rem rgba(0,0,0,.2);
}

.gallery .photo img {
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	max-width: 32rem;
	max-height: 32rem;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}
.gallery #prevent {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 1;
}
.gallery.moving #prevent {
	display: block;
}

@media (max-width: 1024px) {
	.gallery {
		margin-bottom: 0;
	}
	.photos {
		flex-basis: 225rem;
		height: 35.5rem;
	}
	.gallery .photo {
		width: 16.5rem;
		height: 11rem;
		margin: 1.5rem
	}
	.gallery .photo:nth-child(4n+2), .gallery .photo:nth-child(4n+3) {
		height: 16.5rem;
	}
	.gallery .photo img {
		max-width: 25rem;
		max-height: 25rem;
	}
}
@media (max-width: 668px) {
	.gallery {
		margin-top: 0;
		margin-bottom: 1rem;
	}
	.photos {
		flex-basis: 112rem;
		height: 18.75rem;
	}
	/*.gallery {
		overflow-x: scroll;
	}*/
	.gallery .photo {
		width: 8.25rem;
		height: 5.5rem;
		margin: 1rem;
	}
	.gallery .photo:nth-child(4n+2), .gallery .photo:nth-child(4n+3) {
		height: 8.25rem;
	}
	.gallery .photo img {
		max-width: 12.5rem;
		max-height: 12.5rem;
	}
}
