/* קרוסלת עדויות · נקודות. ערכי העיצוב עצמם מגיעים מהפאנל, כאן רק המבנה. */
.nk-tst {
	position: relative;
	--nk-arrow-offset: 48px;
}

.nk-tst__swiper {
	overflow: hidden;
}

/* כל הכרטיסים בשורה באותו גובה */
.nk-tst .swiper-wrapper {
	align-items: stretch;
}

.nk-tst .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.nk-tst__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
	background-color: #fff;
	border: 1px solid rgba(42, 41, 69, 0.1);
	border-radius: 20px;
}

.nk-tst .nk-tst__art img {
	display: block;
	width: 100%;
	height: 232px;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

/* הציטוט ממלא את הגובה, כך שהשם תמיד יושב בתחתית הכרטיס */
.nk-tst__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
}

/* the text block fills the card, so the name always sits at the bottom */
.nk-tst__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.nk-tst__quote {
	align-self: stretch;
	color: #2a2945;
	font-size: 16px;
	line-height: 1.5;
}

/* shortened quote: the number of lines comes from the panel */
.nk-tst__text:has(.nk-tst__more) .nk-tst__quote {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.nk-tst .nk-tst__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #c34b83;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.5;
	cursor: pointer;
}

.nk-tst .nk-tst__more:hover,
.nk-tst .nk-tst__more:focus {
	background: transparent;
	text-decoration: underline;
}

.nk-tst .nk-tst__more svg {
	flex: none;
}

/* ---------- popup ---------- */
.nk-pop[hidden] {
	display: none;
}

.nk-pop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

.nk-pop__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(42, 41, 69, 0.6);
}

.nk-pop__wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 640px;
	max-height: 100%;
	--nk-pop-arrow-out: 72px;
}

/* the close button sits outside the card, above its left corner */
.nk-pop__top {
	display: flex;
	flex: none;
	justify-content: flex-end;
}

/* the card never scrolls: when the screen is short the image gives up height first */
.nk-pop__card {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	border-radius: 20px;
	background-color: #fff;
}

/* image area: gives up height first on short screens, so the card never scrolls */
.nk-pop__media {
	position: relative;
	flex: 0 1 360px;
	height: 360px;
	min-height: 120px;
	overflow: hidden;
	background-color: #fff5eb;
}

/* soft blurred copy of the same artwork behind it, so a whole (uncropped) work has no empty bands */
.nk-pop__blur {
	position: absolute;
	inset: -24px;
	background-position: center;
	background-size: cover;
	filter: blur(20px) saturate(1.1);
	opacity: 0.55;
}

.nk-pop .nk-pop__art {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	border-radius: 0;
}

.nk-pop__body {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 20px;
	padding: 32px 40px;
}

.nk-pop__quote {
	color: #2a2945;
	font-size: 18px;
	line-height: 1.66;
}

/* arrows: on the sides outside the card (desktop) or centred under it (the panel decides per device) */
.nk-pop__arrows {
	position: absolute;
	top: 50%;
	inset-inline: calc(var(--nk-pop-arrow-out) * -1);
	z-index: 1;
	display: flex;
	flex: none;
	gap: 16px;
	justify-content: space-between;
	pointer-events: none;
	transform: translateY(-50%);
}

/* doubled class: beats the site's global button styles, which otherwise square the buttons */
.nk-pop .nk-pop__close.nk-pop__close,
.nk-pop .nk-pop__arrow.nk-pop__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	outline: 0;
	box-shadow: none;
	font-family: inherit;
	line-height: 0;
	text-decoration: none;
	cursor: pointer;
	pointer-events: auto;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.nk-pop .nk-pop__close.nk-pop__close {
	width: 40px;
	height: 40px;
	background-color: #c34b83;
	color: #fff;
}

.nk-pop .nk-pop__close.nk-pop__close:hover,
.nk-pop .nk-pop__close.nk-pop__close:focus-visible {
	background-color: #2a2945;
	color: #fff;
}

.nk-pop .nk-pop__arrow.nk-pop__arrow {
	width: 48px;
	height: 48px;
	background-color: #fff;
	color: #2a2945;
}

.nk-pop .nk-pop__arrow.nk-pop__arrow:hover,
.nk-pop .nk-pop__arrow.nk-pop__arrow:focus-visible {
	background-color: #c34b83;
	color: #fff;
}

.nk-pop .nk-pop__close svg,
.nk-pop .nk-pop__arrow svg {
	width: 20px;
	height: 20px;
}

.nk-pop .nk-pop__close.nk-pop__close:focus-visible,
.nk-pop .nk-pop__arrow.nk-pop__arrow:focus-visible,
.nk-tst .nk-tst__more:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.nk-pop__quote {
		font-size: 16px;
		line-height: 1.5;
	}
}

html.nk-pop-open {
	overflow: hidden;
}

.nk-tst__who {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* doubled class: the site sets a 10px radius on every image, which squared some of the avatars */
.nk-tst .nk-tst__avatar.nk-tst__avatar,
.nk-pop .nk-tst__avatar.nk-tst__avatar {
	flex: none;
	width: 44px;
	height: 44px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
}

.nk-tst__name {
	color: #2a2945;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
}

/* .nk-tst before the class so the site's global button styles (bg, radius, colour) don't win */
.nk-tst .nk-tst__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 8px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #2a2945;
	line-height: 0;
	cursor: pointer;
	transform: translateY(-50%);
}

.nk-tst .nk-tst__nav:hover,
.nk-tst .nk-tst__nav:focus {
	background: transparent;
	opacity: 0.7;
}

.nk-tst .nk-tst__nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nk-tst__prev {
	inset-inline-start: calc(var(--nk-arrow-offset) * -1);
}

.nk-tst__next {
	inset-inline-end: calc(var(--nk-arrow-offset) * -1);
}

.nk-tst__nav.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
}

.nk-tst__dots {
	display: none;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.nk-tst__dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	border-radius: 50%;
	background-color: rgba(42, 41, 69, 0.1);
	opacity: 1;
}

.nk-tst__dots .swiper-pagination-bullet-active {
	background-color: #c34b83;
}
