/* TZD Media Viewer
--------------------------------------------------------- */
.tzd-media-is-hidden {
	display: none !important;
}

.tzd-media-show-more-wrap {
	clear: both;
	margin: 18px 0 0;
	text-align: center;
}

.tzd-media-show-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 22px;
	border: 1px solid #81b539 !important;
	border-radius: 999px !important;
	background: #ffffff !important;
	color: #5f8b26 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.tzd-media-show-more:hover,
.tzd-media-show-more:focus {
	background: #81b539 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 7px 18px rgba(129, 181, 57, 0.22) !important;
}

/* Slider
--------------------------------------------------------- */
.tzd-slider {
	position: relative;
	max-width: 100%;
	margin: 22px 0 0;
	padding: 0 46px;
}

.tzd-slider__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 16px;
	scrollbar-width: thin;
}

.tzd-slider__track > * {
	flex: 0 0 calc((100% - (14px * (var(--tzd-slider-visible, 3) - 1))) / var(--tzd-slider-visible, 3));
	scroll-snap-align: start;
}

.tzd-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0 !important;
	border: 1px solid #dadada !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	color: #353535 !important;
	font-size: 30px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14) !important;
	transform: translateY(-50%);
	cursor: pointer;
}

.tzd-slider__arrow:hover,
.tzd-slider__arrow:focus {
	background: #f7fff0 !important;
	color: #5f8b26 !important;
}

.tzd-slider__arrow--prev {
	left: 0;
}

.tzd-slider__arrow--next {
	right: 0;
}

.tzd-slider .tzd-testimonial__link {
	margin: 0 !important;
	break-inside: auto;
	page-break-inside: auto;
}

@media screen and (max-width: 767px) {
	.tzd-slider {
		padding: 0 38px;
	}

	.tzd-slider__track {
		gap: 12px;
	}

	.tzd-slider__track > * {
		flex-basis: calc((100% - (12px * (var(--tzd-slider-visible, 1) - 1))) / var(--tzd-slider-visible, 1));
	}

	.tzd-slider__arrow {
		width: 32px;
		height: 32px;
		font-size: 26px !important;
	}
}

/* Lightbox
--------------------------------------------------------- */
.tzd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: inherit;
}

.tzd-lightbox.is-open {
	display: flex;
}

.tzd-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.86);
}

.tzd-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(1120px, 100%);
	max-height: 100%;
}

.tzd-lightbox__figure {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: calc(100vh - 48px);
	margin: 0;
	line-height: 0;
}

.tzd-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 130px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
	animation: tzdLightboxIn .16s ease-out;
}

.tzd-lightbox__caption {
	box-sizing: border-box;
	width: 100%;
	max-width: 900px;
	margin: 12px auto 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	color: #353535;
	line-height: 1.45;
	text-align: center;
	max-height: 30vh;
	overflow-y: auto;
}

.tzd-lightbox__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
}

.tzd-lightbox__desc {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
}

.tzd-lightbox__close,
.tzd-lightbox__nav {
	appearance: none;
	-webkit-appearance: none;
}

.tzd-lightbox__close {
	position: fixed;
	top: 16px;
	right: 18px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.96) !important;
	color: #222222 !important;
	font-size: 32px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
	cursor: pointer;
}

.tzd-lightbox__nav {
	position: fixed;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 58px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, 0.92) !important;
	color: #222222 !important;
	font-size: 44px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
	transform: translateY(-50%);
	cursor: pointer;
}

.tzd-lightbox__nav--prev {
	left: 18px;
}

.tzd-lightbox__nav--next {
	right: 18px;
}

.tzd-lightbox__close:hover,
.tzd-lightbox__close:focus,
.tzd-lightbox__nav:hover,
.tzd-lightbox__nav:focus {
	background: #ffffff !important;
	color: #81b539 !important;
}

.tzd-lightbox-open {
	overflow: hidden !important;
}

@keyframes tzdLightboxIn {
	from {
		opacity: 0;
		transform: scale(0.985);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media screen and (max-width: 767px) {
	.tzd-lightbox {
		padding: 12px;
	}

	.tzd-lightbox__image {
		max-height: calc(100vh - 118px);
	}

	.tzd-lightbox__caption {
		padding: 8px 10px;
	}

	.tzd-lightbox__title {
		font-size: 14px;
	}

	.tzd-lightbox__desc {
		font-size: 12px;
	}

	.tzd-lightbox__close {
		top: 10px;
		right: 10px;
		width: 38px;
		height: 38px;
		font-size: 30px !important;
	}

	.tzd-lightbox__nav {
		width: 38px;
		height: 48px;
		font-size: 36px !important;
	}

	.tzd-lightbox__nav--prev {
		left: 8px;
	}

	.tzd-lightbox__nav--next {
		right: 8px;
	}
}


/* Flip word
--------------------------------------------------------- */
.tzd-flip-word {
	display: inline-block;
	position: relative;
	vertical-align: baseline;
	transform-origin: 50% 55%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	will-change: transform, opacity, filter;
	transition:
		transform calc(var(--tzd-flip-duration, 280ms) / 2) ease-in,
		opacity calc(var(--tzd-flip-duration, 280ms) / 2) ease-in,
		filter calc(var(--tzd-flip-duration, 280ms) / 2) ease-in;
}

.tzd-flip-word.is-flipping-out {
	transform: perspective(420px) rotateX(-82deg) translateY(-0.04em);
	opacity: 0.32;
	filter: brightness(0.88);
}

.tzd-flip-word.is-flipping-in {
	animation: tzdFlipWordIn calc(var(--tzd-flip-duration, 280ms) / 2) ease-out;
}

.tzd-flip-word--board {
	padding: 0.03em 0.30em 0.08em;
	margin-right: 0.06em;
	border: 1px solid rgba(90, 28, 130, 0.20);
	border-radius: 0.20em;
	background: linear-gradient(180deg, #b96af0 0%, #ad5dec 52%, #8f3dcc 100%);
	color: #ffffff !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.28),
		inset 0 -0.08em 0 rgba(0, 0, 0, 0.12),
		0 0.18em 0.50em rgba(90, 28, 130, 0.16);
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.tzd-flip-word--plain {
	color: #ad5dec !important;
}

@keyframes tzdFlipWordIn {
	0% {
		transform: perspective(420px) rotateX(74deg) translateY(0.04em);
		opacity: 0.34;
		filter: brightness(1.05);
	}
	100% {
		transform: perspective(420px) rotateX(0deg) translateY(0);
		opacity: 1;
		filter: brightness(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tzd-flip-word,
	.tzd-flip-word.is-flipping-out,
	.tzd-flip-word.is-flipping-in {
		animation: none !important;
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
		filter: none !important;
	}
}
