/* ==========================================================================
   Patient stories (patient-testimonial.php)
   Uses tokens, .pg-wrap and .pg-i from nav.css.
   1. Photograph hero: the title is set into the open side of a full-width photo.
   2. Live Google reviews: the Elfsight Google Reviews plugin, restyled through
      its stable "es-" class names to match the site (font, colours, controls).
   3. Photo mosaic with a statement.
   4. Invitation to leave a review, beside a portrait.
   Text keeps comfortable reading widths; layouts use the full page width.
   ========================================================================== */

.pg-ps { display: block; font-family: var(--pg-font); color: var(--pg-ink); }
.pg-ps a { text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, gap .25s var(--pg-ease); }
.pg-ps a:focus-visible { outline: 2px solid var(--pg-pink); outline-offset: 3px; border-radius: 8px; }
.pg-ps ol, .pg-ps ul { margin: 0; padding: 0; list-style: none; }
.pg-ps figure { margin: 0; }

.pg-ps__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pg-pink);
}
.pg-ps__kicker .pg-i { width: 16px; height: 16px; }

.pg-ps__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 22px;
	border: 1px solid #ddd8ee;
	border-radius: 999px;
	background: #fff;
	font-size: 15.5px;
	font-weight: 500;
	color: var(--pg-ink) !important;
	white-space: nowrap;
}
.pg-ps__btn .pg-i { width: 18px; height: 18px; color: var(--pg-pink); }
.pg-ps__btn:hover { border-color: var(--pg-plum); }
.pg-ps__btn--primary { background: var(--pg-pink); border-color: var(--pg-pink); color: #fff !important; box-shadow: 0 12px 26px -12px rgba(230, 8, 127, .8); }
.pg-ps__btn--primary .pg-i { color: #fff; }
.pg-ps__btn--primary:hover { background: var(--pg-pink-deep); border-color: var(--pg-pink-deep); }

/* --------------------------------------------------------------------------
   1. Photograph hero
   -------------------------------------------------------------------------- */
.pg-ps__hero { position: relative; overflow: hidden; background: #fff; }
.pg-ps__hero-photo { position: absolute; inset: 0; }
.pg-ps__hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.pg-ps__hero-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .78) 52%, #fff 70%),
		linear-gradient(0deg, rgba(242, 240, 251, .9) 0%, rgba(242, 240, 251, 0) 30%);
}
.pg-ps__hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	min-height: clamp(540px, 74vh, 720px);
}
.pg-ps__hero-copy { grid-column: 2; padding: 56px 0 64px 24px; }

.pg-ps__crumbs ol { display: flex; flex-wrap: wrap; font-size: 13.5px; color: var(--pg-muted); }
.pg-ps__crumbs li { display: inline-flex; align-items: center; }
.pg-ps__crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-radius: 50%; background: #cfc9e6; }
.pg-ps__crumbs a { color: var(--pg-muted); }
.pg-ps__crumbs a:hover { color: var(--pg-pink); }
.pg-ps__crumbs span { color: var(--pg-ink); font-weight: 500; }

.pg-ps__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 28px 0 16px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pg-pink);
}
.pg-ps__eyebrow .pg-i { width: 17px; height: 17px; }
.pg-ps__title {
	margin: 0 0 20px;
	font: 600 clamp(40px, 5vw, 72px)/1.02 var(--pg-font);
	letter-spacing: -.025em;
	color: var(--pg-ink);
	text-transform: none;
}
.pg-ps .pg-ps__title span { display: block; color: var(--pg-pink); }
.pg-ps__lede { max-width: 60ch; margin: 0; font-size: 18.5px; line-height: 1.65; color: #5d5880; }
.pg-ps__hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* --------------------------------------------------------------------------
   2. Live Google reviews
   -------------------------------------------------------------------------- */
.pg-ps__reviews { padding: 80px 0 72px; background: linear-gradient(180deg, var(--pg-lilac), #fff 55%); }
.pg-ps__head {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 24px 64px;
	align-items: end;
	margin-bottom: 36px;
}
.pg-ps__head h2, .pg-ps__statement h2, .pg-ps__share h2 {
	margin: 0;
	font: 600 clamp(30px, 3.4vw, 48px)/1.08 var(--pg-font);
	letter-spacing: -.02em;
	color: var(--pg-ink);
	text-transform: none;
}
.pg-ps__head h2 span, .pg-ps__statement h2 span, .pg-ps__share h2 span { color: var(--pg-pink); }
.pg-ps__head-text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--pg-muted); }
.pg-ps__noscript a { color: var(--pg-pink); font-weight: 500; }

/* The plugin, in the site's type and colours (stable es- classes). */
.pg-ps__widget { min-height: 420px; }
.pg-ps__widget .es-embed-root, .pg-ps__widget .es-embed-root * { font-family: var(--pg-font) !important; }
.pg-ps__widget .es-embed-root { max-width: none !important; }
.pg-ps__widget .es-widget-title-container { display: none !important; }
.pg-ps__widget .es-header-container {
	padding: 0 0 28px !important;
	margin-bottom: 8px !important;
	border-bottom: 1px solid var(--pg-line);
	background: transparent !important;
}
.pg-ps__widget .es-rating-value { font-size: 40px !important; font-weight: 600 !important; color: var(--pg-ink) !important; }
.pg-ps__widget .es-header-rating-reviews-count { font-size: 15px !important; color: var(--pg-muted) !important; }
.pg-ps__widget .es-header-write-review-button {
	background: var(--pg-pink) !important;
	border-color: var(--pg-pink) !important;
	border-radius: 999px !important;
	color: #fff !important;
	font-weight: 500 !important;
	box-shadow: 0 12px 26px -12px rgba(230, 8, 127, .8) !important;
}
.pg-ps__widget .es-header-write-review-button * { color: #fff !important; }
.pg-ps__widget .es-review-background-container {
	/* Open quotes, not boxes: a hairline divides each review from the next. */
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	border-left: 1px solid #e3def3 !important;
}
.pg-ps__widget .es-review-background-container .es-background-base,
.pg-ps__widget .es-review-background-container .es-background-overlay { background: transparent !important; }
.pg-ps__widget .es-review-author-name { font-weight: 600 !important; color: var(--pg-ink) !important; }
.pg-ps__widget .es-review-info-date { color: var(--pg-muted) !important; }
.pg-ps__widget .es-review-content, .pg-ps__widget .es-review-content * { font-size: 16px !important; line-height: 1.65 !important; color: #3d3866 !important; }
.pg-ps__widget .es-text-shortener-control { color: var(--pg-pink) !important; font-weight: 500 !important; }
.pg-ps__widget .es-carousel-arrow-control {
	background: #fff !important;
	border: 1px solid #ddd8ee !important;
	box-shadow: 0 10px 24px -14px rgba(42, 35, 99, .5) !important;
	color: var(--pg-plum) !important;
}
.pg-ps__widget .es-carousel-arrow-control:hover { background: var(--pg-pink) !important; border-color: var(--pg-pink) !important; color: #fff !important; }
.pg-ps__widget .es-bullets-control-item { background: #d9d3f0 !important; }
.pg-ps__widget .es-bullets-control-item-active { background: var(--pg-pink) !important; }

/* --------------------------------------------------------------------------
   3. Photo mosaic
   -------------------------------------------------------------------------- */
.pg-ps__moments { padding: 24px 0 88px; }
.pg-ps__mosaic {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: 22px;
}
.pg-ps__tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--pg-lilac); }
.pg-ps__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--pg-ease); }
.pg-ps__tile:hover img { transform: scale(1.04); }
.pg-ps__tile--tall { grid-row: 1 / span 2; min-height: 620px; }
.pg-ps__tile:not(.pg-ps__tile--tall) { aspect-ratio: 4 / 4.2; }
.pg-ps__tile figcaption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 14px;
	font-weight: 500;
	color: var(--pg-ink);
}
.pg-ps__statement { grid-column: 2 / span 2; align-self: center; padding: 20px 8px 28px 28px; }
.pg-ps__statement > p:not(.pg-ps__kicker) { max-width: 62ch; margin: 18px 0 0; font-size: 17.5px; line-height: 1.7; color: var(--pg-muted); }
.pg-ps__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 16px; font-weight: 500; color: var(--pg-pink); }
.pg-ps__link .pg-i { width: 17px; height: 17px; }
.pg-ps__link:hover { gap: 10px; color: var(--pg-pink-deep); }

/* --------------------------------------------------------------------------
   4. Leave a review
   -------------------------------------------------------------------------- */
.pg-ps__share { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--pg-blush) 0%, #fff 55%, var(--pg-lilac) 100%); border-top: 1px solid var(--pg-line); }
.pg-ps__share-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pg-ps__share-copy { padding: 80px 0; }
.pg-ps__share-copy > p:not(.pg-ps__kicker) { max-width: 60ch; margin: 18px 0 0; font-size: 17.5px; line-height: 1.7; color: var(--pg-muted); }
.pg-ps__share-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pg-ps__share-photo { align-self: end; max-width: 480px; justify-self: end; }
.pg-ps__share-photo img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
	/* The portrait's backdrop is not pure white: fade its edges into the band. */
	-webkit-mask-image: radial-gradient(ellipse 62% 70% at 52% 56%, #000 58%, transparent 100%);
	mask-image: radial-gradient(ellipse 62% 70% at 52% 56%, #000 58%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1099.98px) {
	.pg-ps__hero-copy { grid-column: 1 / -1; justify-self: end; max-width: 560px; padding-left: 0; }
	.pg-ps__hero-photo::after { background: linear-gradient(90deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .85) 45%, #fff 70%); }
	.pg-ps__tile--tall { min-height: 520px; }
}

@media (max-width: 767.98px) {
	/* Photo first, words below it. */
	.pg-ps__hero-photo { position: relative; aspect-ratio: 4 / 3; }
	.pg-ps__hero-photo img { object-position: 22% 50%; }
	.pg-ps__hero-photo::after { background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 35%); }
	.pg-ps__hero-inner { display: block; min-height: 0; }
	.pg-ps__hero-copy { max-width: none; padding: 0 0 44px; margin-top: -8px; }
	.pg-ps__eyebrow { margin-top: 18px; }
	.pg-ps__lede { font-size: 16.5px; }
	.pg-ps__hero-actions .pg-ps__btn { flex: 1 1 auto; }

	.pg-ps__reviews { padding: 52px 0 44px; }
	.pg-ps__head { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
	.pg-ps__head-text { font-size: 16px; }

	.pg-ps__moments { padding: 8px 0 56px; }
	.pg-ps__mosaic { grid-template-columns: 1fr 1fr; gap: 14px; }
	.pg-ps__statement { grid-column: 1 / -1; grid-row: 1; padding: 8px 0 12px; }
	.pg-ps__tile--tall { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 4.4; }
	.pg-ps__tile { border-radius: 20px; }
	.pg-ps__tile figcaption { left: 10px; bottom: 10px; padding: 6px 11px; font-size: 13px; }

	.pg-ps__share-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.pg-ps__share-copy { padding: 52px 0 12px; }
	.pg-ps__share-photo { justify-self: center; max-width: 340px; }
}

@media (max-width: 479.98px) {
	.pg-ps__share-links { display: grid; grid-template-columns: 1fr 1fr; }
	.pg-ps__share-links .pg-ps__btn--primary { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	.pg-ps a, .pg-ps__tile img { transition: none; }
}

/* All-in-One widget extras: source tabs and "Load more". */
.pg-ps__widget .es-tabs-container { margin-bottom: 18px !important; }
.pg-ps__widget .es-tabs-slider-item { border-radius: 999px !important; padding: 8px 16px !important; color: var(--pg-muted) !important; }
.pg-ps__widget .es-tabs-slider-item * { color: inherit !important; }
.pg-ps__widget .es-tabs-slider-item-active { background: var(--pg-plum) !important; color: #fff !important; }
.pg-ps__widget .es-tabs-slider-item-active::after, .pg-ps__widget .es-tabs-slider-item-active::before { display: none !important; }
.pg-ps__widget .es-tab-rating { font-weight: 600 !important; }
.pg-ps__widget .es-grid-layout { gap: 0 !important; }
.pg-ps__widget .es-grid-layout .es-review-container { padding: 26px 26px 30px !important; border-bottom: 1px solid #e3def3; }
.pg-ps__widget .es-load-more-button {
	min-height: 48px !important;
	padding: 0 26px !important;
	border: 1px solid #ddd8ee !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--pg-ink) !important;
	font-weight: 500 !important;
}
.pg-ps__widget .es-load-more-button:hover { border-color: var(--pg-plum) !important; }
.pg-ps__widget .es-load-more-button * { color: inherit !important; }
.pg-ps__widget .es-load-more-button-container { margin-top: 28px !important; }
