/**
 * AP Quote Band — scoped styles. Depends on ap-base.css.
 */

.ap-quote {
	background: var(--ap-ink);
	color: var(--ap-paper);
	padding: 5rem 0;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	overflow: hidden;
}

/* Force the inner container to center within the section regardless of the
   Elementor container's flex alignment. */
.ap-quote > .ap-container {
	width: 100%;
	max-width: 80rem;
	margin-left: auto !important;
	margin-right: auto !important;
	position: relative;
	z-index: 1;
	/* Center the figure by flex (a theme figure-reset zeroes its auto margins,
	   so margin:auto alone does not center it). */
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ---------------- Dervish figure watermark ---------------- */
.ap-quote__figure {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 118%;
	width: auto;
	/* Render any coloured figure as a soft white silhouette on the ink band. */
	filter: brightness(0) invert(1);
	opacity: 0.06;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.ap-quote--fig-right .ap-quote__figure  { right: -2%; }
.ap-quote--fig-left .ap-quote__figure   { left: -2%; transform: translateY(-50%) scaleX(-1); }
.ap-quote--fig-center .ap-quote__figure { left: 50%; transform: translate(-50%, -50%); opacity: 0.05; }

@media (max-width: 782px) {
	.ap-quote__figure { height: 90%; opacity: 0.05; }
}

.ap-quote__fig {
	max-width: 56rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ap-quote__mark {
	display: block;
	font-family: var(--ap-font-display), Georgia, serif;
	font-size: 6rem;
	line-height: 1;
	color: var(--ap-red);
}

.ap-quote .ap-quote__text {
	margin: -1.5rem 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	quotes: none;
	font-family: var(--ap-font-display), Georgia, serif !important;
	font-weight: 300 !important;
	font-size: 1.5rem !important;
	line-height: 1.3 !important;
	color: var(--ap-paper) !important;
}

.ap-quote__cite {
	margin-top: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	font-family: var(--ap-font-body), ui-sans-serif, system-ui, sans-serif;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
}

.ap-quote__cite-rule {
	height: 1px;
	width: 2rem;
	background: var(--ap-red);
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.ap-quote { padding: 7rem 0; }
	.ap-quote__mark { font-size: 8rem; }
	.ap-quote .ap-quote__text { font-size: 2.25rem !important; }
}

@media (min-width: 1024px) {
	.ap-quote .ap-quote__text { font-size: 2.75rem !important; }
}
