/**
 * Dynamic stack slides — images, large number, vertical label, typography.
 * Replaces Elementor selectors (.elementor-138 …) used by the static template.
 */

.cstk-stack-root .cstk-stack-col--left {
	background-color: #f0f0f0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.cstk-stack-root .cstk-stack-bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}

/* Large slide number (01, 02, …) */
.cstk-stack-root .cstk-stack-num {
	position: absolute;
	top: 60px;
	left: -130px;
	z-index: 2;
	pointer-events: none;
}

.cstk-stack-root .cstk-stack-num .cstk-primary-title {
	font-family: var(--e-global-typography-secondary-font-family, "Space Grotesk"), sans-serif;
	font-size: clamp(4rem, 10vw, 10.625rem);
	font-weight: 600;
	line-height: 1;
	color: rgba(29, 29, 29, 0.3);
	white-space: nowrap;
}

/* Vertical “Latest projects” label */
.cstk-stack-root .cstk-title-vertical,
.cstk-stack-root .cstk-stack-vertical {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2;
	writing-mode: vertical-lr;
	height: auto;
	align-self: flex-start;
	pointer-events: none;
}

.cstk-stack-root .cstk-title-vertical .cstk-primary-title,
.cstk-stack-root .cstk-stack-vertical .cstk-primary-title {
	font-family: var(--e-global-typography-secondary-font-family, "Space Grotesk"), sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--e-global-color-secondary, #1d1d1d);
	background-color: var(--e-global-color-e31419c, #ffffff);
	padding: 30px 10px;
	margin: 0;
	white-space: nowrap;
	transform: rotate(-180deg);
	display: inline-block;
}

/* Right column typography */
.cstk-stack-root .cstk-stack-subtitle {
	display: block;
	margin: 0 0 15px;
}

.cstk-stack-root .cstk-stack-subtitle .cstk-primary-title {
	font-family: var(--e-global-typography-secondary-font-family, "Space Grotesk"), sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #e97522;
}

.cstk-stack-root .cstk-stack-title {
	margin: 0 0 25px;
}

.cstk-stack-root .cstk-stack-title .cstk-primary-title {
	font-family: var(--e-global-typography-secondary-font-family, "Space Grotesk"), sans-serif;
	font-size: clamp(2rem, 4vw, 4.375rem);
	font-weight: 600;
	line-height: 1.1;
	color: var(--e-global-color-secondary, #1d1d1d);
}

.cstk-stack-root .cstk-stack-description .text-editor-content {
	font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif;
	font-size: var(--e-global-typography-text-font-size, 16px);
	line-height: var(--e-global-typography-text-line-height, 30px);
	color: var(--e-global-color-text, #7b7a7a);
	text-align: left;
	max-width: 90%;
}

.cstk-stack-root .cstk-stack-description .text-editor-content p {
	margin-bottom: 0;
}

.cstk-stack-root .cstk-stack-button {
	margin-top: 10px;
}

@media (max-width: 1399px) {
	.cstk-stack-root .cstk-stack-num {
		left: -80px;
	}

	.cstk-stack-root .cstk-stack-num .cstk-primary-title {
		font-size: 7.5rem;
	}
}

@media (max-width: 1199px) {
	.cstk-stack-root .cstk-stack-num {
		left: 0;
		right: 0;
		top: auto;
		bottom: 100%;
		width: 100%;
		text-align: center;
		margin-top: -50px;
	}

	.cstk-stack-root .cstk-stack-num .cstk-primary-title {
		font-size: 4rem;
	}

	.cstk-stack-root .cstk-stack-vertical {
		position: relative;
		writing-mode: horizontal-tb;
		transform: none;
		margin-bottom: 1rem;
	}

	.cstk-stack-root .cstk-title-vertical .cstk-primary-title,
.cstk-stack-root .cstk-stack-vertical .cstk-primary-title {
		transform: none;
	}
}
