.ffew-approach-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	--ffew-approach-dark-title-color: #5C4D40;
	--ffew-approach-dark-eyebrow-color: rgba(92, 77, 64, 0.85);
	--ffew-approach-dark-copy-color: rgba(92, 77, 64, 0.9);
}

.ffew-approach-card {
	--ffew-approach-overlay-start: transparent;
	--ffew-approach-overlay-end: rgba(17, 24, 39, 0.72);
	--ffew-approach-title-color: #f5efe6;
	--ffew-approach-eyebrow-color: rgba(245, 239, 230, 0.88);
	--ffew-approach-copy-color: rgba(245, 239, 230, 0.9);
	--ffew-content-pad: 20px;
	position: relative;
	overflow: hidden;
	min-height: 460px;
	border-radius: 40px;
	background: transparent;
	isolation: isolate;
}

.ffew-approach-card__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s ease;
}

.ffew-approach-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		color-mix(in oklab, #003413 90%, transparent) 0%,
		color-mix(in oklab, #003413 40%, transparent) 45%,
		transparent 100%
	) !important;
	opacity: 0.8;
	transition: opacity 0.7s ease;
	pointer-events: none;
}

.ffew-approach-card:hover .ffew-approach-card__overlay {
	opacity: 0.95;
}

.ffew-approach-card__content {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: 100%;
	padding: 28px;
	overflow: hidden;
	background: transparent !important;
	color: #f5efe6;
}

.ffew-approach-card__stack {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: transparent !important;
}

.ffew-card-eyebrow,
.ffew-masonry-item__meta {
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.ffew-card-eyebrow {
	display: block;
	max-height: 0;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	color: var(--ffew-approach-eyebrow-color);
	overflow-wrap: anywhere;
	word-break: break-word;
	transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
}

.ffew-approach-card__title {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 100%;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--ffew-approach-title-color);
	font-size: clamp(28px, 4vw, 56px);
	line-height: 1.15;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.ffew-approach-card__copy-wrap {
	min-height:104px;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.85s ease, opacity 0.7s ease, margin 0.7s ease;
}

.ffew-approach-card__copy {
	margin: 0;
	max-width: 100%;
	color: var(--ffew-approach-copy-color);
	font-size: 15px;
	line-height: 1.6;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ffew-approach-card:hover .ffew-approach-card__image,
.ffew-approach-card:focus-within .ffew-approach-card__image {
	transform: scale(1.08);
}

.ffew-approach-card:hover .ffew-card-eyebrow,
.ffew-approach-card:focus-within .ffew-card-eyebrow {
	max-height: 4em;
	margin-bottom: 10px;
	opacity: 1;
}

.ffew-approach-card:hover .ffew-approach-card__copy-wrap,
.ffew-approach-card:focus-within .ffew-approach-card__copy-wrap {
	max-height: 10em;
	margin-top: 12px;
	opacity: 1;
}

.ffew-card-eyebrow:empty,
.ffew-approach-card__copy:empty {
	display: none;
}

.ffew-approach-card.is-dark-text {
	--ffew-approach-title-color: #5C4D40;
	--ffew-approach-eyebrow-color: rgba(92, 77, 64, 0.85);
	--ffew-approach-copy-color: rgba(92, 77, 64, 0.9);
	--ffew-approach-dark-title-color: #5C4D40;
	--ffew-approach-dark-eyebrow-color: rgba(92, 77, 64, 0.85);
	--ffew-approach-dark-copy-color: rgba(92, 77, 64, 0.9);
	--ffew-approach-overlay-end: rgba(255, 255, 255, 0.78);
}

.ffew-approach-card.is-dark-text .ffew-approach-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(255, 255, 255, 0.92) 0%,
		rgba(255, 255, 255, 0.75) 40%,
		rgba(255, 255, 255, 0.4) 65%,
		rgba(255, 255, 255, 0.1) 85%,
		transparent 100%
	) !important;
	opacity: 1;
	transition: opacity 0.7s ease;
	pointer-events: none;
}

.ffew-approach-card.is-dark-text .ffew-approach-card__content {
	color: var(--ffew-approach-dark-title-color, #5C4D40) !important;
}

.ffew-approach-card.is-dark-text .ffew-approach-card__title {
	color: var(--ffew-approach-dark-title-color, #5C4D40) !important;
}

.ffew-approach-card.is-dark-text .ffew-card-eyebrow {
	color: var(--ffew-approach-dark-eyebrow-color, rgba(92, 77, 64, 0.85)) !important;
}

.ffew-approach-card.is-dark-text .ffew-approach-card__copy {
	color: var(--ffew-approach-dark-copy-color, rgba(92, 77, 64, 0.9)) !important;
}

.ffew-masonry-grid {
	column-count: 4;
	column-gap: 16px;
}

.ffew-masonry {
	--ffew-masonry-overlay-start: rgba(17, 24, 39, 0.06);
	--ffew-masonry-overlay-end: rgba(17, 24, 39, 0.82);
	--ffew-masonry-meta-color: rgba(245, 239, 230, 0.88);
	--ffew-masonry-title-color: #f5efe6;
	--ffew-masonry-copy-color: rgba(245, 239, 230, 0.86);
	--ffew-masonry-dark-title-color: #5C4D40;
	--ffew-masonry-dark-meta-color: rgba(92, 77, 64, 0.85);
	--ffew-masonry-dark-copy-color: rgba(92, 77, 64, 0.9);
}

.ffew-masonry-item {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 20px;
	background: #d1d5db;
	break-inside: avoid;
	cursor: pointer;
	text-align: left;
}

.ffew-masonry-item__image {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.7s ease;
}

.ffew-masonry-item__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	padding: 20px;
	overflow: hidden;
	background: linear-gradient(180deg, var(--ffew-masonry-overlay-start) 18%, var(--ffew-masonry-overlay-end) 100%);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.ffew-masonry-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	color: var(--ffew-masonry-meta-color);
}

.ffew-meta-divider {
	width: 16px;
	height: 1px;
	background: rgba(245, 239, 230, 0.45);
}

.ffew-masonry-item__title {
	margin: 12px 0 0;
	max-width: 100%;
	color: var(--ffew-masonry-title-color);
	font-size: clamp(24px, 4vw, 44px);
	line-height: 1.15;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ffew-masonry-item__description {
	margin: 12px 0 0;
	max-width: 100%;
	color: var(--ffew-masonry-copy-color);
	font-size: 15px;
	line-height: 1.55;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ffew-masonry-item:hover .ffew-masonry-item__image,
.ffew-masonry-item:focus-visible .ffew-masonry-item__image {
	transform: scale(1.03);
}

.ffew-masonry-item:hover .ffew-masonry-item__overlay,
.ffew-masonry-item:focus-visible .ffew-masonry-item__overlay {
	opacity: 1;
}

.ffew-masonry-item.is-dark-text {
	--ffew-masonry-title-color: #5C4D40;
	--ffew-masonry-meta-color: rgba(92, 77, 64, 0.85);
	--ffew-masonry-copy-color: rgba(92, 77, 64, 0.9);
	--ffew-masonry-dark-title-color: #5C4D40;
	--ffew-masonry-dark-meta-color: rgba(92, 77, 64, 0.85);
	--ffew-masonry-dark-copy-color: rgba(92, 77, 64, 0.9);
	--ffew-masonry-overlay-start: rgba(255, 255, 255, 0.08);
	--ffew-masonry-overlay-end: rgba(255, 255, 255, 0.82);
}

.ffew-masonry-item.is-dark-text .ffew-masonry-item__overlay {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.08) 0%,
		rgba(255, 255, 255, 0.82) 100%
	) !important;
}

.ffew-masonry-item.is-dark-text .ffew-masonry-item__title {
	color: var(--ffew-masonry-dark-title-color, #5C4D40) !important;
}

.ffew-masonry-item.is-dark-text .ffew-masonry-item__meta {
	color: var(--ffew-masonry-dark-meta-color, rgba(92, 77, 64, 0.85)) !important;
}

.ffew-masonry-item.is-dark-text .ffew-masonry-item__description {
	color: var(--ffew-masonry-dark-copy-color, rgba(92, 77, 64, 0.9)) !important;
}

.ffew-masonry-item.is-dark-text .ffew-meta-divider {
	background: rgba(92, 77, 64, 0.4);
}

.ffew-masonry-item:focus-visible,
.ffew-lightbox__close:focus-visible,
.ffew-lightbox__nav:focus-visible {
	outline: 2px solid #f5efe6;
	outline-offset: 4px;
}

.ffew-lightbox {
	--ffew-lightbox-title-color: #f5efe6;
	--ffew-lightbox-copy-color: rgba(245, 239, 230, 0.86);
	--ffew-lightbox-meta-color: rgba(245, 239, 230, 0.88);
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	background: rgba(16, 18, 21, 0.8);
	color: var(--ffew-lightbox-copy-color);
}

.ffew-lightbox.is-open {
	display: block;
}

.ffew-lightbox__backdrop {
	position: absolute;
	inset: 0;
	backdrop-filter: blur(10px);
}

.ffew-lightbox__dialog {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 32px 72px;
}

.ffew-lightbox__figure {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1120px;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	margin: 0;
	text-align: center;
}

.ffew-lightbox__image-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
}

.ffew-lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 64vh;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.ffew-lightbox__caption,
.ffew-lightbox__caption * {
	text-align: center;
}

.ffew-lightbox__caption {
	width: 100%;
	max-width: 760px;
	margin: 24px auto 0;
}

.ffew-lightbox h2.ffew-lightbox__title,
.ffew-lightbox__title {
	margin: 12px 0 0;
	color: var(--ffew-lightbox-title-color) !important;
	font-family: var(--ffew-lightbox-title-font, inherit);
	font-size: clamp(34px, 2.5vw, 54px);
	line-height: 1.15;
}

.ffew-lightbox p.ffew-lightbox__description,
.ffew-lightbox__description {
	margin: 12px auto 0;
	max-width: 760px;
	color: var(--ffew-lightbox-copy-color) !important;
	font-family: var(--ffew-lightbox-copy-font, inherit);
	font-size: 16px;
	line-height: 1.65;
}

.ffew-lightbox__meta,
.ffew-lightbox__tags,
.ffew-lightbox__counter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	color: var(--ffew-lightbox-meta-color) !important;
	font-family: var(--ffew-lightbox-meta-font, inherit);
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.ffew-lightbox__tags {
	margin-top: 20px;
	gap: 24px;
}

.ffew-lightbox__counter {
	margin-top: 24px;
	display: block;
}

.ffew-lightbox .ffew-meta-divider {
	background: currentColor;
	opacity: 0.45;
}

.ffew-lightbox__close,
.ffew-lightbox__nav {
	position: absolute;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(245, 239, 230, 0.28);
	border-radius: 50%;
	background: rgba(245, 239, 230, 0.04);
	color: #f5efe6;
	line-height: 0;
	font-size: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ffew-lightbox__close:hover,
.ffew-lightbox__nav:hover {
	background: rgba(245, 239, 230, 0.1);
	border-color: rgba(245, 239, 230, 0.42);
}

.ffew-lightbox__close svg,
.ffew-lightbox__nav svg {
	display: block;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

.ffew-lightbox__close {
	top: 24px;
	right: 24px;
}

.ffew-lightbox__nav--prev,
.ffew-lightbox__nav--next {
	top: 50%;
	transform: translateY(-50%);
}

.ffew-lightbox__nav--prev {
	left: 24px;
}

.ffew-lightbox__nav--next {
	right: 24px;
}

body.ffew-lightbox-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.ffew-approach-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.ffew-approach-card {
		min-height: 400px;
		border-radius: 32px;
	}

	.ffew-approach-card__content {
		padding: 20px;
	}

	.ffew-masonry-grid {
		column-count: 2;
	}

	.ffew-lightbox__dialog {
		padding: 32px 56px;
	}
	.ffew-approach-card__copy-wrap {
		min-height:120px;
	}
}

@media (max-width: 767px) {
	.ffew-approach-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.ffew-approach-card {
		min-height: 320px;
		border-radius: 24px;
	}

	.ffew-approach-card__content {
		padding: 20px;
	}

	.ffew-approach-card__title {
		font-size: clamp(26px, 8vw, 36px);
	}

	.ffew-card-eyebrow {
		max-height: 4em;
		margin-bottom: 10px;
		opacity: 1;
	}

	.ffew-approach-card__copy-wrap {
	
		max-height: 12em;
		margin-top: 12px;
		opacity: 1;
	}

	.ffew-approach-card__copy {
		font-size: 14px;
		line-height: 1.5;
	}

	.ffew-masonry-grid {
		column-count: 1;
	}

	.ffew-masonry-item__overlay {
		opacity: 1;
		padding: 20px;
		background: linear-gradient(180deg, var(--ffew-masonry-overlay-start) 22%, var(--ffew-masonry-overlay-end) 100%);
	}

	.ffew-lightbox__dialog {
		padding: 72px 16px 16px;
	}

	.ffew-lightbox__figure {
		max-height: calc(100vh - 88px);
	}

	.ffew-lightbox__image {
		max-height: 44vh;
	}

	.ffew-lightbox__caption {
		margin-top: 16px;
		padding: 0 4px;
	}

	.ffew-lightbox__title {
		font-size: clamp(28px, 8vw, 34px);
	}

	.ffew-lightbox__close {
		top: 16px;
		right: 16px;
	}

	.ffew-lightbox__nav {
		width: 44px;
		height: 44px;
	}

	.ffew-lightbox__nav--prev {
		left: 10px;
	}

	.ffew-lightbox__nav--next {
		right: 10px;
	}
}
