/**
 * Homepage duo — Recent Messages (ca60cff) v3 centred row (2nd | latest | 3rd).
 */

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-sermon-grid {
	display: grid !important;
	width: 100% !important;
	max-width: var(--fpc-home-recent-grid-max) !important;
	margin-inline: auto !important;
	gap: var(--fpc-home-recent-gutter) !important;
	box-sizing: border-box;
	grid-template-columns: minmax(0, 1fr) !important;
	align-items: stretch;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead,
html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail {
	box-sizing: border-box;
	padding: var(--fpc-home-recent-lead-pad) !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead {
	min-height: var(--fpc-home-recent-lead-min-h) !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail {
	position: relative !important;
	min-height: var(--fpc-home-recent-trail-min-h) !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link > div:first-child {
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	min-height: 0;
	text-align: center !important;
	width: 100%;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link h3 {
	flex: 1 1 auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	font-weight: 800 !important;
	line-height: var(--fpc-home-duo-heading-line-height) !important;
	margin-bottom: 0 !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead h3 {
	font-size: var(--fpc-home-recent-lead-title-size) !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail h3 {
	font-size: var(--fpc-home-recent-trail-title-size) !important;
}

@media (min-width: 1440px) {
	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-sermon-grid {
		gap: var(--fpc-home-recent-grid-gap-lg) !important;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead h3 {
		font-size: var(--fpc-home-recent-lead-title-size-lg) !important;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail h3 {
		font-size: var(--fpc-home-recent-trail-title-size-lg) !important;
	}
}

@media (min-width: 1025px) {
	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-sermon-grid {
		grid-template-columns: var(--fpc-home-recent-card-columns-wide) !important;
		align-items: center !important;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card--trail {
		align-self: center !important;
		height: auto !important;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead {
		height: var(--fpc-home-recent-lead-min-h) !important;
		min-height: var(--fpc-home-recent-lead-min-h) !important;
		max-height: var(--fpc-home-recent-lead-min-h) !important;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail {
		height: var(--fpc-home-recent-trail-min-h) !important;
		min-height: var(--fpc-home-recent-trail-min-h) !important;
		max-height: var(--fpc-home-recent-trail-min-h) !important;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card:nth-child(1) {
		order: 2;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card:nth-child(2) {
		order: 1;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card:nth-child(3) {
		order: 3;
	}
}

@media (min-width: 728px) and (max-width: 1024px) {
	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-sermon-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		align-items: stretch;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card--lead {
		grid-column: 1 / -1;
		order: 0;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card:nth-child(2) {
		order: 1;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card:nth-child(3) {
		order: 2;
	}
}

@media (max-width: 727px) {
	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-sermon-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card {
		order: 0 !important;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead {
		min-height: var(--fpc-home-recent-stack-card-min-h) !important;
		height: auto;
	}

	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail {
		min-height: var(--fpc-home-recent-stack-trail-min-h) !important;
		height: auto;
	}
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail {
	background-color: var(--fpc-home-recent-trail-card-bg) !important;
	border-color: var(--fpc-home-duo-chrome-border) !important;
	box-shadow: 0 16px 32px -16px rgb(var(--fpc-home-duo-chrome-bg-rgb) / 0.35) !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead {
	background-color: var(--fpc-home-recent-lead-canvas) !important;
	border-color: var(--fpc-home-recent-lead-border) !important;
	box-shadow: 0 16px 32px -16px rgb(var(--fpc-home-recent-lead-canvas-rgb) / 0.45) !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead h3,
html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead .text-fpc-text {
	color: var(--fpc-home-duo-chrome-ink) !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead .text-fpc-muted {
	color: var(--fpc-text-soft) !important;
}

html.dark body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead h3,
html.dark body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead .text-fpc-text {
	color: var(--fpc-text) !important;
}

html.dark body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--lead .text-fpc-muted {
	color: var(--fpc-text-soft) !important;
}

/* Trail: centre title in card; footer/play out of flex flow (wins over justify-between + shared h3 flex:1). */
html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail > div:first-child {
	flex: 0 0 auto !important;
	min-height: 0 !important;
	width: 100% !important;
	justify-content: center !important;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail h3 {
	flex: 0 0 auto !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	transform: translateY(calc(-1 * var(--fpc-home-recent-trail-title-lift))) !important;
}

@media (max-width: 1024px) {
	html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail h3 {
		transform: translateY(calc(-1 * var(--fpc-home-recent-trail-title-lift-narrow))) !important;
	}
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail > div:last-child {
	position: absolute !important;
	left: var(--fpc-home-recent-trail-pad) !important;
	right: var(--fpc-home-recent-trail-pad) !important;
	bottom: var(--fpc-home-recent-trail-pad) !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
	border-top: none !important;
	width: auto !important;
	box-sizing: border-box;
}

html body.fpc-public-home-duo:not(.fpc-leader-portal) #page #content .elementor-element.elementor-element-ca60cff .fpc-recent-card-link--trail > div:last-child [class*="rounded-full"] {
	position: absolute !important;
	right: 0 !important;
	bottom: 0 !important;
	margin: 0 !important;
}
