/*
Theme Name: AberMusic Editorial
Theme URI: https://abermusic.wales
Author: Swindells Music Ltd
Description: The AberMusic design with your pages converted into editable blocks, so the page editor shows the same design visitors see. Install alongside the AberMusic theme and preview it safely before switching.
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abermusic-editorial
Tags: block-patterns, full-site-editing, custom-colors, editor-style, wide-blocks
*/

:root {
	--am-shadow: 0 20px 50px rgba(19, 32, 58, 0.07);
	--am-line: var(--wp--preset--color--line);
	--am-gold-mark: #B8904A;
}

/* ---------- Text ---------- */
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 1.375rem;
	line-height: 1.3;
}
.is-style-eyebrow::before {
	content: "";
	flex: none;
	width: 40px;
	height: 1px;
	background: currentColor;
	opacity: 0.8;
}
.is-style-eyebrow.has-text-align-center { justify-content: center; }
.am-section-title { margin-bottom: var(--wp--preset--spacing--60); gap: 0.75rem; }
.am-section-title > * { margin: 0; }
.am-section-title .am-intro, .am-muted { color: var(--wp--preset--color--slate); }
.am-dark .am-muted, .am-dark .am-intro { color: #D5E0DA; }
.am-page-hero .am-muted, .am-page-hero .am-lead, .am-hero .am-lead { color: #E3E8EE; }
h2 em, h3 em { color: var(--wp--preset--color--gold-deep); }
.am-dark h2 em { color: var(--wp--preset--color--gold-light); }
.am-dark a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--gold-light); }
.am-dark a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--cream); }
.am-signature { font-family: var(--wp--preset--font-family--script); font-size: 3.1rem; line-height: 1; margin: 0; }
.am-sign { align-items: center; gap: 1.25rem; }
.am-sign > p { margin: 0; }
.am-numeral { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--am-gold-mark); margin: 0; }
.am-role { color: var(--wp--preset--color--gold-deep); letter-spacing: 0.04em; margin: 0; }
.am-crumbs, .am-crumbs a { color: #C9D3DD; }
.am-lead { max-width: 640px; }

/* ---------- Header ---------- */
.am-header { position: relative; z-index: 20; }
.am-header-bar { gap: 1.5rem; }
.am-logo { margin: 0; }
.am-logo img { height: 58px; width: auto; display: block; }
.am-header-right { gap: 2rem; align-items: center; }
.am-header .wp-block-navigation a { text-decoration: none; }
.am-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold-light); }
.am-header .wp-block-navigation__container { gap: 1.75rem; }
/* Tablet widths: the full menu does not fit, so use the menu button (as on phones). */
.am-header .am-btn-small .wp-block-button__link { white-space: nowrap; }
@media (min-width: 600px) and (max-width: 1080px) {
	.am-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.am-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
/* Dropdown (Music Lessons) */
.am-header .wp-block-navigation .wp-block-navigation__submenu-container { border: 0 !important; border-radius: 10px; padding: 0.6rem 0 !important; min-width: 210px !important; box-shadow: 0 24px 50px rgba(10, 18, 34, 0.35); top: calc(100% + 0.6rem) !important; }
.am-header .wp-block-navigation .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
.am-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 1.4rem !important; font-size: 0.9375rem; }
.am-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--gold-light); background: rgba(255, 255, 255, 0.05); }
.am-header .wp-block-navigation__submenu-icon { margin-left: 0.3rem; width: 0.6em; height: 0.6em; }
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; padding: 0.4rem 0 0 !important; font-size: 1.125rem; font-family: var(--wp--preset--font-family--sans); }
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.35rem 0 !important; }
.am-btn-small .wp-block-button__link { padding: 0.7rem 1.4rem; }
.am-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: 1.5rem; font-family: var(--wp--preset--font-family--serif); }

/* ---------- Homepage hero ---------- */
.am-hero.wp-block-cover { padding-top: 0; align-items: stretch; }
.am-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 200px;
	background: linear-gradient(180deg, rgba(19, 32, 58, 0.55), rgba(19, 32, 58, 0));
	z-index: 1;
	pointer-events: none;
}
.am-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; position: relative; z-index: 2; }
.am-hero .wp-block-cover__inner-container > * { width: 100%; box-sizing: border-box; }
.am-hero .am-header--overlay { padding-left: 0 !important; padding-right: 0 !important; }
.am-hero-content { flex-grow: 1; justify-content: center; gap: 1.75rem; padding: 1.5rem 0 6rem; }
.am-hero-content > * { margin: 0 !important; }
.am-hero-eyebrow { font-family: var(--wp--preset--font-family--sans); font-style: normal; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.06em; }
.am-hero-title { line-height: 0.88 !important; letter-spacing: -0.02em; text-shadow: 0 4px 40px rgba(10, 20, 35, 0.35); }
.am-hero .am-lead { max-width: 520px; }
.am-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link { box-shadow: 0 12px 30px rgba(10, 20, 35, 0.35); }
.am-hero .is-style-outline .wp-block-button__link { border-color: rgba(247, 241, 230, 0.6); color: var(--wp--preset--color--cream); }

@keyframes am-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes am-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.am-hero .wp-block-cover__image-background { animation: am-zoom 18s ease-out both; }
.am-hero-content > :nth-child(1) { animation: am-rise 0.9s ease-out 0.1s both; }
.am-hero-content > :nth-child(2) { animation: am-rise 0.9s ease-out 0.35s both; }
.am-hero-content > :nth-child(n+3) { animation: am-rise 0.9s ease-out 0.6s both; }
@media (prefers-reduced-motion: reduce) {
	.am-hero .wp-block-cover__image-background, .am-hero-content > * { animation: none !important; }
}

/* ---------- Credentials ---------- */
.am-credentials { border-bottom: 1px solid #E8DFCF; }
.am-credentials .wp-block-group.is-layout-grid { gap: 0; }
.am-cred { text-align: center; padding: 2.25rem 1rem; border-right: 1px solid #E8DFCF; }
.am-cred:last-child { border-right: 0; }
.am-cred > p { margin: 0; }
.am-cred-title { font-family: var(--wp--preset--font-family--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.am-cred-sub { font-size: 0.875rem; color: #5B6274; }

/* ---------- Cards and images ---------- */
.is-style-am-card {
	background: var(--wp--preset--color--white);
	border-radius: 12px;
	box-shadow: var(--am-shadow);
	padding: clamp(1.75rem, 3vw, 2.5rem);
}
.is-style-am-card > * { margin-block: 0; }
.is-style-am-card > * + * { margin-block-start: 0.6rem; }
.am-featured { box-shadow: 0 30px 60px rgba(57, 98, 120, 0.3); transform: translateY(-12px); }
.am-featured .am-tier { color: var(--wp--preset--color--gold-light); }
.am-fees { align-items: stretch; }
.am-tier { font-style: italic; font-size: 1.625rem !important; }
.am-price { font-family: var(--wp--preset--font-family--serif); font-size: 4rem; line-height: 1; }
.am-from { font-family: var(--wp--preset--font-family--sans); font-size: 1rem; margin-right: 0.5rem; vertical-align: middle; }
.am-card-big { font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.am-card-big a { color: inherit; text-decoration: none; }
.am-card-quote { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.6rem; line-height: 1.3; }
.am-card-quote::before { content: "\201C"; display: block; font-style: normal; font-size: 4rem; line-height: 0.5; height: 1.75rem; color: var(--am-gold-mark); }

.is-style-am-arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 999px 999px 12px 12px; box-shadow: 0 30px 60px rgba(19, 32, 58, 0.12); }
.am-instrument .is-style-am-arch img { aspect-ratio: 3 / 4; object-position: 50% 50%; box-shadow: none; }
.am-teacher .is-style-am-arch img { box-shadow: none; }
.is-style-am-rounded img, .wp-block-post-featured-image.is-style-am-rounded img { border-radius: 12px; }
.am-hero-photo img { width: 100%; height: 360px; object-fit: cover; box-shadow: 0 30px 60px rgba(10, 20, 35, 0.3); }
.am-instrument { gap: 0.4rem; }
.am-instrument > * { margin: 0; }
.am-instrument .wp-block-image { margin-bottom: 1rem; }
.am-instrument h3 { font-size: 1.875rem; }
.am-instrument h3 a { color: inherit; text-decoration: none; }

/* ---------- Testimonial ---------- */
.am-quote { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: clamp(1.9rem, 3.4vw, 2.875rem); line-height: 1.2; }
.am-quote::before { content: "\201C"; display: block; font-style: normal; font-size: 6rem; line-height: 0.6; height: 3rem; color: var(--wp--preset--color--gold); }

/* ---------- Contact panel ---------- */
.am-panel { background: rgba(247, 241, 230, 0.06); border: 1px solid rgba(230, 203, 147, 0.25); border-radius: 12px; padding: clamp(1.5rem, 3vw, 2.25rem); gap: 0; }
.am-panel-title { font-family: var(--wp--preset--font-family--serif); font-size: 1.75rem; font-weight: 500; margin: 0 0 0.5rem; }
.am-row { margin: 0; width: 100%; }
.am-row a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; min-height: 56px; border-bottom: 1px solid rgba(230, 203, 147, 0.25); color: var(--wp--preset--color--cream) !important; text-decoration: none; }
.am-row:last-child a { border-bottom: 0; }
.am-row a span:last-child { color: var(--wp--preset--color--gold-light); }

/* ---------- Lists, questions, boxes ---------- */
.is-style-am-dash { list-style: none; padding: 0; border-top: 1px solid var(--am-line); }
.is-style-am-dash li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--am-line); }
.is-style-am-dash li::before { content: "\2014"; position: absolute; left: 0; color: var(--am-gold-mark); }
.wp-block-details { border-bottom: 1px solid var(--am-line); padding: 1.1rem 0; }
.wp-block-details summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; font-weight: 500; cursor: pointer; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--sans); font-size: 1.5rem; color: var(--wp--preset--color--gold-deep); }
.wp-block-details[open] summary::after { content: "\2013"; }
.wp-block-details > p { color: #3B4357; }
.am-box { border: 1px solid var(--am-line); border-radius: 12px; padding: 1.5rem; }
.am-box > * { margin: 0; }
.am-box > * + * { margin-top: 0.4rem; }
.am-step { gap: 0.25rem; }
.am-step > * { margin: 0; }
.am-step h3 { font-size: 1.6rem; }
.am-embed { border: 2px dashed #CDBF9F; border-radius: 10px; padding: 2rem; text-align: center; color: var(--wp--preset--color--slate); background: var(--wp--preset--color--ivory); }
.am-map { width: 100%; height: 460px; border: 0; border-radius: 12px; display: block; }
.am-login-card { border-radius: 14px; padding: clamp(1.75rem, 5vw, 3rem); box-shadow: 0 30px 70px rgba(10, 20, 35, 0.3); gap: 1rem; }
.am-login-card > * { margin: 0; }
.am-login-foot { border-top: 1px solid var(--am-line); padding-top: 1rem; }

/* ---------- Page content (policies, plain pages, posts) ---------- */
.am-page-content { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--80); }
.am-page-content h2 { font-size: 2.1rem; font-weight: 600; margin-top: 2.5rem; }
.am-page-content h3 { font-size: 1.6rem; margin-top: 2rem; }
.am-page-content table { border-collapse: collapse; width: 100%; }
.am-page-content td, .am-page-content th { border-top: 1px solid var(--am-line); padding: 0.75rem 0.5rem; text-align: left; }
.am-page-content > .alignfull.am-page-hero:first-child { margin-top: calc(-1 * var(--wp--preset--spacing--70)); }

/* ---------- Journal ---------- */
.am-post-grid { gap: 3rem 1.75rem; }
.am-post-grid > li > * { margin: 0 0 0.6rem; }
.am-post-grid .wp-block-post-title a { color: inherit; text-decoration: none; }
.am-post-grid .wp-block-post-featured-image { margin-bottom: 1rem; }
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--60); }

/* ---------- Footer ---------- */
.am-footer { font-size: 0.875rem; }
.am-footer p { margin: 0; }
.am-footer-logo img { height: 80px; width: auto; }
.am-tagline { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.2rem; }
.am-footer-h strong { color: var(--wp--preset--color--cream); font-weight: 500; }
.am-footer a { color: var(--wp--preset--color--cream); }
.am-footer-bottom { border-top: 1px solid rgba(230, 203, 147, 0.3); margin-top: var(--wp--preset--spacing--60) !important; padding-top: 1.25rem; }
.am-legal { font-size: 0.75rem; color: #BFCAD5; }
.am-legal a { color: #BFCAD5; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.am-hero.wp-block-cover { min-height: 640px !important; }
	.am-hero-content { padding-bottom: 3.5rem; }
	.am-logo img { height: 46px; }
	.am-header-right { gap: 1rem; }
	.am-featured { transform: none; }
	.am-cred { border-right: 0; border-bottom: 1px solid #E8DFCF; padding: 1.25rem 0.5rem; }
	.am-hero-photo img { height: 260px; }
	.am-map { height: 320px; }
	.wp-block-details summary { font-size: 1.35rem; }
}
@media (max-width: 600px) {
	.am-header .am-btn-small { display: none; }
}

/* ---------- Sections sit flush against each other ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
.am-main > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; }
.wp-block-post-content > .alignfull:last-child { margin-block-end: 0; }

/* Grids: fill the row whatever the item count, and wrap on small screens */
.am-fit.is-layout-grid, .am-post-grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(var(--am-min, 16rem), 100%), 1fr)) !important; }
.am-min-11 { --am-min: 11rem; }
.am-min-13 { --am-min: 13rem; }
.am-min-16 { --am-min: 16rem; }
.am-min-20 { --am-min: 20rem; }
.am-post-grid { --am-min: 18rem; }

/* Your own page content inside designed templates (sign-up and login embeds, testimonials) */
.am-embed-content > :first-child { margin-top: 0; }
.am-embed-content iframe { width: 100%; border: 0; min-height: 600px; }
.am-login-card .am-embed-content iframe { min-height: 380px; }
.am-login-card > .am-embed-content, .am-login-card > .wp-block-post-content { align-self: stretch; width: 100%; }

/* ---------- Footer badge ---------- */
.am-badge { margin-top: 1rem !important; }
.am-badge img { width: 120px; height: auto; background: var(--wp--preset--color--cream); border-radius: 10px; padding: 10px 14px; box-sizing: content-box; }
.am-footer-links { line-height: 2; }

/* ---------- Policy pages ---------- */
.am-policy .wp-block-columns { gap: clamp(2rem, 5vw, 5rem); align-items: flex-start !important; }
.am-policy-aside { position: sticky; top: 2rem; gap: 0.5rem; }
.am-policy-aside > * { margin: 0; }
.am-aside-h { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--gold-deep); font-weight: 500; margin-top: 1.25rem !important; }
.am-aside-h:first-child { margin-top: 0 !important; }
.am-toc ol { list-style: none; margin: 0; padding: 0; }
.am-toc li { border-bottom: 1px solid var(--am-line); }
.am-toc a { display: block; padding: 8px 0; font-size: 0.9375rem; color: var(--wp--preset--color--navy); text-decoration: none; line-height: 1.4; }
.am-toc a:hover { color: var(--wp--preset--color--gold-deep); }
.am-policy-links { line-height: 2.1; }
.am-policy-content { max-width: 760px; color: #2C3345; }
.am-policy-content > h1:first-child { display: none; }
.am-policy-content > hr, .am-policy-content > .wp-block-separator { display: none; }
.am-policy-content > p:first-of-type, .am-policy-content > h1:first-child + p, .am-policy-content > h1:first-child + p + p { font-size: 0.9375rem; color: var(--wp--preset--color--slate); }
.am-policy-content h2 { font-size: 2rem; font-weight: 600; color: var(--wp--preset--color--navy); margin-top: 2.75rem; scroll-margin-top: 2rem; }
.am-policy-content h2:first-of-type { margin-top: 1.5rem; }
.am-policy-content h3 { font-size: 1.5rem; margin-top: 2rem; }
.am-policy-content ul, .am-policy-content ol { padding-left: 1.4rem; }
.am-policy-content li { margin: 0.35rem 0; }
.am-policy-content li::marker { color: var(--am-gold-mark); }
@media (max-width: 781px) {
	.am-policy-aside { position: static; }
	.am-toc { max-height: 320px; overflow: auto; }
}

/* ---------- Testimonials page (your own reviews, rebuilt as quote cards in functions) ---------- */
.am-t-wrap { max-width: calc(1200px + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right)); margin: 0 auto !important; padding: var(--wp--preset--spacing--90) var(--wp--style--root--padding-right) var(--wp--preset--spacing--90) var(--wp--style--root--padding-left); box-sizing: border-box; }
.am-t-lead { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; margin-bottom: 1.75rem; }
.am-t-lead.has-photo { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.am-t-photo { margin: 0; }
.am-t-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 12px 12px; }
.am-t-lead-text > * { margin: 0; }
.am-t-lead-text > * + * { margin-top: 1rem; }
.am-t-big { font-size: clamp(1.75rem, 3vw, 2.35rem) !important; line-height: 1.25 !important; }
.am-t-more summary { cursor: pointer; font-size: 0.9375rem; letter-spacing: 0.04em; color: var(--wp--preset--color--steel); list-style: none; }
.am-t-more summary::-webkit-details-marker { display: none; }
.am-t-more summary::after { content: " +"; color: var(--am-gold-mark); }
.am-t-more[open] summary::after { content: " \2212"; }
.am-t-more p { color: #3B4357; margin: 0.9rem 0 0; }
.am-t-grid { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.75rem; }
.am-t-card { margin: 0 !important; }
@media (max-width: 700px) {
	.am-t-lead.has-photo { grid-template-columns: 1fr; }
	.am-t-photo { max-width: 260px; margin: 0 auto; }
}

/* ---------- About page (your own text, laid out by inc/about.php) ---------- */
.am-ab > .am-ab-section { margin: 0 !important; padding: var(--wp--preset--spacing--90) var(--wp--style--root--padding-right) var(--wp--preset--spacing--90) var(--wp--style--root--padding-left); }
.am-ab-sand { background: var(--wp--preset--color--sand); }
.am-ab-narrow { max-width: 760px; margin: 0 auto; }
.am-ab-narrow > *, .am-ab-text > * { margin: 0; }
.am-ab-narrow > * + *, .am-ab-text > * + * { margin-top: 1.1rem; }
.am-ab p { color: #3B4357; }
.am-ab .am-ab-lead { font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--wp--preset--color--navy); }
.am-ab-h { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 500; line-height: 1.1; }
.am-ab-eyebrow + .am-ab-h { margin-top: 0.5rem !important; }
.am-ab-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.am-ab-flip .am-ab-photo { order: 2; }
.am-ab-photo { margin: 0; }
.am-ab-photo img, .am-ab-extra img { display: block; width: 100%; height: auto; border-radius: 999px 999px 12px 12px; box-shadow: 0 30px 60px rgba(19, 32, 58, 0.12); }
.am-ab-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.am-ab-extra { max-width: 760px; margin: 3rem auto 0; }
.am-ab-extra img { border-radius: 12px; }
.am-ab-note-wrap { padding-top: 0 !important; padding-bottom: var(--wp--preset--spacing--80) !important; }
.am-ab-note { max-width: 760px; margin: 0 auto !important; padding: 1.5rem 1.75rem; border-left: 3px solid var(--wp--preset--color--gold); background: var(--wp--preset--color--white); border-radius: 0 12px 12px 0; box-shadow: var(--am-shadow); font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--wp--preset--color--navy) !important; }
.am-ab-quote { margin: 1.5rem 0 0; padding: 1.5rem 1.75rem; background: var(--wp--preset--color--white); border-radius: 12px; font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.35rem; }
.am-ab-tcard { margin-top: 1.5rem !important; }
.am-ab-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.am-ab img { max-width: 100%; }
@media (max-width: 781px) {
	.am-ab > .am-ab-section { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
	.am-ab-inner { grid-template-columns: 1fr; }
	.am-ab-flip .am-ab-photo { order: 0; }
	.am-ab-photo { max-width: 340px; margin: 0 auto; }
}

/* ---------- Teacher pages (full bio from the page itself) ---------- */
.am-teacher-content > h1:first-child { display: none; }
.am-teacher-content > hr, .am-teacher-content > .wp-block-separator { display: none; }
.am-teacher-content .wp-block-image img, .am-teacher-content > figure img { border-radius: 999px 999px 12px 12px; box-shadow: 0 30px 60px rgba(19, 32, 58, 0.12); max-width: 420px; width: 100%; height: auto; }
.am-teacher-content .wp-block-image { text-align: center; }
.am-teacher-content .wp-block-image > img, .am-teacher-content .wp-block-image a > img { margin-inline: auto; }
.am-teacher-content h2 { font-size: 2rem; font-weight: 500; margin-top: 2.5rem; }
.am-teacher-content h3 { font-size: 1.5rem; margin-top: 2rem; }
.am-teacher-content > p { color: #3B4357; }
.am-teacher-content blockquote, .am-teacher-content .wp-block-quote { background: var(--wp--preset--color--white); border: 0; border-radius: 12px; box-shadow: var(--am-shadow); padding: 2rem 2.25rem; margin: 2.5rem 0; }
.am-teacher-content blockquote p:first-of-type { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; }
.am-teacher-content blockquote cite { font-size: 0.9375rem; font-style: normal; color: var(--wp--preset--color--gold-deep); }
.am-teacher-content .wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); }

/* ===================== AberMusic Editorial ===================== */
/* Homepage: header sits over the photo at the top of the page content. */
.am-ed-front-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; margin: 0 !important; }
.am-ed-front-header .am-header--overlay { padding-left: 0 !important; padding-right: 0 !important; }
body.home .wp-site-blocks, body.page-template-front-page .wp-site-blocks { position: relative; }
.am-ed-content > .am-hero .wp-block-cover__inner-container { padding-top: clamp(6rem, 12vh, 9rem); }
.am-ed-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* About and teacher pages, as blocks */
.am-ab-lead { font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem) !important; line-height: 1.35; color: var(--wp--preset--color--navy); }
.am-ab-cols { gap: clamp(2rem, 6vw, 6rem) !important; }
.am-ab-cols .wp-block-column > * { margin-block: 0; }
.am-ab-cols .wp-block-column > * + * { margin-block-start: 1.1rem; }
.am-ab-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.am-ab-note-wrap { margin-top: 0 !important; }
.am-ab-tcard { margin-top: 1.5rem !important; }

/* Testimonials, as blocks */
.am-t-lead { margin-bottom: 1.75rem !important; }
.am-t-lead-cols { gap: clamp(1.75rem, 4vw, 3.5rem) !important; margin: 0 !important; }
.am-t-lead-cols img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.am-t-grid { align-items: start; }
.wp-block-details.am-t-more { margin-top: 0.9rem; }
.wp-block-details.am-t-more > p { margin: 0.8rem 0 0; color: #3B4357; font-size: 1rem; }
@media (max-width: 781px) {
	.am-t-lead-cols .wp-block-column:first-child { max-width: 260px; margin: 0 auto; }
	.am-ab-cols .wp-block-column:has(.am-ab-photo) { max-width: 340px; margin: 0 auto; }
}
