/* ==========================================================================
   Advertising Scroll Story
   ========================================================================== */

.wurl-scroll-story {
	position: relative;
	height: 300vh;
	background:
		radial-gradient(
			ellipse at 14% 100%,
			rgba(75, 188, 217, 0.55) 0%,
			rgba(84, 83, 166, 0.32) 20%,
			rgba(72, 0, 105, 0.18) 40%,
			transparent 62%
		),
		#16005c;

	color: #fff;
}


.wurl-scroll-story__sticky {
	position: sticky;
	top: 0;
	height: 90vh;
	min-height: 700px;

	display: flex;
	align-items: center;
    flex-direction: column;
	overflow: hidden;
}


.wurl-scroll-story__inner {
	width: min(1200px, calc(100% - 80px));
	margin: 0 auto;

	display: grid;
	grid-template-columns: minmax(320px, 440px) minmax(400px, 1fr);
	align-items: center;

	gap: 90px;
}


/* ==========================================================================
   LEFT CONTENT
   ========================================================================== */

.wurl-scroll-story__content {
	width: 100%;
}


.wurl-scroll-story__item {
	position: relative;

	border-bottom: 1px solid rgba(255, 255, 255, 0.28);

	padding: 0;
}


.wurl-scroll-story__heading {
	width: 100%;

	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 20px;

	padding: 27px 0;

	border: 0;
	background: none;

	color: #fff;

	font: inherit;
	font-size: 18px;
	font-weight: 700;

	text-align: left;

	cursor: default;
}


.wurl-scroll-story__chevron {
	width: 12px;
	flex: 0 0 12px;

	transition:
		transform 400ms ease,
		opacity 400ms ease;
}


.wurl-scroll-story__chevron svg {
	display: block;
	width: 100%;
	height: auto;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
}


.wurl-scroll-story__item.is-active .wurl-scroll-story__chevron {
	transform: rotate(180deg);
}


.wurl-scroll-story__body {
	display: grid;
	grid-template-rows: 0fr;

	opacity: 0;

	transition:
		grid-template-rows 550ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 400ms ease;
}


.wurl-scroll-story__body > p {
	min-height: 0;
	overflow: hidden;

	margin: 0;



	color: rgba(255, 255, 255, 0.9);
}


.wurl-scroll-story__item.is-active .wurl-scroll-story__body {
	grid-template-rows: 1fr;
	opacity: 1;
}


.wurl-scroll-story__item.is-active .wurl-scroll-story__body > p {
	padding-bottom: 28px;
}


/* ==========================================================================
   VISUALS
   ========================================================================== */

.wurl-scroll-story__visuals {
	position: relative;

	width: 100%;
	height: min(540px, 60vh);
}


.wurl-scroll-story__visual {
	position: absolute;
	inset: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	opacity: 0;

	transform:
		translateY(35px)
		scale(0.97);

	visibility: hidden;

	pointer-events: none;

	transition:
		opacity 650ms ease,
		transform 850ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s linear 650ms;
}


.wurl-scroll-story__visual.is-active {
	opacity: 1;

	transform:
		translateY(0)
		scale(1);

	visibility: visible;

	transition:
		opacity 650ms ease,
		transform 850ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s;
}


.wurl-scroll-story__visual img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: contain;
	object-position: center;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 834px) {

	.wurl-scroll-story {
		height: 300vh;
	}


	.wurl-scroll-story__sticky {
		min-height: 100svh;
		height: 100svh;
	}


	.wurl-scroll-story__inner {
		width: min(100% - 48px, 720px);

		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(250px, 40vh);

		gap: 30px;
	}


	.wurl-scroll-story__content {
		order: 2;
	}


	.wurl-scroll-story__visuals {
		order: 1;

		height: min(380px, 40vh);
	}


	.wurl-scroll-story__heading {
		padding: 20px 0;
		font-size: 17px;
	}


	.wurl-scroll-story__body > p {
		font-size: 16px;
	}

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

	.wurl-scroll-story__inner {
		width: calc(100% - 40px);
		gap: 20px;
	}


	.wurl-scroll-story__visuals {
		height: 34vh;
		min-height: 230px;
	}


	.wurl-scroll-story__heading {
		padding: 17px 0;

		font-size: 16px;
	}


	.wurl-scroll-story__body > p {
		font-size: 15px;
		line-height: 1.5;
	}


	.wurl-scroll-story__item.is-active .wurl-scroll-story__body > p {
		padding-bottom: 20px;
	}

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.wurl-scroll-story__visual,
	.wurl-scroll-story__body,
	.wurl-scroll-story__chevron {
		transition: none;
	}

}