.dpi-story-showcase__details {
	margin: 150px 0 0;
}

.dpi-story-showcase__detail[hidden] {
	display: none;
}

.dpi-story-showcase__quote {
	margin: 0;
	color: var(--dpi-orange);
	font-size: clamp( 28px, 4vw, 48px );
	line-height: 1.05;
}

.dpi-story-showcase__person {
	margin: 20px 0 0;
	color: var(--dpi-lime-fg);
	font-weight: 700;
}

/* Collapsed height + bottom fade; JS (story-slider.js) removes .no-overflow/is-expanded once it measures actual overflow. */
.dpi-story-showcase__body-wrap {
	position: relative;
	margin-top: 24px;
	max-height: var( --dpi-story-showcase-body-h, 220px );
	overflow: hidden;
}

.dpi-story-showcase__body-wrap::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 96px;
	background: linear-gradient( to bottom, transparent 0%, var( --dpi-story-showcase-fade-color, var(--dpi-fg-on-dark) ) 100% );
	pointer-events: none;
}

.dpi-story-showcase__body-wrap.is-expanded {
	max-height: none;
}

.dpi-story-showcase__body-wrap.no-overflow::after,
.dpi-story-showcase__body-wrap.is-expanded::after {
	display: none;
}

.dpi-story-showcase__body > :first-child {
	margin-top: 0;
}

.dpi-story-showcase__body > :last-child {
	margin-bottom: 0;
}

.dpi-story-showcase__read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 8px 14px;
	border: 0;
	background: var(--dpi-blue);
	color: var(--dpi-light);
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.dpi-story-showcase__read-more[hidden] {
	display: none;
}

.dpi-story-showcase__read-more-icon {
	display: inline-flex;
	transition: transform 0.2s ease;
}

.dpi-story-showcase__read-more[aria-expanded="true"] .dpi-story-showcase__read-more-icon {
	transform: rotate( 180deg );
}

.dpi-story-showcase__related {
	margin-top: 125px;
}

.dpi-story-showcase__related-heading {
	margin: 0 0 18px;
	color: var(--dpi-lime-fg);
	font-size: 20px;
	text-align: center;
}

.dpi-story-showcase__cards {
	--dpi-gap: 16px;
}

.dpi-story-showcase__card {
	position: relative;
	display: flex;
	min-height: 300px;
	flex-direction: column;
	border-radius: 0;
	overflow: hidden;
}

.dpi-story-showcase__card-link,
.dpi-story-showcase__card-link:hover,
.dpi-story-showcase__card-link:focus {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px 25px;
	color: inherit;
	text-align: left;
	text-decoration: none;
}

.dpi-story-showcase__card-label {
	position: relative;
	z-index: 1;
	align-self: flex-start;
	margin-bottom: auto;
}

.dpi-story-showcase__card-link h4,
.dpi-story-showcase__card-link p {
	position: relative;
	z-index: 1;
	margin: 0;
	color: inherit;
}

.dpi-story-showcase__card-link h4 {
	font-size: 24px;
	line-height: 1.3;
}

.dpi-story-showcase__card-link p {
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.4;
}

/* Beat Elementor kit link and heading colours (.elementor-kit-* a, h4) inside coloured cards. */
.dpi-story-showcase__card.dpi-card--orange a,
.dpi-story-showcase__card.dpi-card--orange a:hover,
.dpi-story-showcase__card.dpi-card--orange a:focus,
.dpi-story-showcase__card.dpi-card--orange h4,
.dpi-story-showcase__card.dpi-card--orange p {
	color: var(--dpi-orange-fg);
}

.dpi-story-showcase__card.dpi-card--blue a,
.dpi-story-showcase__card.dpi-card--blue a:hover,
.dpi-story-showcase__card.dpi-card--blue a:focus,
.dpi-story-showcase__card.dpi-card--blue h4,
.dpi-story-showcase__card.dpi-card--blue p {
	color: var(--dpi-blue-fg);
}

.dpi-story-showcase__card.dpi-card--lime a,
.dpi-story-showcase__card.dpi-card--lime a:hover,
.dpi-story-showcase__card.dpi-card--lime a:focus,
.dpi-story-showcase__card.dpi-card--lime h4,
.dpi-story-showcase__card.dpi-card--lime p {
	color: var(--dpi-lime-fg);
}

.dpi-story-showcase__card.dpi-card--blue .dpi-story-showcase__card-label {
	background: var(--dpi-orange);
	color: var(--dpi-orange-fg);
}

.dpi-story-showcase__card .dpi-story-showcase__save {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.dpi-story-showcase__card .dpi-story-showcase__save:hover,
.dpi-story-showcase__card .dpi-story-showcase__save:focus {
	background: transparent;
	color: inherit;
}

.dpi-story-showcase__card .dpi-story-showcase__save-icon {
	width: auto;
	height: 27px;
	font-size: 27px;
	line-height: 1;
	fill: currentColor;
	stroke: currentColor;
}

.dpi-story-showcase__card .dpi-story-showcase__save-icon svg {
	width: 21px;
	height: 27px;
	fill: currentColor;
	stroke: currentColor;
}

.dpi-story-showcase__card .dpi-story-showcase__save-icon--filled {
	display: none;
}

.dpi-story-showcase__card .dpi-story-showcase__save.is-saved .dpi-story-showcase__save-icon:not(.dpi-story-showcase__save-icon--filled) {
	display: none;
}

.dpi-story-showcase__card .dpi-story-showcase__save.is-saved .dpi-story-showcase__save-icon--filled {
	display: inline-flex;
}

.dpi-story-showcase__card .dpi-story-showcase__save.is-saved .dpi-story-showcase__save-icon,
.dpi-story-showcase__card .dpi-story-showcase__save.is-saved .dpi-story-showcase__save-icon svg,
.dpi-story-showcase__card .dpi-story-showcase__save.is-saved .dpi-story-showcase__save-icon svg path {
	fill: currentColor !important;
	stroke: currentColor !important;
}

.dpi-story-showcase__card-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media ( max-width: 800px ) {
	.dpi-story-showcase__cards .dpi-grid__row > * {
		flex: 1 1 100%;
	}
}

@media ( max-width: 767px ) {
	.dpi-story-showcase__details {
		margin-top: 48px;
		padding: 0 20px;
	}

	.dpi-story-showcase__related {
		margin-top: 48px;
	}

}
