.works__content {
	padding-top: 30px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 50px;
}
.works__cards {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 40px 1fr;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}
.works__card {
	position: relative;
	cursor: pointer;
}
.works__card-wrapper {
	padding-top: 77%;
}
.works__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.works__image.wimage1 {
	z-index: 3;
	padding: 20px 20px 0 0;
}
.works__image.wimage2 {
	z-index: 2;
	padding: 0 0 20px 20px;
}
.works__image-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border-radius: 20px;
	overflow: hidden;
}
.works__image.wimage1 .works__image-wrapper::before {
	content: 'Смотреть';
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	font-size: 28px;
	font-weight: 600;
	line-height: 100%;
	color: var(--white);
	background: rgba(0, 0, 0, .6);
	opacity: 0;
	visibility: hidden;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}
.works__image.wimage2 .works__image-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .6);
	opacity: 0;
	visibility: hidden;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}
.works__image-wrapper img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	-webkit-transform: scale(1.001);
	transform: scale(1.001);
}
.before-after .works__image-wrapper img {
	-o-object-position: top;
	object-position: top;
}
.works__info {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 3;
	padding: 80px 25px 40px;
	width: 100%;
	background: -webkit-gradient(linear, left bottom, left top, from(rgb(0, 0, 0)), to(rgba(0, 0, 0, 0)));
	background: linear-gradient(0deg, rgb(0, 0, 0), rgba(0, 0, 0, 0));
}
.works__info h3 {
	color: var(--white);
}

@media screen and (max-width: 1023px) {
	.works__cards {
		gap: 20px;
	}
}
@media screen and (max-width: 720px) {
	.works__cards {
		-ms-grid-columns: (1fr)[1];
		grid-template-columns: repeat(1, 1fr);
	}
}
@media screen and (max-width: 550px) {
	.works__info {
		padding: 50px 15px 25px;
	}
}


@media screen and (min-width: 1024px) {
	.works__card:hover .works__image.wimage1 .works__image-wrapper::before,
	.works__card:hover .works__image.wimage2 .works__image-wrapper::before {
		opacity: 1;
		visibility: visible;
	}
}