/* Story card + filter chips — see web/wordpress/style-guide/DESIGN_SYSTEM.md */

.gcf-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(8, 27, 44, 0.92);
	cursor: zoom-out;
}

.gcf-lightbox-overlay__img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.gcf-story-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.gcf-story-filter .chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #21293b;
	background: #f6f6f6;
	border: 1px solid #21293b1a;
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease;
}

.gcf-story-filter .chip.is-active {
	background: #0093d0;
	border-color: #0093d0;
	color: #ffffff;
}

.gcf-story-filter__count {
	margin-left: auto;
	font-size: 13px;
	color: #5c6270;
}

.gcf-story-card.gcf-filter-hide,
.gcf-story-pagination.gcf-filter-hide {
	display: none;
}

.gcf-story-layout {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.gcf-story-sidebar {
	flex: 0 0 200px;
	position: sticky;
	top: 24px;
}

.gcf-story-sidebar__heading {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #5c6270;
}

.gcf-story-filter--year {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.gcf-story-filter--year .chip {
	width: 100%;
}

.gcf-story-main {
	flex: 1 1 auto;
	min-width: 0;
}

@media (max-width: 780px) {
	.gcf-story-layout {
		flex-direction: column;
	}

	.gcf-story-sidebar {
		position: static;
		width: 100%;
		flex-basis: auto;
	}

	.gcf-story-filter--year {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.gcf-story-filter--year .chip {
		width: auto;
	}
}

.gcf-story-grid {
	display: grid;
	grid-template-columns: repeat(var(--gcf-grid-columns, 4), 1fr);
	gap: 24px;
}

/* Same elevation recipe as .gcf-campaign-card (campaigns.css) — soft ambient
   shadow, no border, -4px hover lift, 1.06 media zoom. */
.gcf-story-card {
	display: block;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(33, 41, 59, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.gcf-story-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(33, 41, 59, 0.14);
}

.gcf-story-card__img-wrap {
	position: relative;
	height: 210px;
	overflow: hidden;
}

/* Two classes needed to outrank Elementor's own `.elementor img { height:
   auto }` reset (frontend.min.css) — a single-class selector loses that
   specificity fight and the image renders at its natural aspect ratio
   instead of being cropped to the card's fixed height. */
.gcf-story-card__img-wrap .gcf-story-card__img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gcf-story-card:hover .gcf-story-card__img {
	transform: scale(1.06);
}

.gcf-story-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	margin-bottom: 0;
}

/* Video-testimonial cards on the Stories & Gallery page — inline-styled
   text-editor widgets whose wrapper carries this class; same elevation
   recipe as .gcf-story-card / .gcf-campaign-card. */
.gcf-media-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(33, 41, 59, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

/* When the card is an Elementor container, Elementor's own `.e-con` overflow
   (visible, loaded after this sheet) beats the single-class rule above and the
   media's square corners paint over the card's top radius — two classes win. */
.e-con.gcf-media-card {
	--overflow: hidden;
	overflow: hidden !important;
}

.gcf-media-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(33, 41, 59, 0.14);
}

.gcf-media-card a {
	display: block;
	position: relative;
	overflow: hidden;
}

/* ElementsKit's video-gallery runs an isotope layout that inline-sizes and
   absolutely positions .ekit-video-item — racing our stylesheet and
   collapsing the card. Each gcf-media-card gallery holds exactly ONE item,
   so no isotope layout is needed; neutralize its inline styles outright. */
.gcf-media-card .filter-grid {
	height: auto !important;
}

.gcf-media-card .ekit-video-item {
	position: static !important;
	width: 100% !important;
	height: auto !important;
	overflow: hidden;
	/* Kill ElementsKit's own 12px item radius — the card's 16px radius +
	   overflow:hidden does the rounding; the media block itself stays square. */
	border-radius: 0;
}

/* Four levels deep to outrank ElementsKit's own
   `.ekit-video-gallery .ekit-video-item .video-link img` (0-3-1). */
.gcf-media-card .ekit-video-item .video-link img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
}

/* ElementsKit only reveals the play button on item hover; these cards keep
   it always visible like the static-site design (its own :hover rule uses
   higher specificity, hence the !important). The fixed square + flex centering
   guarantees a true circle regardless of glyph aspect ratio (the widget's own
   padding control produces an oval for narrow glyphs like fa-caret-right);
   the small left padding optically centers the right-pointing triangle. */
.gcf-media-card .video-link .video-icon {
	opacity: 1 !important;
	visibility: visible !important;
}

/* Fixed 56px circle in both icon render modes (the widget's own padding
   control makes an oval around narrow glyphs). Local renders the icon as an
   <i> font glyph; prod has Elementor's font-icon-SVG feature on and renders
   an inline <svg class="video-icon"> instead — each needs its own centering. */
.gcf-media-card .video-link i.video-icon {
	width: 56px;
	height: 56px;
	padding: 0 !important;
	line-height: 56px !important;
	text-align: center;
	text-indent: 2px;
}

.gcf-media-card .video-link svg.video-icon {
	width: 56px !important;
	height: 56px !important;
	box-sizing: border-box !important;
	padding: 12px 0 12px 3px !important;
}

.gcf-media-card img {
	transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gcf-media-card:hover img {
	transform: scale(1.06);
}

.gcf-story-card__affordance {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(33, 41, 59, 0.72);
	color: #ffffff;
	font-size: 13px;
	line-height: 1;
}

.gcf-story-card__body {
	padding: 14px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

/* The badge normally overlays the photo; it only stays in the body on the
   (currently unused) no-image card variant. */
.gcf-story-card__body .gcf-badge {
	margin-bottom: 0;
}

.gcf-story-card__caption {
	font-size: 13px;
	color: #5c6270;
}

@media (max-width: 1024px) {
	.gcf-story-grid {
		grid-template-columns: repeat(var(--gcf-grid-columns-tablet, 2), 1fr);
	}
}

@media (max-width: 640px) {
	.gcf-story-grid {
		grid-template-columns: repeat(var(--gcf-grid-columns-mobile, 1), 1fr);
	}
}

/* Canvas sections (.gcf-canvas on the Elementor container): the story
   teaser as drawn in the canvas - no card box, rounded photo, bold title. */
.gcf-canvas .gcf-story-grid {
	gap: 32px;
}

.gcf-canvas .gcf-story-card,
.gcf-canvas .gcf-story-card:hover {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	transform: none;
}

.gcf-canvas .gcf-story-card__img-wrap {
	border-radius: 16px;
}

.gcf-canvas .gcf-story-card__body {
	padding: 16px 0 0;
}

.gcf-canvas .gcf-story-card__caption {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: #1c2a32;
}
