/* ==========================================================================
   PPLT Photo Quote (custom Enfold ALB element)
   Defaults live in the variables below. Box, overlay and photo settings from
   the element are written inline as these variables; quote/name/role sizes
   and colors come from Enfold's styling engine, so those are left without
   !important (otherwise they would block the element's own settings).
   ========================================================================== */

.pplt-photo-quote {
	--ppq-radius: 24px;
	--ppq-pad: 40px;
	--ppq-min-h: 460px;
	--ppq-min-h-mobile: 420px;
	--ppq-overlay: #272E1B;      /* forest 900 */
	--ppq-strength: .92;          /* overlay opacity at its darkest point */
	--ppq-focus: center center;
	--ppq-ease: cubic-bezier(.16, 1, .3, 1);
}

#top .pplt-photo-quote {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	min-height: var(--ppq-min-h) !important;
	margin: 0 !important;
	border-radius: var(--ppq-radius) !important;
	overflow: hidden !important;
	isolation: isolate !important;
	background: var(--ppq-overlay) !important;
}
#top .pplt-photo-quote--center { justify-content: center !important; }
#top .pplt-photo-quote--top { justify-content: flex-start !important; }

/* Photo */
#top .pplt-photo-quote .pplt-photo-quote__img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	z-index: -2 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	object-position: var(--ppq-focus) !important;
	filter: saturate(.86) contrast(.95) brightness(1.03) !important;
	transition: transform 1.2s var(--ppq-ease) !important;
}
#top .pplt-photo-quote--unwashed .pplt-photo-quote__img { filter: none !important; }

/* Overlay: one solid color layer; a mask shapes it into a fade toward the text */
#top .pplt-photo-quote .pplt-photo-quote__overlay {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	z-index: -1 !important;
	display: block !important;
	background: var(--ppq-overlay) !important;
	opacity: var(--ppq-strength) !important;
	-webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.11) 0%, rgba(0,0,0,.38) 30%, rgba(0,0,0,.85) 62%, #000 100%) !important;
	mask-image: linear-gradient(180deg, rgba(0,0,0,.11) 0%, rgba(0,0,0,.38) 30%, rgba(0,0,0,.85) 62%, #000 100%) !important;
}
/* text at the top: fade the other way */
#top .pplt-photo-quote--top .pplt-photo-quote__overlay {
	-webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.11) 0%, rgba(0,0,0,.38) 30%, rgba(0,0,0,.85) 62%, #000 100%) !important;
	mask-image: linear-gradient(0deg, rgba(0,0,0,.11) 0%, rgba(0,0,0,.38) 30%, rgba(0,0,0,.85) 62%, #000 100%) !important;
}
/* text in the center, or "even": cover the whole photo */
#top .pplt-photo-quote--center .pplt-photo-quote__overlay,
#top .pplt-photo-quote--overlay-even .pplt-photo-quote__overlay {
	-webkit-mask-image: none !important;
	mask-image: none !important;
	opacity: calc(var(--ppq-strength) * .8) !important;
}
#top .pplt-photo-quote--overlay-none .pplt-photo-quote__overlay { display: none !important; }

/* Text */
#top .pplt-photo-quote .pplt-photo-quote__body {
	position: relative !important;
	margin: 0 !important;
	padding: var(--ppq-pad) !important;
}
#top .pplt-photo-quote .pplt-photo-quote__quote {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-family: 'noto-serif', Helvetica, Arial, sans-serif !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	font-size: 21px;
	color: #F5EAD8;
}
#top .pplt-photo-quote .pplt-photo-quote__quote p {
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	font-style: inherit !important;
	margin: 0 !important;
	padding: 0 !important;
	text-wrap: pretty !important;
}
#top .pplt-photo-quote .pplt-photo-quote__quote p + p { margin-top: .6em !important; }
#top .pplt-photo-quote .pplt-photo-quote__quote p:first-child::before { content: "\201C"; }
#top .pplt-photo-quote .pplt-photo-quote__quote p:last-child::after { content: "\201D"; }
#top .pplt-photo-quote--no-marks .pplt-photo-quote__quote p::before,
#top .pplt-photo-quote--no-marks .pplt-photo-quote__quote p::after { content: none !important; }

#top .pplt-photo-quote .pplt-photo-quote__attr {
	display: block !important;
	margin: 20px 0 0 !important;
	padding: 0 !important;
}
#top .pplt-photo-quote .pplt-photo-quote__name {
	display: block !important;
	font-family: 'figtree', Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	font-size: 16px;
	color: #EDE0CB;
}
#top .pplt-photo-quote .pplt-photo-quote__role {
	display: block !important;
	font-family: 'figtree', Helvetica, Arial, sans-serif !important;
	line-height: 1.45 !important;
	margin-top: 2px !important;
	font-size: 15px;
	color: #D8D2B8;
}

/* Optional slow photo zoom on hover */
@media (prefers-reduced-motion: no-preference) {
	#top .pplt-photo-quote--zoom:hover .pplt-photo-quote__img { transform: scale(1.05) !important; }
}

/* Mobile (767px and below): the quote fills most of the box, so darken more evenly */
@media only screen and (max-width: 767px) {
	#top .pplt-photo-quote {
		min-height: var(--ppq-min-h-mobile) !important;
	}
	#top .pplt-photo-quote .pplt-photo-quote__body { padding: min(var(--ppq-pad), 24px) !important; }
	#top .pplt-photo-quote .pplt-photo-quote__quote { font-size: 19px; }
	#top .pplt-photo-quote:not(.pplt-photo-quote--overlay-even):not(.pplt-photo-quote--center) .pplt-photo-quote__overlay {
		-webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.8) 35%, rgba(0,0,0,.95) 70%, #000 100%) !important;
		mask-image: linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.8) 35%, rgba(0,0,0,.95) 70%, #000 100%) !important;
	}
}
