/**
 * Single finish Elementor template.
 *
 * Kit breakpoints: mobile 767, mobile extra 880, tablet 1024,
 * tablet extra 1200, laptop 1366, widescreen 1600.
 */

.is-finish-elementor {
	background: #fff;
}

.is-finish-elementor .finish-page .elementor-widget {
	margin-bottom: 0;
}

.is-finish-elementor .finish-title .elementor-heading-title,
.is-finish-elementor .finish-statement .elementor-heading-title,
.is-finish-elementor .e-heading-base {
	white-space: pre-line;
}

.is-finish-elementor .finish-page .elementor-widget-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.is-finish-elementor .finish-pair > .elementor-widget {
	flex: 1 1 0;
	min-width: 0;
}

.is-finish-elementor .finish-intro {
	column-count: 2;
	column-gap: 64px;
}

.is-finish-elementor .finish-intro > *:first-child {
	margin-top: 0;
}

.is-finish-elementor .finish-intro > *:last-child {
	margin-bottom: 0;
}

.is-finish-elementor .finish-intro-group {
	width: 100%;
}

.finish-intro-small,
.finish-intro-small p {
	font-family: Fellix, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 400;
	color: #222;
}

.finish-gallery__pair {
	display: flex;
	align-items: flex-start;
	gap: 35px;
}

.finish-gallery__item {
	flex: 1 1 0;
	min-width: 0;
	align-self: stretch;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.finish-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
}

.finish-gallery .finish-gallery__item img {
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.finish-gallery__open {
	display: block;
	margin: 16px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: Fellix, sans-serif;
	font-size: 18px;
	line-height: 1.5;
	font-weight: 400;
	color: #111;
	cursor: pointer;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.finish-gallery__open:hover,
.finish-gallery__open:focus-visible {
	text-decoration: none;
}

.finish-gallery__dialog {
	width: min(1120px, calc(100% - 48px));
	max-height: calc(100% - 48px);
	padding: 56px 40px 32px;
	border: 0;
	background: #fff;
	color: #151515;
	overflow: auto;
}

.finish-gallery__dialog:not([open]) {
	display: none;
}

.finish-gallery__dialog[open] {
	display: flex;
	flex-direction: column;
	animation: finish-gallery-in 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.finish-gallery__dialog.is-closing {
	animation: finish-gallery-out 0.2s ease forwards;
}

.finish-gallery__dialog::backdrop {
	background: rgba(21, 21, 21, 0.45);
	animation: finish-gallery-in 0.28s ease;
}

.finish-gallery__dialog.is-closing::backdrop {
	animation: finish-gallery-out 0.2s ease forwards;
}

@keyframes finish-gallery-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes finish-gallery-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.finish-gallery__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #f2f2f2;
	color: #151515;
	line-height: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.finish-gallery__close:hover,
.finish-gallery__close:focus-visible {
	background: #e4e4e4;
}

.finish-gallery__close svg {
	display: block;
	width: 12px;
	height: 12px;
}

.finish-gallery__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
}

.finish-gallery__stage img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: min(58vh, 640px);
	height: auto;
	margin: 0 auto;
	transition: opacity 0.22s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.finish-gallery__thumbs {
	display: flex;
	justify-content: safe center;
	gap: 8px;
	margin-top: 16px;
	overflow-x: auto;
}

.finish-gallery__thumb {
	position: relative;
	flex: 0 0 72px;
	box-sizing: border-box;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	background: #f2f2f2;
	box-shadow: inset 0 0 0 2px #e6e6e6;
	cursor: pointer;
	overflow: hidden;
	transition: box-shadow 0.22s ease;
}

.finish-gallery .finish-gallery__thumb img {
	position: absolute;
	top: 2px;
	left: 2px;
	display: block;
	width: calc(100% - 4px);
	height: calc(100% - 4px);
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center center;
}

.finish-gallery__thumb::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: #151515;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.finish-gallery__thumb.is-active {
	box-shadow: inset 0 0 0 2px #151515;
}

.finish-gallery__thumb.is-active::after {
	transform: scaleX(1);
}

.finish-gallery__thumb:focus-visible {
	outline: 1px solid #151515;
	outline-offset: 2px;
}

.finish-gallery__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
}

.finish-gallery__arrows {
	display: flex;
	gap: 4px;
}

.finish-gallery__prev,
.finish-gallery__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #f2f2f2;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.finish-gallery__prev:hover,
.finish-gallery__prev:focus-visible,
.finish-gallery__next:hover,
.finish-gallery__next:focus-visible {
	background: #e4e4e4;
}

.finish-gallery__prev svg,
.finish-gallery__next svg {
	display: block;
	width: 12px;
	height: 12px;
	fill: #151515;
}

.finish-gallery__prev svg {
	transform: scale(-1, -1);
}

.finish-gallery__pagination {
	display: flex;
	align-items: center;
	font-family: Fellix, sans-serif;
	font-size: 14px;
	line-height: 24px;
	font-weight: 400;
	color: #404040;
}

.finish-gallery__progress {
	position: relative;
	width: 80px;
	height: 2px;
	margin: 0 8px;
	background: #f2f2f2;
	overflow: hidden;
}

.finish-gallery__progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: #151515;
	transform-origin: left center;
	transform: scaleX(1);
	transition: transform 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (prefers-reduced-motion: reduce) {
	.finish-gallery__dialog[open],
	.finish-gallery__dialog.is-closing,
	.finish-gallery__dialog::backdrop,
	.finish-gallery__dialog.is-closing::backdrop {
		animation: none;
	}

	.finish-gallery__stage img,
	.finish-gallery__thumb,
	.finish-gallery__thumb::after,
	.finish-gallery__progress span,
	.finish-gallery__close,
	.finish-gallery__prev,
	.finish-gallery__next {
		transition: none;
	}
}

@media (max-width: 1200px) {
	.is-finish-elementor .finish-intro {
		column-gap: 40px;
	}
}

@media (max-width: 880px) {
	.is-finish-elementor .finish-intro {
		column-count: 1;
	}

	.is-finish-elementor .finish-pair > .elementor-widget {
		flex: 1 1 auto;
		width: 100%;
	}

	.finish-gallery__pair {
		flex-direction: column;
		gap: 35px;
	}

	.finish-gallery__item {
		flex: none;
		width: 100%;
		height: auto;
	}

	.finish-gallery__dialog {
		width: calc(100% - 32px);
		padding: 48px 20px 24px;
	}

	.finish-gallery__thumb {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}
}

.is-finish-elementor .finish-page .elementor-widget-heading:not(:has(.elementor-heading-title)),
.is-finish-elementor .finish-page .elementor-widget-text-editor:not(:has(p, ul, ol, h2, h3, h4, blockquote)),
.is-finish-elementor .finish-page .elementor-widget-image:not(:has(img[src])),
.is-finish-elementor .finish-pair:not(:has(img[src])),
.is-finish-elementor .elementor-widget-finish-gallery:not(:has(.finish-gallery)),
.is-finish-elementor .finish-intro-group:not(:has(p, ul, ol, br)) {
	display: none;
}
