body {
	width: 100%;
/*	height: 100vh;*/
/*	padding: 0;*/
	padding-top: 25px;
	margin: 0;
	display: flex;
	flex: 1;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.wrap,
.gallery,
.img {
	width: 1013px;
	height: 570px;
	margin: 0;
	padding: 0;
}

.wrap {
	position: relative;
	border: 2px solid #000;
	padding: 20px;
}

.gallery {
	position: relative;
	display: flex;
	z-index: 1;
	flex-direction: column;
}

.img {
	min-width: 100%;
	display: block;
	cursor: pointer;
}

.gallery__resize,
.gallery__resize:after {
	position: absolute;
	top: 0;
	cursor: pointer;
}

.gallery__resize {
	left: 0;
	width: 50%;
	overflow: hidden;
}

.tr {
	transition: 0.6s;
}

.gallery__resize:after {
	content: "";
	width: 4px;
	background-color: #fff;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
	box-sizing: border-box;
	position: absolute;
	right: 0;
	height: 100%;
	z-index: 20;
}

#before, 
#after {
	position: absolute;
	z-index: 100;
	font-size: 16px;
	border: 1px solid #000;
	padding: 10px 20px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
}

#before {
	left: -100px;
}

#after {
	right: -100px;
}

#left,
#right,
#photo-count {
	position: absolute;
	font-size: 18px;
}

#left {
	bottom: -40px;
	left: 990px; /*506*/
}

#right {
	right: 20px;
	bottom: -40px;
}

#photo-count {
	font-size: 24px;
	bottom: -60px;
}

.wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 60px;
}

.cards {
	margin-right: 10px;
}

.card {
	height: 84px;
}

.selected {
	border: 2px solid blue;
}

.choose {
	border: 2px solid yellow;
}

@media ( max-width: 1280px) {
	.wrap, .gallery, .img {
		height: 400px;
		width: 711px;
	}

	#left {
		left: 690px;
	}

	.card {
		height: 100px;
	}

}

@media (max-width: 991px) {
	.gallery {
		width: 711px;
	}

	#before, 
	#after {
		top: 470px;
	}

	#before {
		left: 290px;
	}

	#after {
		right: 290px;
	}

	.card {
		height: 80px;
	}
}

@media (max-width: 767px){
	/*body {
		height: 60vh;
	}*/

	.wrap, .gallery, .img {
		height: 290px;
		width: 515px;
	}

	.gallery {
		width: 515px;
	}

	#before, 
	#after {
		top: 360px;
	}

	#before {
		left: 190px;
	}

	#after {
		right: 190px;
	}

	#left {
		left: 490px;
	}
}

@media (max-width: 575px) {
}
