/* Pilgrim Journal article: banner from the featured picture with the title on top,
   then the article's blocks (text, HTML/embed, quote, image, tips list, interview). */

/* Banner */
.pga-banner {
	position: relative; isolation: isolate;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 520px; padding: 56px var(--pg-inline, 48px);
	color: var(--pg-white, #fff);
	background: linear-gradient(90deg, var(--pg-black, #0F1512) 38%, #7A4A3A);
}
.pga-banner--photo {
	background:
		linear-gradient(180deg, rgba(15, 21, 18, .1) 0%, rgba(15, 21, 18, .25) 40%, rgba(15, 21, 18, .85) 100%),
		linear-gradient(90deg, rgba(15, 21, 18, .55) 0%, rgba(15, 21, 18, 0) 70%),
		var(--pga-img) var(--pga-pos, center) / cover no-repeat,
		var(--pg-black, #0F1512);
}
.pga-banner--short { min-height: 360px; }
.pga-banner--tall { min-height: 680px; }
.pga-banner__inner { width: 100%; max-width: 920px; }
html body .pga-banner__meta { margin: 0 0 16px; color: var(--pg-white, #fff); }
html body .pga-banner__meta a { color: inherit; text-decoration: none; }
html body .pga-banner__meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
html body .pga-banner__title {
	margin: 0; max-width: 900px;
	font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-weight: 500;
	font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: 0; text-transform: none;
	color: var(--pg-white, #fff);
	text-wrap: balance;
}

/* Body */
.pga-body { padding-top: 56px; }
html body .pga-intro { margin: 0 0 36px; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 27px; font-weight: 500; line-height: 1.35; color: var(--pg-black, #0F1512); }

/* Pull quote */
.pga-pull { margin: 48px 0; padding: 8px 0 8px 32px; border-left: 2px solid var(--pg-push, #B34A55); }
.pga-pull blockquote { margin: 0; padding: 0; border: 0; background: none; }
html body .pga-pull p { margin: 0; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: clamp(28px, 3.2vw, 38px); font-weight: 500; font-style: normal; line-height: 1.2; color: var(--pg-black, #0F1512); }
.pga-pull p::before { content: '“'; }
.pga-pull p::after { content: '”'; }
.pga-pull figcaption { margin-top: 14px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--pg-muted, #4A4A44); }

/* Text and embeds */
.pga-text > :last-child { margin-bottom: 0; }
.pga-text + .pga-text { margin-top: 1.4em; }
.pga-embed { margin: 40px 0; }
.pga-embed > * { max-width: 100%; }
.pga-embed iframe { display: block; max-width: 100%; margin: 0 auto; border: 0; }
.pga-embed iframe[src*="youtube"], .pga-embed iframe[src*="youtu.be"], .pga-embed iframe[src*="vimeo"],
.pga-text iframe[src*="youtube"], .pga-text iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.pga-text iframe { max-width: 100%; }

/* Images */
.pga-figure { margin: 40px 0; }
.pga-figure img { display: block; width: 100%; height: auto; margin: 0; }
.pga-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--pg-muted, #4A4A44); }

.pga-wide { margin: 48px calc(-1 * min(140px, 9vw)); }
.pga-wide img, .pga-pair img { display: block; width: 100%; height: auto; margin: 0; }
html body .pga-wide img { max-height: 640px; object-fit: cover; }
.pga-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 40px 0; }
.pga-pair__item { margin: 0; }
html body .pga-pair img { aspect-ratio: 4 / 5; object-fit: cover; }
.pga-wide figcaption, .pga-pair figcaption { margin-top: 8px; font-size: 13px; color: var(--pg-muted, #4A4A44); }
.pga-wide figcaption { padding: 0 min(140px, 9vw); }

/* Tips list */
.pga-tips { margin: 48px 0; }
html body .pga-tips h2 { margin: 0 0 20px; }
.pga-tips ol { margin: 0; padding: 0; list-style: none; counter-reset: pga; border-bottom: 1px solid rgba(15, 21, 18, .16); }
.pga-tips li { counter-increment: pga; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 8px; margin: 0; padding: 22px 0; border-top: 1px solid rgba(15, 21, 18, .16); }
.pga-tips li::before { content: counter(pga, decimal-leading-zero); grid-row: span 2; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 40px; line-height: 1; color: var(--pg-push, #B34A55); }
html body .pga-tips h3 { margin: 4px 0 6px; font-size: 24px; }
.pga-tips li p { margin: 0; font-size: 16px; color: var(--pg-muted, #4A4A44); }

/* Interview */
.pga-interview { margin: 40px 0; }
.pga-interview:first-child { margin-top: 0; }
.pga-person { display: flex; align-items: center; gap: 18px; margin: 0 0 36px; padding: 18px 22px; background: var(--pg-sand, #EBE8E1); }
html body .pga-person__photo { flex: none; width: 76px; height: 76px; margin: 0; border-radius: 50%; object-fit: cover; }
html body .pga-person__name { margin: 0; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.pga-person__role { margin: 4px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--pg-muted, #4A4A44); }
.pga-qa { margin: 32px 0; }
html body .pga-qa__q { position: relative; margin: 36px 0 10px; padding-left: 28px; font-size: 25px; line-height: 1.25; }
.pga-qa__q::before { content: 'Q'; position: absolute; left: 0; top: .55em; font-family: var(--pg-sans, 'Jost', sans-serif); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--pg-push, #B34A55); }
.pga-qa__a { padding-left: 28px; }
.pga-qa__a p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	.pga-banner { min-height: 420px; padding: 40px var(--pg-gutter, 20px); }
	.pga-banner--short { min-height: 300px; }
	.pga-banner--tall { min-height: 560px; }
	.pga-body { padding-top: 36px; }
	html body .pga-intro { font-size: 23px; }
	.pga-wide { margin: 36px calc(-1 * var(--pg-gutter, 20px)); }
	.pga-wide figcaption { padding: 0 var(--pg-gutter, 20px); }
	.pga-pair { grid-template-columns: 1fr; }
	.pga-pull { padding-left: 20px; }
	.pga-tips li { grid-template-columns: 48px minmax(0, 1fr); }
	.pga-tips li::before { font-size: 32px; }
}

/* Teacher profile sections (under the bio): same blocks as articles, laid out across the page. */
.pg-teacher__sections { display: flex; flex-direction: column; gap: 72px; margin: 72px 0 0; padding-top: 56px; border-top: 1px solid var(--pg-line, rgba(15, 21, 18, .13)); }
.pg-teacher__sections > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.pg-teacher__sections > :is(.pga-text, .pga-embed, .pga-figure) { width: 100%; max-width: 760px; }
.pg-teacher__sections > .pga-text { font-size: 17px; line-height: 1.75; }
.pg-teacher__sections > .pga-figure { max-width: 480px; }  /* A single photo: a comfortable size, lined up with the text. */
.pg-teacher__sections > .pga-figure img { width: 100%; height: auto; }
.pg-teacher__sections > .pga-wide { margin-left: 0; margin-right: 0; }
.pg-teacher__sections > .pga-wide figcaption { padding: 0; }

/* Quotes that speak to me */
html body :is(.pga-quotes__title, .pga-moves__title) { margin: 0 0 28px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.pga-quotes__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pga-quotes__item { position: relative; margin: 0; padding: 60px 32px 30px; background: var(--pg-sand, #EBE8E1); }
.pga-quotes__item::before {
	content: '“'; position: absolute; top: 4px; left: 26px;
	font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 96px; line-height: 1; color: var(--pg-blush-deep, #E7A9A9);
}
.pga-quotes__item blockquote { margin: 0; padding: 0; border: 0; background: none; }
html body .pga-quotes__item p { margin: 0; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 26px; font-style: normal; font-weight: 500; line-height: 1.28; color: var(--pg-black, #0F1512); }
.pga-quotes__item figcaption { margin-top: 18px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--pg-muted, #4A4A44); }
.pga-quotes__item figcaption::before { content: '— '; }

/* Favourite poses */
.pga-moves__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: pgmv; }
.pga-moves__item { counter-increment: pgmv; margin: 0; }
html body .pga-moves__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; margin: 0; object-fit: cover; background: var(--pg-sand, #EBE8E1); }
.pga-moves__text { padding-top: 16px; }
.pga-moves__text::before { content: counter(pgmv, decimal-leading-zero); display: block; margin-bottom: 4px; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 22px; line-height: 1; color: var(--pg-push, #B34A55); }
html body .pga-moves__name { margin: 0 0 6px; font-size: 26px; line-height: 1.15; }
.pga-moves__text p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--pg-muted, #4A4A44); }

@media (max-width: 767px) {
	.pg-teacher__sections { gap: 48px; margin-top: 48px; padding-top: 40px; }
	.pga-quotes__item { padding: 52px 22px 24px; }
	html body .pga-quotes__item p { font-size: 22px; }
	/* Poses: swipe sideways, one and a bit on screen. */
	.pga-moves__list {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
		overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
		margin-right: calc(-1 * var(--pg-gutter, 20px)); padding: 0 var(--pg-gutter, 20px) 8px 0;
	}
	.pga-moves__item { scroll-snap-align: start; }
}

/* Sections in an article: a heading readers click to open and close (the first starts open) */
.pga-section { margin: 0; border-top: 3px solid var(--pg-black, #0F1512); }
.pga-section + .pga-section { margin-top: 0; }
.pga-body > .pga-section:last-child, .pga-section:not(:has(+ .pga-section)) { border-bottom: 1px solid rgba(15, 21, 18, .2); }
.pga-section + :not(.pga-section) { margin-top: 40px; }
.pga-section__head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 0; cursor: pointer; list-style: none;
}
.pga-section__head::-webkit-details-marker { display: none; }
.pga-section__head::marker { content: ''; }
html body .pga-section__title { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.pga-section__head:hover .pga-section__title { color: var(--pg-push, #B34A55); }
.pga-section__head:focus-visible { outline: 2px solid var(--pg-push, #B34A55); outline-offset: 4px; }
.pga-section__icon { position: relative; flex: none; width: 18px; height: 18px; }
.pga-section__icon::before, .pga-section__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .2s; }
.pga-section__icon::after { transform: rotate(90deg); }
.pga-section[open] .pga-section__icon::after { transform: rotate(0deg); }
.pga-section__body { padding: 0 0 36px; }
.pga-section__body > :first-child { margin-top: 0 !important; }
.pga-section__body > :last-child { margin-bottom: 0 !important; }
