/* Results Gallery — tabs + video + photo */

.results_gallery_section
{
	padding-top: 80px;
	padding-bottom: 80px;
	background: #f8f9fa;
}

/* Tabs */

.results_tabs
{
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 30px;
}
.results_tab
{
	padding: 10px 28px;
	border: 2px solid #57ccc3;
	border-radius: 25px;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	color: #57ccc3;
	cursor: pointer;
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	transition: all 200ms ease;
}
.results_tab:hover
{
	background: rgba(87,204,195,0.1);
}
.results_tab.active
{
	background: #57ccc3;
	color: #fff;
}
.results_tab i
{
	margin-right: 6px;
}

/* Tab content */

.results_tab_content
{
	display: none;
	margin-top: 40px;
}
.results_tab_content.active
{
	display: block;
}

/* Photo compare */

.photo_compare_wrapper
{
	position: relative;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}
.photo_compare_slide
{
	display: none;
}
.photo_compare_slide.active
{
	display: block;
}
/* Структурные правила слайдера сравнения (свои, без стороннего плагинного CSS —
   у него глобальные body/a/img правила, которые ломают фон сайта). */
.photo_compare_slide .cd-image-container
{
	position: relative;
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	overflow: hidden;
}
.photo_compare_slide .cd-image-container > img
{
	width: 100%;
	display: block;
}
.photo_compare_slide .cd-resize-img
{
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	overflow: hidden;
}
.photo_compare_slide .cd-resize-img img
{
	position: absolute;
	right: 0;
	top: 0;
	display: block;
	height: 100%;
	width: auto;
	max-width: none;
}
.photo_compare_slide .cd-handle
{
	position: absolute;
	z-index: 5;
	left: 50%;
	top: 50%;
	width: 60px;
	height: 60px;
	margin-left: -30px;
	margin-top: -30px;
	border-radius: 50%;
	cursor: move;
	background: #57ccc3 url("../images/arrows.png") no-repeat center center;
	opacity: 1;
	transform: translate3d(0,0,0) scale(1);
}
.photo_compare_slide .cd-handle.draggable
{
	background-color: #fd556d;
}
.photo_compare_slide .cd-image-label
{
	position: absolute;
	bottom: 0;
	right: 0;
	opacity: 1;
	transform: translateY(0);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 10px 16px;
	background: rgba(0,0,0,0.5);
	color: #ffffff;
	border-radius: 4px;
	z-index: 2;
}
.photo_compare_slide .cd-image-label[data-type="original"]
{
	bottom: 12px;
	left: 12px;
	right: auto;
}
.photo_compare_slide .cd-resize-img .cd-image-label
{
	bottom: 12px;
	right: 12px;
	left: auto;
}

/* Название операции — под сравнением, отдельной плашкой:
   поверх снимка подпись перекрывалась шторкой и читалась только на «до» */
.photo_compare_slide .ba_caption
{
	margin-top: 18px;
	text-align: center;
}
.photo_compare_slide .ba_caption span
{
	display: inline-block;
	max-width: 92%;
	padding: 10px 24px;
	border-radius: 24px;
	background: rgba(47, 182, 172, 0.12);
	color: #22615c;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}
@media only screen and (max-width: 575px)
{
	.photo_compare_slide .ba_caption
	{
		margin-top: 12px;
	}
	.photo_compare_slide .ba_caption span
	{
		padding: 8px 16px;
		font-size: 13px;
	}
}

/* Photo arrows */

.photo_compare_arrow
{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #57ccc3;
	border: none;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(87,204,195,0.4);
	-webkit-transition: all 200ms ease;
	-moz-transition: all 200ms ease;
	transition: all 200ms ease;
}
.photo_compare_arrow:hover
{
	background: #404040;
}
.photo_compare_arrow i
{
	color: #fff;
	font-size: 18px;
}
.photo_compare_prev
{
	left: -70px;
}
.photo_compare_next
{
	right: -70px;
}
.photo_compare_counter
{
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
	font-weight: 600;
	color: #878787;
}

/* Responsive */

@media only screen and (max-width: 991px)
{
	.photo_compare_prev { left: 10px; }
	.photo_compare_next { right: 10px; }
	.photo_compare_arrow { background: rgba(87,204,195,0.85); }
}
@media only screen and (max-width: 767px)
{
	.results_gallery_section { padding-top: 50px; padding-bottom: 50px; }
	.results_tabs { gap: 8px; }
	.results_tab { padding: 8px 20px; font-size: 14px; }
	.photo_compare_arrow { width: 40px; height: 40px; }
	.photo_compare_prev { left: 5px; }
	.photo_compare_next { right: 5px; }
	.photo_compare_wrapper { max-width: 100%; }
	.photo_compare_slide .cd-image-label
	{
		font-size: 12px;
		padding: 6px 10px;
	}
	.photo_compare_slide .cd-handle
	{
		width: 36px;
		height: 36px;
		margin-left: -18px;
		margin-top: -18px;
	}
}
@media only screen and (max-width: 480px)
{
	.photo_compare_prev { left: 2px; }
	.photo_compare_next { right: 2px; }
	.photo_compare_arrow { width: 36px; height: 36px; }
	.photo_compare_slide .cd-image-label
	{
		font-size: 11px;
		padding: 5px 8px;
	}
}
