/* ==========================================================================
   Image + Text Scroll Section
   Grid approach: items use display:contents, images share one sticky cell,
   texts flow naturally in the second column.
   ========================================================================== */

.its {
	position: relative;
}

.its__container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 80px;
	align-items: center;
}

/* On desktop, track and items are transparent to the grid */
.its__track {
	display: contents;
}

.its__item {
	display: contents;
}

/* All images stack in the same grid cell, sticky + vertically centred */
.its__image {
	grid-area: 1 / 1;
	width: 100%;
	height: 400px;
	object-fit: contain;
	object-position: center;
	position: sticky;
	inset-block-start: 0;
	transition: opacity 0.5s ease;
}

/* Text in second column, each on its own row */
.its__text {
	grid-column: 2;
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 0;
	opacity: 0.25;
	transition: opacity 0.5s ease;
}

.its__item.is-selected > .its__text {
	opacity: 1;
}

/* ----- Typography ----- */

.its__subtitle {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--color-text-muted, #484848);
	margin: 0 0 10px;
}

.its__title {
	font-size: 2rem;
	font-weight: var(--font-weight-semibold, 600);
	line-height: var(--line-height-heading, 1.2);
	color: var(--color-primary, #003366);
	margin: 0 0 8px;
}

.its__content {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--color-text-default, #484848);
}

.its__content p:last-child {
	margin-bottom: 0;
}

/* ----- Arrows (hidden on desktop) ----- */

.its__arrow {
	display: none;
}

/* ----- Progress bar (hidden on desktop) ----- */

.its__progress {
	display: none;
}

/* ----- Mobile: fade carousel with arrows + progress ----- */

@media (max-width: 768px) {
	.its__container {
		display: block;
		position: relative;
		column-gap: 0;
	}

	.its__track {
		display: block;
		position: relative;
	}

	.its__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 30px 40px;
		box-sizing: border-box;
		transition: opacity 0.5s ease;
	}

	.its__item:not(.is-selected) {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		opacity: 0;
		pointer-events: none;
	}

	.its__item.is-selected {
		position: relative;
		opacity: 1;
	}

	.its__image {
		position: static;
		height: 200px;
		max-height: 200px;
		width: auto;
		max-width: 100%;
		object-fit: contain;
		opacity: 1 !important;
		margin-bottom: 12px;
	}

	.its__text {
		min-height: auto;
		opacity: 1;
		padding: 0;
		text-align: center;
	}

	.its__subtitle {
		font-size: 0.65rem;
	}

	.its__title {
		font-size: 0.88rem;
	}

	/* Arrows */
	.its__arrow {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 36px;
		height: 36px;
		background: none;
		border: none;
		color: var(--color-primary, #003366);
		cursor: pointer;
		z-index: 2;
		padding: 0;
	}

	.its__arrow--prev {
		left: 0;
	}

	.its__arrow--next {
		right: 0;
	}

	/* Progress bar */
	.its__progress {
		display: block;
		width: 100px;
		height: 3px;
		background: rgba(0, 0, 0, 0.15);
		margin: 24px auto 0;
		position: relative;
	}

	.its__progress-fill {
		height: 100%;
		background: var(--color-primary, #003366);
		transition: width 0.3s ease;
	}
}
