
@import url("https://cdn-ilegepl.nitrocdn.com/qUsjHIoXpBIvutaiJWRKRPUYzrQMWvhf/assets/static/optimized/rev-7c9ea15/www.recastsoftware.com/wp-content/themes/recast2025/style.css");

.storytelling {
	background: var(--neutrals-white, #fff);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--margins-base-vert, 100px) var(--margins-base-hori, 100px);
	position: relative;
}

.storytelling
.storytelling-content-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	row-gap: var(--gap-base, 80px);
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--global-maxwidth-maxwidth-m, 1200px);
}

/* Image Grid Block Styles */
.storytelling__block--image-grid {
	display: flex;
	align-items: stretch;
	gap: var(--gap-l, 32px);
	width: 100%;
}

.storytelling__block--image-grid.storytelling__block--right {
	flex-direction: row-reverse;
}

.storytelling__images, .storytelling__content {
	flex: 1;
}

.storytelling__image-grid {
	display: flex;
	gap: var(--gap-l, 32px);
}

.storytelling__image-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.storytelling__image-column--left .storytelling__image--1 {
	margin-bottom: var(--gap-l, 32px);
}

.storytelling__image-column--left .storytelling__image--2 {
	margin-top: 0;
}

.storytelling__image-column--right .storytelling__image--3 {
	margin-bottom: var(--gap-l, 32px);
	padding-top: var(--gap-l, 32px);
}

.storytelling__image-column--right .storytelling__image--4 {
	margin-top: 0;
}

.storytelling__image-column--left .storytelling__image--1, .storytelling__image-column--right .storytelling__image--4 {
	aspect-ratio: 1/1 !important;
	object-fit: cover;
}

.storytelling__image-column--left .storytelling__image--2, .storytelling__image-column--right .storytelling__image--3 {
	aspect-ratio: 3/4;
	object-fit: cover;
}

.storytelling__image {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.storytelling__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.storytelling__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--gap-s, 16px);
	padding: var(--margins-m, 48px);
}

.storytelling__title {
	margin: 0;
	color: var(--neutrals-black);
	letter-spacing: calc(var(--size-heading-l, 48px) * .02);
}

.storytelling__title span {
	color: var(--primary-recast-blue, #0372ff);
}

.storytelling__bar {
	width: 24px;
	height: 2px;
	background: var(--secondary-orange, #f05928);
}

.storytelling__description {
	font-weight: 300;
	line-height: 100%;
	color: var(--neutrals-black);
}

/* Metrics Block Styles - Namespaced to avoid conflicts */
.storytelling__block--metrics {
	width: 100%;
}

.storytelling-metrics {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--margins-base-vert, 100px) 0;
	position: relative;
	overflow: hidden;
}

/* Top-left corner */
.storytelling-metrics::before {
	top: 0;
	left: 0;
	transform: rotate(0deg);
}

/* Bottom-right corner */
.storytelling-metrics::after {
	bottom: 0;
	right: 0;
	transform: rotate(180deg);
}

/* Ensure content stays above background */
.storytelling-metrics-content-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	row-gap: var(--gap-base, 56px);
	position: relative;
	z-index: 2;
}

.storytelling-metrics__header {
	width: 100%;
	max-width: var(--global-maxwidth-maxwidth-m, 1200px);
}

.storytelling-metrics__title {
	margin: 0;
	color: var(--neutrals-black, #161f5b);
	letter-spacing: calc(var(--size-heading-l, 48px) * .02);
}

.storytelling-metrics__title span {
	color: var(--primary-recast-blue, #0372ff);
}

.storytelling-metrics__grid {
	width: 100%;
	max-width: var(--global-maxwidth-maxwidth-m, 1200px);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--gap-m, 24px);
	align-items: center;
	justify-items: center;
}

.storytelling-metrics__item {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs, 16px);
	width: 100%;
	padding: var(--margins-s, 20px);
	border: 2px solid var(--neutrals-grey-2, #b2b5e5);
	background: var(--primary-royal-blue, #1f289c);
}

.storytelling-metrics__number {
	color: var(--primary-recast-teal, #31d1ff);
	letter-spacing: calc(var(--size-heading-m, 40px) * .03);
}

.storytelling-metrics__label {
	font-weight: 300;
	line-height: 100%;
	color: var(--neutrals-white, #fff);
}

/* Tablet layout: 3 items on first row, 2 items centered on second row */
@media (min-width: 601px) and (max-width: 1200px) {
	.storytelling-metrics__grid {
		grid-template-columns: repeat(6, 1fr);
		grid-template-rows: auto auto;
	}
	
	/* First 3 items take 2 columns each */
	.storytelling-metrics__item:nth-child(1), .storytelling-metrics__item:nth-child(2), .storytelling-metrics__item:nth-child(3) {
		grid-column: span 2;
	}
	
	/* Items 4 and 5 on second row: item 4 starts from beginning, item 5 takes remaining space */
	.storytelling-metrics__item:nth-child(4) {
		grid-column: 1/4;
	}
	
	.storytelling-metrics__item:nth-child(5) {
		grid-column: 4/7;
	}
}

/* Mobile layout: single column stack */
@media (max-width: 600px) {
	.storytelling-metrics__grid {
		grid-template-columns: 1fr;
	}
}

/* Responsive Design for Image Grid */
@media (max-width: 1200px) {}

@media (max-width: 768px) {
	.storytelling {
		padding: var(--margins-base-vert, 56px) var(--margins-base-hori, 40px);
	}
	
	.storytelling__block--image-grid {
		flex-direction: column;
		gap: var(--gap-m, 24px);
	}
	
	.storytelling__block--image-grid.storytelling__block--right {
		flex-direction: column;
	}
	
	.storytelling__image-grid {
		height: auto;
	}
	
	.storytelling-content-wrapper {
		row-gap: var(--gap-m, 40px);
	}
	
	.storytelling__image-grid {
		gap: var(--gap-s, 16px);
	}
	
	.storytelling__image-column {
		gap: var(--gap-s, 16px);
	}
	
	.storytelling__content {
		padding: 0px;
	}
	
	.storytelling-metrics {
		padding: var(--margins-lg, 50px) 0;
	}
	
	.storytelling__image--1, .storytelling__image--3 {
		padding-top: 0 !important;
	}
	
	.storytelling__image--3 {
		margin-top: -26px !important;
	}
	
	.storytelling__image--4 {
		margin-top: -26px !important;
	}
	
	.storytelling__image--1 {
		margin-bottom: 0 !important;
	}
}
