/* Testimonial Image Grid
 * Client palette:
 * #402E2A primary
 * #684551 secondary
 * #D5B0AC accent
 * #F7F3F1 background
 */

.ns-tig {
	--ns-tig-primary: #402E2A;
	--ns-tig-secondary: #684551;
	--ns-tig-accent: #D5B0AC;
	--ns-tig-background: #F7F3F1;
	--ns-tig-white: #ffffff;
	--ns-tig-text: #34302f;
	--ns-tig-columns: 4;
	position: relative;
	width: 100%;
	color: var(--ns-tig-text);
}

.ns-tig *,
.ns-tig *::before,
.ns-tig *::after {
	box-sizing: border-box;
}

.ns-tig button {
	font: inherit;
}

.ns-tig__grid {
	display: grid;
	grid-template-columns: repeat(var(--ns-tig-columns), minmax(0, 1fr));
	gap: 0;
	width: 100%;
}

.ns-tig__card {
	position: relative;
	min-width: 0;
	background: var(--ns-tig-white);
	overflow: hidden;
}

.ns-tig__image-trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: inherit;
	appearance: none;
}

.ns-tig__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center top;
	transition: transform 420ms ease;
}

.ns-tig__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(22px, 2.2vw, 44px);
	background: rgba(35, 31, 30, 0.67);
	color: #fff;
	opacity: 0;
	transition: opacity 220ms ease;
	pointer-events: none;
}

.ns-tig__overlay-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(100%, 430px);
	text-align: center;
	line-height: 1.45;
	scrollbar-width: thin;
}

.ns-tig__data-title {
	display: block;
	font-size: clamp(15px, 1vw, 18px);
	font-weight: 700;
	line-height: 1.3;
}

.ns-tig__data-text {
	font-size: clamp(13px, 0.88vw, 16px);
	font-weight: 400;
	display: -webkit-box;
  -webkit-line-clamp: 6;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

@media (hover: hover) and (pointer: fine) {
	.ns-tig__card:hover .ns-tig__overlay,
	.ns-tig__image-trigger:focus-visible .ns-tig__overlay,
	.ns-tig__card:focus-within .ns-tig__overlay {
		opacity: 1;
	}

	.ns-tig__card:hover .ns-tig__image {
		transform: scale(1.015);
	}
}

.ns-tig__desktop-actions {
	position: absolute;
	z-index: 3;
	left: 16px;
	right: 16px;
	bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #fff;
	opacity: 0;
	transition: opacity 180ms ease;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.ns-tig__card:hover .ns-tig__desktop-actions,
	.ns-tig__card:focus-within .ns-tig__desktop-actions {
		opacity: 1;
		pointer-events: auto;
	}
}

.ns-tig__heart-button,
.ns-tig__share-button,
.ns-tig__modal-fullscreen,
.ns-tig__modal-share,
.ns-tig__modal-close,
.ns-tig__modal-prev,
.ns-tig__modal-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 7px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	appearance: none;
}

.ns-tig button svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.55;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ns-tig__heart-count {
	font-size: 14px;
	line-height: 1;
}

.ns-tig__heart-button.is-liked svg {
	fill: currentColor;
}

.ns-tig__mobile-summary {
	display: none;
	padding: 18px 18px 20px;
	border-bottom: 1px solid rgba(213, 176, 172, 0.6);
	background: #fff;
}

.ns-tig__mobile-title {
	margin: 0 0 8px;
	color: var(--ns-tig-primary);
	font-size: 18px;
	font-weight: 650;
	line-height: 1.35;
}

.ns-tig__mobile-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #5b5552;
}

.ns-tig__mobile-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 15px;
}

.ns-tig__read-story {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ns-tig-secondary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.ns-tig__mobile-actions {
	display: flex;
	align-items: center;
	gap: 2px;
	color: var(--ns-tig-secondary);
}

.ns-tig__mobile-actions .ns-tig__heart-button,
.ns-tig__mobile-actions .ns-tig__share-button {
	padding: 5px;
}


/* Mobile-only client-side pagination. The wrapper is rendered only when the
 * Elementor option is enabled and there are more items than the initial count.
 */
.ns-tig__load-more-wrap {
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 24px 18px 0;
}

.ns-tig__load-more-wrap[hidden] {
	display: none !important;
}

.ns-tig__load-more {
	min-width: 150px;
	padding: 12px 22px;
	border: 1px solid var(--ns-tig-secondary);
	border-radius: 0;
	background: var(--ns-tig-secondary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ns-tig__load-more:hover {
	background: var(--ns-tig-primary);
}

.ns-tig__load-more:active {
	transform: translateY(1px);
}

.ns-tig__card.is-revealing {
	animation: ns-tig-reveal 260ms ease both;
}

@keyframes ns-tig-reveal {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ns-tig__modal[hidden],
.ns-tig__modal-prev[hidden],
.ns-tig__modal-next[hidden] {
	display: none !important;
}

body.ns-tig-modal-open {
	overflow: hidden;
}

.ns-tig__modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	background: #fff;
	color: #34302f;
}

.ns-tig__dialog {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	background: #fff;
	overflow: hidden;
	outline: none;
}

.ns-tig__toolbar {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	padding: 0 18px 0 10px;
	background: #fff;
	color: #211f1e;
}

.ns-tig__toolbar-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ns-tig__toolbar button {
	min-width: 40px;
	min-height: 40px;
}

.ns-tig__toolbar .ns-tig__modal-heart {
	padding-inline: 9px;
}

.ns-tig__modal-close svg {
	width: 30px;
	height: 30px;
	stroke-width: 1.1;
}

.ns-tig__modal-body {
	display: grid;
	grid-template-columns: minmax(0, 2.15fr) minmax(280px, 0.85fr);
	align-items: center;
	gap: clamp(52px, 5vw, 96px);
	width: min(1600px, calc(100vw - 120px));
	height: calc(100vh - 72px);
	margin: 0 auto;
	padding: 18px 42px 56px;
}

.ns-tig__modal-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	height: 100%;
	position: relative;
	padding-left:40px;
	padding-right: 40px;
}

.ns-tig__modal-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	object-fit: contain;
}

.ns-tig__modal-copy {
	align-self: center;
	max-width: 390px;
	padding-right: 10px;
}

.ns-tig__modal-title {
	margin: 0 0 22px;
	color: #402e2a;
	font-size: clamp(14px, 1.1vw, 18px);
	line-height: 1.35;
	font-weight: bold;
	font-family: "Montserrat", sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.ns-tig__modal-text {
	margin: 0;
	color: #402e2a;
	font-size: clamp(14px, 0.9vw, 16px);
	font-weight: 400;
	line-height: 1.55;
	white-space: pre-line;
}

.ns-tig__modal-prev,
.ns-tig__modal-next {
	position: absolute;
	z-index: 5;
	top: 50%;
	width: 60px;
	height: 60px;
	padding: 0 !important;
	color: #242120;
	transform: translateY(-50%);
	border: 1px solid rgba(104, 69, 81, 0.22);
	background: #ffffff;
}

.ns-tig__modal-prev:hover,
.ns-tig__modal-next:hover {
	background: rgba(247, 243, 241, 1);
	border-color: rgba(104, 69, 81, 0.42);
}

.ns-tig__modal-prev {
	left: 0;
}

.ns-tig__modal-next {
	right: 0;
}

.ns-tig__modal-prev svg,
.ns-tig__modal-next svg {
	width: 24px !important;
	height: 24px !important;
	stroke-width: 1.2;
}

.ns-tig__toast {
	position: fixed;
	z-index: 1000001;
	left: 50%;
	bottom: 24px;
	padding: 10px 15px;
	border-radius: 3px;
	background: var(--ns-tig-primary);
	color: #fff;
	font-size: 13px;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	pointer-events: none;
}

.ns-tig__toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.ns-tig button:focus-visible {
	outline: 2px solid var(--ns-tig-secondary);
	outline-offset: 3px;
}

/* Touch devices do not get a hover-only experience. Instead, show the
 * mobile/touch summary with title, excerpt and an explicit Read story CTA.
 */
@media (hover: none), (max-width: 767px) {
	.ns-tig__overlay,
	.ns-tig__desktop-actions {
		display: none !important;
	}

	.ns-tig__mobile-summary {
		display: block;
	}

	.ns-tig__image-trigger {
		cursor: pointer;
	}
}

@media (max-width: 1024px) {
	.ns-tig__modal-body {
		grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
		gap: 40px;
		width: calc(100vw - 70px);
		padding-inline: 34px;
	}

	.ns-tig__modal-next {
		left: 65%;
	}
}

@media (max-width: 767px) {
	.ns-tig[data-mobile-show-more="yes"] .ns-tig__load-more-wrap {
		display: flex;
	}

	.ns-tig__dialog {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ns-tig__toolbar {
		position: sticky;
		top: 0;
		height: 62px;
		padding: 0 8px;
		border-bottom: 1px solid #eee7e5;
	}

	.ns-tig__toolbar-left {
		gap: 2px;
	}

	.ns-tig__toolbar button {
		min-width: 38px;
		min-height: 38px;
	}

	.ns-tig__modal-body {
		display: block;
		width: 100%;
		height: auto;
		padding: 18px 18px 96px;
	}

	.ns-tig__modal-media {
		display: block;
		height: auto;
	}

	.ns-tig__modal-image {
		width: 100%;
		max-height: none;
		aspect-ratio: auto;
		object-fit: contain;
	}

	.ns-tig__modal-copy {
		max-width: none;
		padding: 26px 4px 12px;
	}

	.ns-tig__modal-title {
		margin-bottom: 15px;
		font-size: 18px;
		font-weight: 500;
	}

	.ns-tig__modal-text {
		font-size: 15px;
		line-height: 1.65;
	}

	.ns-tig__modal-prev,
	.ns-tig__modal-next {
		position: fixed;
		top: auto;
		bottom: 18px;
		width: 60px;
		height: 60px;
		border: 1px solid rgba(104, 69, 81, 0.22);
		background: #ffffff;
		color: var(--ns-tig-secondary);
		transform: none;
	}

	.ns-tig__modal-prev {
		left: 18px;
	}

	.ns-tig__modal-next {
		left: auto;
		right: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ns-tig__image,
	.ns-tig__overlay,
	.ns-tig__desktop-actions,
	.ns-tig__load-more,
	.ns-tig__toast {
		transition: none;
	}

	.ns-tig__card.is-revealing {
		animation: none;
	}
}
