/* Portrait pages on one screen, like a funnel: photo, name, her words, donation.
   Site header, floating buttons and long footer are hidden here only (body.mmf-gp-immersive). */
.mmf-gp-immersive .mmf-header,
.mmf-gp-immersive .mmf-fab-container,
.mmf-gp-immersive .mmf-fab-whatsapp,
.mmf-gp-immersive .mmf-fab-exit,
.mmf-gp-immersive .mmf-footer {
	display: none !important;
}

.mmf-gpx {
	--gp-navy: #1e2244;
	--gp-orange: #ee6a4d;
	--gp-magenta: #b4287e;
	--gp-soft: #fff4f0;
	--gp-muted: rgba(30, 34, 68, 0.66);
	--gp-line: rgba(30, 34, 68, 0.1);
	--gp-gradient: linear-gradient(135deg, var(--gp-orange), var(--gp-magenta));
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	color: var(--gp-navy);
	background:
		radial-gradient(70% 38% at 50% 16%, rgba(238, 106, 77, 0.17), transparent 72%),
		radial-gradient(55% 32% at 92% 4%, rgba(180, 40, 126, 0.14), transparent 70%),
		radial-gradient(50% 30% at 4% 60%, rgba(193, 181, 218, 0.22), transparent 70%),
		#fff;
}

.mmf-gpx *,
.mmf-gpx *::before,
.mmf-gpx *::after {
	box-sizing: border-box;
}

body.mmf-gp-immersive #primary {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.mmf-gpx .mmf-gp--page {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	width: 100%;
	padding: 0;
	background: none;
}

.mmf-gpx .mmf-gp__portrait.mmf-gp__screen {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	width: 100%;
	max-width: 34rem;
	margin: 0 auto;
	border-radius: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}

/* Top bar: back to the gallery, share. */
.mmf-gpx .mmf-gp__bar {
	position: static;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: max(0.6rem, env(safe-area-inset-top)) 0.9rem 0.2rem;
	background: none;
}

.mmf-gpx .mmf-gp__back,
.mmf-gpx .mmf-gp__share--icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 44px;
	padding: 0 1rem 0 0.55rem;
	border: 1px solid var(--gp-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.74);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 6px 18px rgba(30, 34, 68, 0.07);
	color: var(--gp-navy);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.mmf-gpx .mmf-gp__share--icon {
	justify-content: center;
	width: 44px;
	padding: 0;
}

.mmf-gpx .mmf-gp__bar svg {
	flex: none;
	width: 20px;
	height: 20px;
}

.mmf-gpx .mmf-gp__share--icon.is-copied::after {
	content: "Lien copié";
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--gp-navy);
	color: #fff;
	font-size: 0.78rem;
	white-space: nowrap;
}

/* Photo: takes the room left by the words, never pushes the donation off screen. */
.mmf-gpx .mmf-gp__hero {
	flex: none;
	height: clamp(10rem, 32vh, 17rem);
	margin: 0;
	container-type: size;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
}

.mmf-gpx .mmf-gp__ring {
	--ring: min(calc(100cqh - 1.4rem), 100cqw, 17rem);
	display: block;
	flex: none;
	width: var(--ring);
	height: var(--ring);
	padding: 4px;
	border-radius: 50%;
	background: conic-gradient(from 200deg, var(--gp-orange), var(--gp-magenta), #f3a08c, var(--gp-orange));
	box-shadow: 0 18px 44px rgba(180, 40, 126, 0.26);
}

.mmf-gpx .mmf-gp__photo {
	display: block;
	width: 100%;
	height: 100%;
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: none;
	object-fit: cover;
}

.mmf-gpx #portraits .mmf-gp__ai {
	margin: 0;
	color: var(--gp-muted);
	font-size: 0.66rem;
	line-height: 1.2;
	text-align: center;
}

.mmf-gpx .mmf-gp__content {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 0.55rem 1.15rem 0.85rem;
	text-align: center;
}

.mmf-gpx .mmf-gp__id {
	flex: none;
}

.mmf-gpx #portraits .mmf-gp__kicker {
	margin: 0 0 0.3rem;
	color: var(--gp-magenta);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	line-height: 1.2;
	text-transform: uppercase;
}

.mmf-gpx .mmf-gp__portrait-name {
	margin: 0;
	color: var(--gp-navy);
	font-size: clamp(1.6rem, 7vw, 2.1rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1.04;
	text-wrap: balance;
}

.mmf-gpx #portraits .mmf-gp__meta {
	display: -webkit-box;
	margin: 0.35rem 0 0;
	overflow: hidden;
	color: var(--gp-muted);
	font-size: 0.9rem;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Her words: quote, message excerpt or the cause. Scrolls inside the card only if the screen is tiny. */
.mmf-gpx .mmf-gp__words {
	position: relative;
	margin: 0;
	padding: 1.45rem 1.15rem 0.95rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid rgba(180, 40, 126, 0.13);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 12px 32px rgba(30, 34, 68, 0.08);
	color: var(--gp-navy);
	text-align: left;
}

.mmf-gpx .mmf-gp__words::before {
	content: "\201C";
	position: absolute;
	top: 0.1rem;
	left: 0.85rem;
	background: var(--gp-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3rem;
	font-weight: 900;
	line-height: 1;
}

.mmf-gpx .mmf-gp__words--quote {
	padding-top: 2.85rem;
}

.mmf-gpx .mmf-gp__langpick {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
}

.mmf-gpx #portraits .mmf-gp__words--cause {
	padding-top: 0.95rem;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
}

.mmf-gpx .mmf-gp__words--cause::before {
	content: none;
}

.mmf-gpx .mmf-gp__text {
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.42;
}

.mmf-gpx .is-long .mmf-gp__text {
	font-size: 1rem;
}

.mmf-gpx .is-xlong .mmf-gp__text {
	font-size: 0.92rem;
	font-weight: 600;
}

.mmf-gpx #portraits .mmf-gp__source {
	margin: 0.6rem 0 0;
	color: var(--gp-muted);
	font-size: 0.74rem;
	font-style: italic;
	line-height: 1.35;
	opacity: 1;
}

.mmf-gpx .mmf-gp__lang-select {
	min-height: 36px;
	padding: 0 1.9rem 0 0.85rem;
	border: 1px solid var(--gp-line);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231e2244' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 14px;
	color: var(--gp-navy);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	-webkit-appearance: none;
	appearance: none;
}

/* Actions: one primary (donation), one quiet (her story). */
.mmf-gpx .mmf-gp__actions {
	position: static;
	flex: none;
	display: flex;
	gap: 0.6rem;
	padding: 0;
	background: none;
	box-shadow: none;
}

.mmf-gpx .mmf-gp__more {
	display: none;
	flex: 1 1 auto;
	min-height: 52px;
	padding: 0 0.85rem;
	border: 1.5px solid rgba(30, 34, 68, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--gp-navy);
	font: inherit;
	font-size: 0.98rem;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
}

.mmf-gpx .mmf-gp__donate {
	flex: 1 1 auto;
	max-width: none;
	padding: 0 0.9rem;
	white-space: nowrap;
	box-shadow: 0 12px 28px rgba(180, 40, 126, 0.32);
}

@media (max-width: 389px) {
	.mmf-gpx .mmf-gp__more {
		font-size: 0.9rem;
	}

	.mmf-gpx .mmf-gp__donate {
		font-size: 1rem;
	}
}

.mmf-gpx .mmf-gp__more:focus-visible,
.mmf-gpx .mmf-gp__donate:focus-visible,
.mmf-gpx .mmf-gp__back:focus-visible,
.mmf-gpx .mmf-gp__share--icon:focus-visible,
.mmf-gpx .mmf-gp__sheet-close:focus-visible {
	outline: 3px solid var(--gp-magenta);
	outline-offset: 3px;
}
