/* Smile More Child Care: "the sunny classroom wall" */

:root {
	--sun: #FFD54F;
	--sky: #57BCEB;
	--sky-ink: #1E7DB0;
	--coral: #F47C70;
	--green: #91C788;
	--cream: #FFF9EF;
	--cream-deep: #FDF0D9;
	--butter: #FFF5D6;
	--font-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
	--navy: #26354A;
	--navy-soft: #4A5A70;
	--paper: #FFFFFF;
	--navy-deep: #1D2939;
	--sun-ink: #8F5208;
	--error: #B42318;

	/* The wall sign's crayon letters, deepened slightly to read on cream */
	--crayon-pink: #E5486C;
	--crayon-orange: #F08A2C;
	--crayon-lime: #74B243;
	--crayon-blue: #2F9BD6;
	--crayon-purple: #9A6FC4;

	--font-display: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--gutter: clamp(16px, 4.5vw, 48px);
	--section-space: clamp(64px, 9vw, 120px);
	--header-h: 96px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--navy);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Hidden means hidden, even for elements styled as flex or grid */
[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.3vw, 2.2rem); line-height: 1.18; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--sky-ink); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--navy); }

:focus-visible {
	outline: 3px solid var(--sky-ink);
	outline-offset: 3px;
	border-radius: 6px;
}

.wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	background: var(--navy);
	color: var(--cream);
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons: clean, softly rounded rectangles */
.btn {
	--btn-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 26px;
	border-radius: var(--btn-radius);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-decoration: none;
	color: var(--navy);
	border: 1.5px solid var(--navy);
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { border-radius: var(--btn-radius); }
.btn-primary {
	background: var(--sun);
	border-color: #E8B830;
	box-shadow: 0 1px 2px rgba(38, 53, 74, 0.08), 0 4px 12px -4px rgba(38, 53, 74, 0.22);
}
.btn-primary:hover {
	color: var(--navy);
	background: #FFCD38;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(38, 53, 74, 0.08), 0 8px 18px -6px rgba(38, 53, 74, 0.28);
}
.btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(38, 53, 74, 0.12);
}
.btn-secondary {
	background: var(--paper);
	box-shadow: 0 1px 2px rgba(38, 53, 74, 0.06);
}
.btn-secondary:hover { color: var(--navy); background: var(--cream-deep); }
.btn-secondary:active { background: #F8E6C6; }

/* Header */
.site-header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 50;
	background: rgba(255, 249, 239, 0.94);
	backdrop-filter: saturate(140%) blur(8px);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(38, 53, 74, 0.1); }

.header-inner {
	max-width: 1320px;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding-block: 8px;
	border-radius: 8px;
}
.brand-logo {
	width: 230px;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

@media (max-width: 600px) {
	.brand-logo { width: 165px; }
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}
.site-nav ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav ul a {
	display: block;
	padding: 8px 9px;
	border-radius: 8px;
	color: var(--navy);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.96rem;
	letter-spacing: -0.005em;
	white-space: nowrap;
}
.site-nav ul a:hover { background: var(--cream-deep); }
.nav-cta { min-height: 46px; padding: 10px 20px; font-size: 1rem; white-space: nowrap; }

.menu-toggle { display: none; }

/* Narrow laptops: tighten spacing so all links and the button still fit */
@media (min-width: 1280px) and (max-width: 1380px) {
	.header-inner { gap: 16px; }
	.site-nav { gap: 12px; }
	.site-nav ul a { padding-inline: 6px; }
}

@media (max-width: 1279px) {
	.menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		margin-left: auto;
		min-height: 48px;
		padding: 10px 16px;
		border: 1.5px solid var(--navy);
		border-radius: 10px;
		background: var(--paper);
		color: var(--navy);
		font: 600 0.98rem var(--font-display);
		cursor: pointer;
	}
	.menu-toggle-bars,
	.menu-toggle-bars::before,
	.menu-toggle-bars::after {
		display: block;
		width: 18px;
		height: 2.5px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
	.menu-toggle-bars { position: relative; }
	.menu-toggle-bars::before,
	.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle-bars::before { top: -6px; }
	.menu-toggle-bars::after { top: 6px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		margin: 0;
		padding: 12px var(--gutter) 24px;
		background: var(--cream);
		border-bottom: 2px solid var(--navy);
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
	}
	.site-nav:not(.is-open) { display: none; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a {
		padding: 14px 4px;
		border-radius: 0;
		border-bottom: 1px solid rgba(38, 53, 74, 0.12);
		font-size: 1.1rem;
	}
	.site-nav ul a:hover { background: none; color: var(--sky-ink); }
	.nav-cta { min-height: 54px; font-size: 1.1rem; }
}

/* Hero */
.hero {
	position: relative;
	padding-block: clamp(32px, 6vw, 72px) clamp(72px, 9vw, 120px);
	background: var(--cream);
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.hero-copy { max-width: 34rem; }
.hero-copy h1 { margin-bottom: 0.4em; }
.hero-lede {
	font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.6;
	color: var(--navy-soft);
	max-width: 30rem;
	margin-bottom: 1.8em;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 2.2em;
}
.hero-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	font-weight: 500;
}
.hero-facts li { display: flex; align-items: center; gap: 12px; }
.hero-facts svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	fill: none;
	stroke: var(--crayon-pink);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.hero-facts li:nth-child(2) svg { stroke: var(--crayon-blue); }
.hero-facts li:nth-child(3) svg { stroke: #3FA34D; }

.hero-media {
	position: relative;
	padding: 7% 7% 2% 3%;
}
.hero-sun {
	position: absolute;
	top: -4%;
	right: -2%;
	width: 34%;
	max-width: 190px;
	z-index: 0;
	animation: sun-rise 1.1s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.hero-photo {
	position: relative;
	z-index: 1;
}
.hero-photo img {
	width: 100%;
	aspect-ratio: 862 / 900;
	object-fit: cover;
	border-radius: 46% 54% 44% 56% / 40% 42% 58% 60%;
	border: 6px solid var(--paper);
	box-shadow: 0 18px 40px -22px rgba(38, 53, 74, 0.45);
}

/* A printed photo "pinned" to the wall */
.hero-print,
.why-print {
	background: var(--paper);
	padding: 10px 10px 14px;
	border-radius: 6px;
	box-shadow: 0 14px 30px -18px rgba(38, 53, 74, 0.5);
}
.hero-print figcaption,
.why-print figcaption {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 0.92rem;
	color: var(--navy-soft);
	text-align: center;
	padding-top: 8px;
}
.hero-print {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	width: 40%;
	transform: rotate(4deg);
}
.hero-print img { border-radius: 3px; }
.hero-print::before,
.why-print::before {
	/* a strip of washi tape */
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 84px;
	height: 24px;
	transform: translateX(-50%) rotate(-3deg);
	background: rgba(87, 188, 235, 0.55);
	border-radius: 2px;
}

.edge {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: clamp(28px, 4vw, 60px);
	fill: var(--cream-deep);
}

@keyframes sun-rise {
	from { opacity: 0; transform: translateY(24px) rotate(-40deg) scale(0.85); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-copy { max-width: none; }
	.hero-media {
		max-width: 520px;
		width: 100%;
		margin-inline: auto;
		padding: 6% 7% 0 3%;
	}
	.hero-sun { width: 30%; top: -6%; }
}
@media (max-width: 480px) {
	.hero-actions .btn { flex: 1 1 100%; }
	.hero-print { width: 52%; }
}

/* Welcome */
.welcome {
	background: var(--cream-deep);
	padding-block: var(--section-space);
}
.welcome-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(36px, 6vw, 88px);
	align-items: center;
}
.welcome-media {
	position: relative;
	max-width: 620px;
	width: 100%;
	justify-self: center;
}
.welcome-media img {
	position: relative;
	z-index: 1;
	width: 100%;
	/* the photo's own landscape shape, so all six children stay in frame */
	aspect-ratio: 1086 / 666;
	object-fit: cover;
	border-radius: 16px;
}
.scribble {
	position: absolute;
	inset: -12% -16% auto auto;
	width: 70%;
	z-index: 0;
	fill: none;
	stroke: var(--sun);
	stroke-width: 14;
	stroke-linecap: round;
	opacity: 0.9;
}
.welcome-copy { max-width: 36rem; }
.welcome-copy p { font-size: 1.1rem; }

/* Decorations may peek past their photos but never cause sideways scrolling */
.hero,
.welcome { overflow-x: clip; }

@media (max-width: 860px) {
	.welcome-grid { grid-template-columns: 1fr; }
	.welcome-media { max-width: 560px; }
	.scribble { inset: -8% -6% auto auto; width: 56%; }
	.welcome-copy { order: -1; }
}

/* Why families choose us */
.why { padding-block: var(--section-space); }
.why-title { max-width: 18ch; margin-bottom: clamp(32px, 5vw, 56px); }
.why-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: start;
}
.why-print {
	position: relative;
	transform: rotate(-2deg);
	max-width: 540px;
	margin-top: 12px;
}
.why-print img { border-radius: 3px; }
.why-print::before { background: rgba(145, 199, 136, 0.65); }

.why-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 30px;
}
.why-list li {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}
.why-list h3 { margin-bottom: 0.25em; }
.why-list p { margin: 0; color: var(--navy-soft); }

.doodle {
	width: 52px;
	height: 52px;
	fill: none;
	stroke: var(--navy);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.doodle .fill-coral { fill: var(--coral); }
.doodle .fill-yellow { fill: var(--sun); }
.doodle .fill-blue { fill: var(--sky); }
.doodle .fill-green { fill: var(--green); }

@media (max-width: 860px) {
	.why-grid { grid-template-columns: 1fr; }
	.why-print { margin-inline: auto; width: 92%; }
}

/* Shared section heading */
.section-head {
	max-width: 40rem;
	margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head p {
	font-size: 1.1rem;
	color: var(--navy-soft);
	margin: 0;
}

/* Programs: a classroom growth chart */
.programs {
	position: relative;
	background: var(--cream-deep);
	padding-block: calc(var(--section-space) + 24px) var(--section-space);
}
.edge-top {
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: clamp(28px, 4vw, 60px);
	fill: var(--cream);
}
.growth-scale {
	display: flex;
	justify-content: space-between;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--navy-soft);
	margin-bottom: 10px;
}
.growth-stages {
	--stage-gap: clamp(20px, 3vw, 40px);
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 var(--stage-gap);
}
.stage {
	position: relative;
	padding-top: 44px;
}
/* Each stage is one colored stretch of the ruler, with tick marks along its lower edge */
.stage::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: calc(-1 * var(--stage-gap));
	height: 16px;
	background:
		repeating-linear-gradient(90deg, rgba(38, 53, 74, 0.32) 0 1.5px, transparent 1.5px 22px) left bottom / 100% 6px no-repeat,
		var(--stage-color);
}
.stage:first-child::before { border-radius: 8px 0 0 8px; }
.stage:last-child::before { right: 0; border-radius: 0 8px 8px 0; }
.stage-infants { --stage-color: var(--coral); }
.stage-toddlers { --stage-color: var(--sun); }
.stage-preschool { --stage-color: var(--sky); }
.stage-schoolage { --stage-color: var(--green); }
.stage h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.stage p { color: var(--navy-soft); margin-bottom: 0.6em; }
.stage-extra { font-size: 0.95rem; }

.programs-note {
	margin: clamp(40px, 5vw, 56px) 0 0;
	padding-top: 24px;
	border-top: 1px solid rgba(38, 53, 74, 0.14);
	font-weight: 500;
}
.programs-note a { font-weight: 700; white-space: nowrap; }

@media (max-width: 860px) {
	.growth { display: grid; }
	.growth-scale { display: contents; }
	.growth-scale span:first-child { margin-bottom: 10px; }
	.growth-scale span:last-child { order: 2; margin-top: 10px; }
	.growth-stages { grid-template-columns: 1fr; }
	.stage { padding: 0 0 28px 40px; }
	.stage::before {
		top: 0;
		bottom: 0;
		right: auto;
		width: 16px;
		height: auto;
		background:
			repeating-linear-gradient(180deg, rgba(38, 53, 74, 0.32) 0 1.5px, transparent 1.5px 22px) right top / 6px 100% no-repeat,
			var(--stage-color);
	}
	.stage:first-child::before { border-radius: 8px 8px 0 0; }
	.stage:last-child::before { right: auto; border-radius: 0 0 8px 8px; }
	.stage:last-child { padding-bottom: 4px; }
}

/* A day full of discovery: the sun's path from morning to afternoon */
.day { padding-block: var(--section-space); }
.sun-path {
	/* --arc is how far the first and last suns sit below the midday high point */
	--arc: 84px;
	--gap: 20px;
	position: relative;
	list-style: none;
	margin: 0 0 clamp(64px, 8vw, 104px);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--gap);
	text-align: center;
}
.sun-path::before {
	/* half an ellipse running from the first sun to the last, through the others */
	content: "";
	position: absolute;
	top: 12px;
	left: calc((100% - 5 * var(--gap)) / 12);
	right: calc((100% - 5 * var(--gap)) / 12);
	height: var(--arc);
	border: 2px dashed rgba(232, 184, 48, 0.75);
	border-bottom: 0;
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	pointer-events: none;
}
.sun-path li { position: relative; }
.sun-path li:nth-child(1),
.sun-path li:nth-child(6) { margin-top: var(--arc); }
.sun-path li:nth-child(2),
.sun-path li:nth-child(5) { margin-top: calc(var(--arc) * 0.2); }
.sun-dot {
	display: block;
	width: 26px;
	height: 26px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--sun);
	border: 4px solid var(--cream);
	box-shadow: 0 0 0 2px rgba(232, 184, 48, 0.75);
}
.sun-time {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--sun-ink);
	margin: 0 0 0.3em;
}
.sun-path h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.sun-path p:last-child {
	font-size: 0.95rem;
	color: var(--navy-soft);
	margin: 0;
}

@media (max-width: 1100px) {
	.sun-path { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
	.sun-path::before { display: none; }
	.sun-path li:nth-child(n) { margin-top: 0; }
}
@media (max-width: 640px) {
	.sun-path {
		grid-template-columns: 1fr;
		gap: 0;
		text-align: left;
	}
	.sun-path li { padding: 0 0 28px 44px; }
	.sun-path li::before {
		/* the day as a vertical dashed line */
		content: "";
		position: absolute;
		left: 12px;
		top: 26px;
		bottom: 0;
		border-left: 2px dashed rgba(232, 184, 48, 0.75);
	}
	.sun-path li:last-child::before { display: none; }
	.sun-dot { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Media tiles: one 4:5 frame everywhere, caption underneath so nothing covers a face */
.media-card { margin: 0; }
.media-frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 12px;
	background: var(--cream-deep);
}
.media-frame picture,
.media-frame img,
.media-frame video {
	display: block;
	width: 100%;
	height: 100%;
}
.media-frame img,
.media-frame video { object-fit: cover; }
.media-frame video { background: var(--navy); }
.media-card figcaption,
.carousel-slide figcaption {
	margin-top: 12px;
	padding-left: 12px;
	border-left: 3px solid var(--sun);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
}
.caption-kind {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 7px;
	border-radius: 6px;
	background: var(--navy);
	color: var(--cream);
	font-size: 0.75rem;
	font-weight: 700;
	vertical-align: 1px;
}
/* Shown only in the local preview, on media still waiting for permission */
.pending-tag {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(38, 53, 74, 0.88);
	color: var(--cream);
	font-size: 0.75rem;
	font-weight: 700;
	pointer-events: none;
}

/* Photo tiles that open the lightbox */
.media-open {
	padding: 0;
	border: 0;
	cursor: zoom-in;
}
.media-open img { transition: transform 0.4s ease; }
.media-open:hover img { transform: scale(1.03); }
.media-open:focus-visible { outline-offset: 3px; border-radius: 12px; }

/* Video tiles: native controls plus a clear play button over the poster */
.video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%);
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--navy);
	box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.45);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
}
.video-play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.video-play:hover { background: var(--sun); transform: translate(-50%, -50%) scale(1.05); }

/* Homepage slideshow */
.carousel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.gallery-title { font-size: 1.5rem; margin: 0; }
.carousel-controls { display: flex; gap: 8px; flex-shrink: 0; }
.carousel-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid rgba(38, 53, 74, 0.35);
	border-radius: 10px;
	background: var(--paper);
	color: var(--navy);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.carousel-btn:hover { background: var(--cream-deep); border-color: var(--navy); }
.carousel-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.carousel-toggle .icon-play { fill: currentColor; stroke: none; display: none; }
.carousel-toggle.is-paused .icon-play { display: block; }
.carousel-toggle.is-paused .icon-pause { display: none; }
.carousel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 20px) / 4);
	column-gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
	margin: 0;
	scroll-snap-align: start;
}
.carousel-foot {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

@media (max-width: 1000px) {
	.carousel-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); column-gap: 16px; }
}
@media (max-width: 640px) {
	/* one photo with a peek of the next, so it reads as swipeable */
	.carousel-track { grid-auto-columns: 78%; column-gap: 14px; }
	.carousel-foot .btn { width: 100%; }
}

/* Homepage graduates preview */
.grad-preview { margin-top: clamp(56px, 7vw, 96px); }
.grad-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 20px;
}
.grad-head h3 { font-size: 1.5rem; margin: 0; }
.grad-link { font-weight: 700; }
.grad-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	max-width: 840px;
}
@media (max-width: 520px) {
	.grad-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grad-row > :nth-child(3) { display: none; }
}

/* Monthly activity */
.art-wall {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
	margin-top: clamp(56px, 7vw, 96px);
	padding: clamp(28px, 5vw, 56px);
	background: var(--cream-deep);
	border-radius: 24px;
}
.art-print {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: 400px;
	padding: 12px;
	background: var(--paper);
	border-radius: 6px;
	box-shadow: 0 14px 30px -18px rgba(38, 53, 74, 0.5);
	transform: rotate(-2deg);
}
.art-print img { border-radius: 3px; }
.art-print::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 84px;
	height: 24px;
	transform: translateX(-50%) rotate(3deg);
	background: rgba(244, 124, 112, 0.5);
	border-radius: 2px;
}
.art-copy { max-width: 32rem; }
.art-copy h3 { font-size: 1.5rem; }
.art-copy p { color: var(--navy-soft); }
.art-copy p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
	.art-wall { grid-template-columns: 1fr; }
	.art-print { max-width: 320px; }
}

/* Team */
.team {
	background: var(--cream-deep);
	padding-block: var(--section-space);
}
.team-grid {
	/* one size for every staff portrait; height always follows from width at 4:5 */
	--portrait-w: 360px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(40px, 7vw, 112px);
	row-gap: 0;
	align-items: start;
	justify-items: center;
}
/* Each profile shares the grid's rows (photo, name, title) so the pair stays level */
.person {
	width: calc(var(--portrait-w) + 18px);
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	align-content: start;
}
.person-photo {
	position: relative;
	width: var(--portrait-w);
	height: calc(var(--portrait-w) * 5 / 4);
	margin: 0 18px 28px 0;
}
.person-photo picture {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}
.person-photo::before {
	/* a soft color block offset behind each arched portrait */
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	border-radius: 999px 999px 28px 28px;
	background: var(--sun);
	opacity: 0.7;
}
.person-johanny .person-photo::before { background: var(--sky); opacity: 0.45; }
.person-photo img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 999px 999px 28px 28px;
}
.person-yinely img { object-position: 62% 30%; }
.person-johanny img { object-position: center 25%; }
.person h3 { font-size: 1.55rem; margin-bottom: 0.15em; }
.person-role {
	font-weight: 500;
	color: var(--navy-soft);
	margin: 0;
}
@media (max-width: 960px) {
	.team-grid { --portrait-w: 290px; }
}
@media (max-width: 700px) {
	.team-grid {
		--portrait-w: min(340px, calc(100vw - 2 * var(--gutter) - 18px));
		grid-template-columns: 1fr;
		row-gap: 56px;
		max-width: 400px;
		margin-inline: auto;
	}
	.person { display: block; grid-row: auto; width: auto; }
}

.team-head { margin-bottom: clamp(24px, 3vw, 36px); }
.team-head h2 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.9rem); margin-bottom: 8px; }
.team-head p { font-size: 1.05rem; }

/* Reviews: a calm wall of real parent reviews */
.reviews { padding-block: var(--section-space); }
.reviews .section-head {
	margin-inline: auto;
	margin-bottom: clamp(28px, 4vw, 40px);
	text-align: center;
}
.reviews-empty {
	max-width: 36rem;
	margin: 0 auto;
	padding: 28px;
	border: 1px dashed rgba(38, 53, 74, 0.22);
	border-radius: 12px;
	text-align: center;
}
.reviews-empty p {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--navy-soft);
	margin: 0;
}
.reviews-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}

.reviews-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	/* cards in a row share a height; names and dates line up along the bottom */
	align-items: stretch;
}
.review {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 24px 24px 20px;
	background: var(--paper);
	border: 1px solid rgba(38, 53, 74, 0.12);
	border-radius: 12px;
}
.review blockquote {
	margin: 0 0 20px;
	font-size: 1.02rem;
	line-height: 1.65;
}
.review blockquote p { margin: 0 0 0.8em; overflow-wrap: anywhere; }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(38, 53, 74, 0.1);
}
.review-name { font-weight: 700; }
.review-date { font-size: 0.88rem; color: var(--navy-soft); }
.stars {
	display: flex;
	gap: 3px;
	margin: 0 0 14px;
}
.star {
	width: 18px;
	height: 18px;
	fill: rgba(38, 53, 74, 0.14);
}
.star.is-on { fill: #F2B705; }
.reviews-more {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

/* Homepage preview, between the hero and About Us */
.review-preview {
	background: var(--cream-deep);
	padding-block: 4px 0;
}
.review-preview-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 20px;
}
.review-preview-head h2 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); margin: 0; }
.review-preview:not([hidden]) + .welcome { padding-top: clamp(40px, 5vw, 56px); }

@media (max-width: 960px) {
	.reviews-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* two per row on tablets: the third preview card would sit alone */
	[data-review-preview-list] > :nth-child(3) { display: none; }
}
@media (max-width: 620px) {
	.reviews-list { grid-template-columns: 1fr; }
	[data-review-preview-list] > :nth-child(3) { display: flex; }
	.review-preview-head .btn { order: 2; width: 100%; }
}

/* Leave a review dialog */
.review-dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: var(--cream);
	color: var(--navy);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
	overflow: auto;
	overscroll-behavior: contain;
}
.review-dialog::backdrop { background: rgba(29, 41, 57, 0.6); }
.review-dialog-inner {
	position: relative;
	padding: clamp(24px, 5vw, 40px);
}
.review-dialog h2 { font-size: 1.6rem; margin-bottom: 0.3em; padding-right: 40px; }
.dialog-lede { color: var(--navy-soft); margin-bottom: 24px; }
.dialog-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--navy);
	cursor: pointer;
}
.dialog-close:hover { background: var(--cream-deep); }
.dialog-close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}
.review-dialog :focus-visible { outline-color: var(--sky-ink); }
.review-dialog form .btn { width: 100%; }

.field-hint {
	font-size: 0.88rem;
	color: var(--navy-soft);
	margin: 6px 0 0;
}
fieldset.field {
	border: 0;
	margin: 0 0 18px;
	padding: 0;
	min-width: 0;
}
fieldset.field legend {
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0;
	margin-bottom: 8px;
}

.star-input { display: flex; gap: 4px; }
.star-input input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.star-input label {
	width: 44px;
	height: 44px;
	cursor: pointer;
	border-radius: 8px;
	background: no-repeat center / 34px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.1l-5.7 3.2 1.2-6.4-4.7-4.4 6.4-.8Z' fill='none' stroke='%2326354A' stroke-opacity='.45' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.star-input label.is-on {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.1l-5.7 3.2 1.2-6.4-4.7-4.4 6.4-.8Z' fill='%23F2B705' stroke='%23D99E00' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.star-input input:focus-visible + label {
	outline: 3px solid var(--sky-ink);
	outline-offset: 1px;
}
.star-field.has-error .star-input label { background-color: rgba(180, 35, 24, 0.06); }

.choice-field .choice {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 500;
	cursor: pointer;
}
.choice input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--navy);
	flex-shrink: 0;
}
.choice-example { color: var(--navy-soft); font-weight: 400; }


.review-thanks {
	text-align: center;
	padding: 12px 0 4px;
}
.review-thanks:focus { outline: none; }
.thanks-sun { width: 96px; height: 96px; margin: 0 auto 16px; display: block; }
.review-thanks p {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.45;
	max-width: 26rem;
	margin: 0 auto 24px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Contact */
.contact {
	background: var(--navy);
	color: var(--cream);
	padding-block: var(--section-space);
}
.contact h2 { color: var(--paper); }
.contact :focus-visible { outline-color: var(--sun); }
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
	gap: clamp(40px, 7vw, 104px);
	align-items: start;
}
.contact-lede {
	font-size: 1.15rem;
	color: rgba(255, 249, 239, 0.85);
	max-width: 34rem;
	margin-bottom: 32px;
}
.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.contact-actions .btn { min-width: 168px; }
.contact-note {
	margin: 18px 0 0;
	max-width: 34rem;
	font-size: 0.95rem;
	color: rgba(255, 249, 239, 0.72);
}
.contact-note a { color: var(--paper); text-decoration-color: rgba(255, 213, 79, 0.55); }
.contact-note a:hover { color: var(--sun); }
/* Secondary button for dark backgrounds */
.btn-outline-light {
	color: var(--cream);
	border-color: rgba(255, 249, 239, 0.7);
	background: transparent;
}
.btn-outline-light:hover {
	color: var(--paper);
	border-color: var(--paper);
	background: rgba(255, 249, 239, 0.08);
}
.contact .btn-primary { border-color: var(--sun); }

.field { margin-bottom: 18px; }
.field label {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 6px;
}
.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--navy);
	background: var(--paper);
	border: 1.5px solid rgba(38, 53, 74, 0.28);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:not([type="radio"]):not([type="checkbox"]):hover,
.field textarea:hover { border-color: rgba(38, 53, 74, 0.5); }
.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field textarea:focus {
	outline: none;
	border-color: var(--sky-ink);
	box-shadow: 0 0 0 3px rgba(30, 125, 176, 0.22);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); }
.field-error {
	color: var(--error);
	font-size: 0.9rem;
	font-weight: 500;
	margin: 6px 0 0;
}
.field-error:empty { display: none; }
.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.review-dialog .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form-status {
	margin-top: 18px;
	padding: 16px 18px;
	border-radius: 10px;
	border: 1px solid var(--green);
	background: #EEF7EC;
}
.form-status.is-info { border-color: var(--sky); background: #EAF5FB; }
.form-status.is-error { border-color: var(--coral); background: #FDEEEC; }
.form-status p { margin: 0 0 0.4em; }
.form-status p:last-child { margin-bottom: 0; }
.form-status strong { display: block; font-family: var(--font-display); margin-bottom: 0.2em; }

.contact-info {
	border-top: 1px solid rgba(255, 249, 239, 0.16);
}
.info-group {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 16px;
	padding: 24px 0;
	border-bottom: 1px solid rgba(255, 249, 239, 0.16);
}
.info-group svg {
	width: 24px;
	height: 24px;
	margin-top: 1px;
	fill: none;
	stroke: var(--sun);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.info-group h3 {
	font-size: 0.95rem;
	letter-spacing: 0;
	color: var(--sun);
	margin-bottom: 0.45em;
}
.info-group p { margin: 0 0 0.5em; }
.info-group p:last-child { margin-bottom: 0; }
.info-name {
	display: block;
	font-size: 0.9rem;
	color: rgba(255, 249, 239, 0.7);
}
.contact-info a {
	color: var(--paper);
	text-decoration-color: rgba(255, 213, 79, 0.55);
}
.contact-info a:hover { color: var(--sun); }
.info-hint { font-size: 0.85rem; color: rgba(255, 249, 239, 0.62); }
.nowrap { white-space: nowrap; }
.email { overflow-wrap: normal; word-break: normal; }

@media (max-width: 900px) {
	.contact-grid { grid-template-columns: 1fr; }
	.contact-info {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
	}
}
@media (max-width: 560px) {
	.contact-info { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.contact-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 360px) {
	.email { overflow-wrap: anywhere; }
}

/* Footer */
.site-footer {
	background: var(--navy-deep);
	color: rgba(255, 249, 239, 0.78);
	padding-block: clamp(48px, 6vw, 72px) calc(24px + env(safe-area-inset-bottom, 0px));
	font-size: 0.97rem;
}
.site-footer :focus-visible { outline-color: var(--sun); }
.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
}
.footer-brand img {
	width: 200px;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	margin-bottom: 16px;
}
.footer-brand p { max-width: 22rem; margin: 0; }
.footer-heading {
	font-size: 1rem;
	letter-spacing: 0;
	color: var(--paper);
	margin-bottom: 14px;
}
.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.site-footer a {
	color: rgba(255, 249, 239, 0.88);
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--sun);
	text-decoration: underline;
}
.footer-contact p { margin: 0 0 12px; }
.footer-bottom {
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 249, 239, 0.12);
	font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 860px) {
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Activities & Gallery page */
.pending-note {
	margin: 0 0 24px;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px dashed rgba(38, 53, 74, 0.35);
	background: var(--paper);
	font-size: 0.95rem;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}
.filters-sub { margin-top: -4px; margin-bottom: 24px; }
.filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1.5px solid rgba(38, 53, 74, 0.25);
	border-radius: 10px;
	background: var(--paper);
	color: var(--navy);
	font: 600 0.97rem var(--font-display);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--cream);
}
.filter-count {
	min-width: 22px;
	padding: 0 6px;
	border-radius: 6px;
	background: var(--cream-deep);
	color: var(--navy);
	font-size: 0.8rem;
	text-align: center;
}
.filter[aria-pressed="true"] .filter-count { background: var(--sun); }
.filter-sub { min-height: 40px; font-size: 0.92rem; background: transparent; }
.filter-sub[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.filters + .gallery-grid,
.visually-hidden + .gallery-grid { margin-top: 28px; }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px clamp(16px, 2vw, 24px);
}
.gallery-more {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.gallery-contact {
	background: var(--cream);
	border-top: 1px solid rgba(38, 53, 74, 0.1);
	padding-block: clamp(40px, 6vw, 64px);
}
.gallery-contact-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
}
.gallery-contact h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 0.3em; }
.gallery-contact p { margin: 0; color: var(--navy-soft); }

@media (max-width: 1000px) {
	.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.media-card figcaption { font-size: 0.88rem; padding-left: 9px; }
	.filters {
		/* one scrollable row of filters on phones */
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.filters::-webkit-scrollbar { display: none; }
	.filter { flex-shrink: 0; }
	.video-play { width: 52px; height: 52px; }
	.video-play svg { width: 22px; height: 22px; }
	.gallery-contact .contact-actions { width: 100%; }
	.gallery-contact .contact-actions .btn { flex: 1 1 100%; }
}

/* Lightbox */
html.has-lightbox { overflow: hidden; }
.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(22, 31, 44, 0.96);
	color: var(--cream);
}
.lightbox::backdrop { background: rgba(22, 31, 44, 0.96); }
.lightbox-inner {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	height: 100%;
	padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.lightbox-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.lightbox-count { margin: 0; font-size: 0.95rem; color: rgba(255, 249, 239, 0.75); }
.lightbox-figure {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	justify-items: center;
	gap: 14px;
	min-height: 0;
	margin: 8px 64px 0;
}
.lightbox-figure picture { display: contents; }
.lightbox-figure img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	object-fit: contain;
	border-radius: 8px;
	align-self: center;
}
.lightbox-figure figcaption {
	font-size: 1.05rem;
	font-weight: 500;
	text-align: center;
	max-width: 40rem;
}
.lightbox-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1.5px solid rgba(255, 249, 239, 0.35);
	border-radius: 10px;
	background: rgba(255, 249, 239, 0.08);
	color: var(--cream);
	cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 249, 239, 0.18); }
.lightbox-btn svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.lightbox :focus-visible { outline-color: var(--sun); }
.lightbox-prev,
.lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 640px) {
	.lightbox-figure { margin-inline: 0; margin-bottom: 64px; }
	.lightbox-prev,
	.lightbox-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }
	.lightbox-prev { left: calc(50% - 60px); }
	.lightbox-next { right: calc(50% - 60px); }
}

/* ---------- The Smile More Memory Book ---------- */

.book-cover { padding-block: clamp(28px, 4vw, 48px) 0; }
.book-cover-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}
.book-cover-text { max-width: 40rem; }
.book-cover h1 { font-size: clamp(1.95rem, 1.35rem + 2.2vw, 2.9rem); margin-bottom: 0.35em; }
.book-cover-text p { font-size: 1.12rem; color: var(--navy-soft); margin: 0; }
.book-cover .pending-note { margin: 24px 0 0; }

/* Browsing by category stays quiet: a row of text tabs */
.browse { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.browse-label { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--navy-soft); }
.browse-tabs { display: flex; flex-wrap: wrap; gap: 0 18px; }
.browse-tab {
	min-height: 44px;
	padding: 6px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--navy-soft);
	font: 500 0.95rem var(--font-body);
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.browse-tab:hover { color: var(--navy); }
.browse-tab[aria-pressed="true"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--sun); }

/* Chapters alternate gently between cream and warm cream, like turning pages */
.chapter { padding-block: clamp(44px, 5.5vw, 80px); }
/* The opening spread sits close under the Browse by links it belongs to */
.spread-chapter { padding-top: clamp(36px, 4vw, 56px); }
.everyday-chapter,
.grads-chapter { background: var(--cream-deep); }
.chapter-head { max-width: 40rem; margin-bottom: clamp(24px, 3vw, 36px); }
.chapter-head h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.4rem); margin-bottom: 0.3em; }
.chapter-head p { font-size: 1.08rem; color: var(--navy-soft); margin: 0; }
.chapter-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	max-width: none;
}
.chapter-head-row > div:first-child { max-width: 40rem; }
.chapter-head-center { margin-inline: auto; text-align: center; }
.chapter-foot { display: flex; justify-content: center; margin-top: 32px; }

/* Opening spread: a lead photo, a tall companion, then a row of three */
.spread {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 36px 24px;
}
.spread-item { position: relative; }
.spread-item-1 { grid-column: 1 / span 8; }
.spread-item-1 .media-frame { aspect-ratio: 3 / 2; }
.spread-item-2 {
	grid-column: 9 / span 4;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
}
.spread-item-2 .media-frame { aspect-ratio: auto; height: 100%; min-height: 0; }
/* the tall photo takes its height from the lead photo, so both captions line up */
.spread-item-2 .media-frame picture,
.spread-item-2 .media-frame img { position: absolute; inset: 0; }
.spread-item-3,
.spread-item-4,
.spread-item-5 { grid-column: span 4; }
.spread-item-3 .media-frame,
.spread-item-4 .media-frame,
.spread-item-5 .media-frame { aspect-ratio: 1 / 1; }
/* The one scrapbook touch: tape holding the first two photos to the page */
.spread-item-1::before,
.spread-item-2::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -12px;
	width: 92px;
	height: 26px;
	border-radius: 2px;
	pointer-events: none;
}
.spread-item-1::before { left: 28px; transform: rotate(-4deg); background: rgba(87, 188, 235, 0.55); }
.spread-item-2::before { right: 24px; transform: rotate(5deg); background: rgba(244, 124, 112, 0.5); }

/* Sideways strips */
.scroller {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 20px) / 4);
	column-gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller:focus { outline: none; }
.scroll-item { scroll-snap-align: start; }
.scroller-tall .media-frame { aspect-ratio: 9 / 16; }
.scroll-controls { display: flex; gap: 8px; flex-shrink: 0; }
.carousel-btn[disabled] { opacity: 0.35; cursor: default; }
.media-desc { margin: 6px 0 0 15px; font-size: 0.9rem; line-height: 1.45; }

/* Watch Us Learn: a darker screening room so the videos stand out */
.watch-chapter { background: var(--navy); color: var(--cream); }
.watch-chapter .chapter-head h2 { color: var(--paper); }
.watch-chapter .chapter-head p,
.watch-chapter .media-desc { color: rgba(255, 249, 239, 0.72); }
.watch-chapter .media-card figcaption { color: var(--cream); }
.watch-chapter .carousel-btn {
	background: transparent;
	border-color: rgba(255, 249, 239, 0.4);
	color: var(--cream);
}
.watch-chapter .carousel-btn:hover { background: rgba(255, 249, 239, 0.1); border-color: var(--cream); }
.watch-chapter :focus-visible { outline-color: var(--sun); }

/* Celebrating Together: one occasion at a time */
.occasion-tabs {
	display: flex;
	gap: 28px;
	margin-bottom: 36px;
	border-bottom: 1px solid rgba(38, 53, 74, 0.14);
	overflow-x: auto;
	scrollbar-width: none;
}
.occasion-tabs::-webkit-scrollbar { display: none; }
.occasion-tab {
	flex-shrink: 0;
	min-height: 48px;
	margin-bottom: -1px;
	padding: 10px 0;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--navy-soft);
	font: 600 1rem var(--font-display);
	white-space: nowrap;
	cursor: pointer;
}
.occasion-tab:hover { color: var(--navy); }
.occasion-tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--coral); }
.occasion {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}
.occasion-lead .media-frame { aspect-ratio: 1 / 1; }
.occasion.is-single { align-items: center; }
.occasion.is-single .occasion-text { padding-bottom: 32px; }
.occasion-text h3 { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.9rem); margin-bottom: 0.35em; }
.occasion-blurb { font-size: 1.12rem; color: var(--navy-soft); margin-bottom: 0.6em; }
.occasion-count { font-size: 0.9rem; font-weight: 700; color: var(--sun-ink); margin: 0; }
.occasion-more {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 16px;
	margin-top: 28px;
}
.occasion-more .media-frame { aspect-ratio: 1 / 1; }
.occasion.is-entering { animation: page-in 0.35s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Our Little Graduates: arched portraits, echoing the team section */
.grads {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
	max-width: 900px;
	margin-inline: auto;
}
.grads .media-frame { border-radius: 999px 999px 16px 16px; }
.grads .media-card figcaption {
	border-left: 0;
	padding-left: 0;
	text-align: center;
}

/* Focused collection for a single category */
.collection { padding-block: clamp(32px, 4vw, 48px) var(--section-space); }
.collection-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 24px;
}
.collection-head h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.4rem); margin: 0; }
.collection-head h2:focus { outline: none; }
.back-link {
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sky-ink);
	font: 600 0.98rem var(--font-body);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}
.back-link:hover { color: var(--navy); }

/* Gentle fade as each chapter comes into view (skipped for reduced motion) */
html.can-reveal .reveal { opacity: 0; transition: opacity 0.7s ease; }
html.can-reveal .reveal.is-visible { opacity: 1; }

/* Lightbox: soft cross-fade between photos */
.lightbox-figure img { transition: opacity 0.25s ease; }
.lightbox-figure img.is-changing { opacity: 0; }

@media (max-width: 1000px) {
	.scroller { grid-auto-columns: calc((100% - 2 * 16px) / 3); column-gap: 16px; }
}
@media (max-width: 860px) {
	.spread { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
	.spread-item-1 { grid-column: 1 / -1; }
	.spread-item-2,
	.spread-item-3,
	.spread-item-4,
	.spread-item-5 { grid-column: span 1; display: block; }
	.spread-item-2 .media-frame { aspect-ratio: 1 / 1; height: auto; }
	.spread-item-2 .media-frame picture,
	.spread-item-2 .media-frame img { position: static; }
	.occasion { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.browse { width: 100%; }
	.browse-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		width: 100%;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.browse-tabs::-webkit-scrollbar { display: none; }
	.scroller { grid-auto-columns: 74%; column-gap: 14px; }
	.scroller-tall { grid-auto-columns: 62%; }
	.chapter-head-row .scroll-controls { display: none; }
	.grads {
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 70%;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.grads::-webkit-scrollbar { display: none; }
	.grads .media-card { scroll-snap-align: center; }
	.spread-item-1::before,
	.spread-item-2::before { width: 70px; height: 22px; }
}

/* Leave a Review page */
.leave-review { padding-block: clamp(32px, 5vw, 64px) var(--section-space); }
.leave-review-inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}
.leave-review-intro h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); margin-bottom: 0.4em; }
.leave-review-intro > p { font-size: 1.1rem; color: var(--navy-soft); }
.leave-review-notes {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.leave-review-notes li { position: relative; padding-left: 22px; }
.leave-review-notes li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--sun);
}
.leave-review-card {
	padding: clamp(22px, 4vw, 36px);
	background: var(--cream);
	border: 1px solid rgba(38, 53, 74, 0.12);
	border-radius: 16px;
	background: var(--paper);
}
.leave-review-card form .btn { width: 100%; }
.leave-review-card .form-status { margin: 0 0 16px; }

@media (max-width: 860px) {
	.leave-review-inner { grid-template-columns: minmax(0, 1fr); }
}
.leave-review-card .btn[disabled] { opacity: 0.7; cursor: progress; }


/* ---------- Final direction: a family-owned daycare ----------
   Real photos lead. No tape, scribbles, or wavy edges. Photos sit in a plain
   white print border, and captions are written underneath in handwriting,
   the way a parent labels photos in an album. */

.hero-print::before,
.why-print::before,
.art-print::before,
.spread-item-1::before,
.spread-item-2::before { content: none; display: none; }

/* A printed photo: white border, no card around it */
.hero-print,
.why-print,
.art-print {
	box-shadow: 0 1px 2px rgba(38, 53, 74, 0.12), 0 8px 20px -14px rgba(38, 53, 74, 0.35);
}
.hero-print { transform: rotate(2deg); }
.why-print { transform: none; }
.art-print { transform: rotate(-1deg); }
.hero-print figcaption,
.why-print figcaption,
.art-print figcaption,
.carousel-slide figcaption,
.book .media-card figcaption {
	font-family: var(--font-hand);
	font-weight: 400;
	font-size: 1.12rem;
	line-height: 1.35;
	color: var(--navy);
	border-left: 0;
	padding-left: 2px;
}

/* Why families choose us: words, not icons */
.why-list li { grid-template-columns: minmax(0, 1fr); }
.why-list h3 { padding-bottom: 6px; border-bottom: 2px solid var(--sun); display: inline-block; margin-bottom: 0.45em; }

/* ---------- Memory Book: soft buttery pages ---------- */
body.page-book { background: var(--butter); }
body.page-book .site-header { background: rgba(255, 245, 214, 0.95); }
.book .everyday-chapter,
.book .grads-chapter,
.book .watch-chapter { background: transparent; }
.book .chapter + .chapter { border-top: 1px solid rgba(38, 53, 74, 0.1); }
.book-cover h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }

/* Photos in the book are prints: white border, gentle shadow */
.book .media-frame {
	border: 6px solid var(--paper);
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(38, 53, 74, 0.12), 0 10px 22px -16px rgba(38, 53, 74, 0.4);
	background: var(--paper);
}
.book .media-frame img,
.book .media-frame video { border-radius: 2px; }
.book .grads .media-frame { border-radius: 999px 999px 8px 8px; }
.book .grads .media-frame img { border-radius: 999px 999px 2px 2px; }
.book .grads .media-card figcaption { text-align: center; }
.book .media-card figcaption { margin-top: 10px; }

/* Videos share the same page instead of a dark block */
.book .watch-chapter { color: var(--navy); }
.book .watch-chapter .chapter-head h2 { color: var(--navy); }
.book .watch-chapter .chapter-head p,
.book .watch-chapter .media-desc { color: var(--navy-soft); }
.book .watch-chapter .media-card figcaption { color: var(--navy); }
.book .watch-chapter .carousel-btn { background: var(--paper); border-color: rgba(38, 53, 74, 0.35); color: var(--navy); }
.book .watch-chapter .carousel-btn:hover { background: var(--cream); border-color: var(--navy); }
.book .watch-chapter :focus-visible { outline-color: var(--sky-ink); }
.book .media-desc { margin-left: 2px; }

/* Celebrations: no photo counts, gentler tabs */
.book .occasion-count { display: none; }
.book .occasion-tabs { border-bottom-color: rgba(38, 53, 74, 0.15); }
.book .occasion-tab { font-family: var(--font-body); font-weight: 600; }

body.page-book .gallery-contact { background: transparent; }
body.page-book .collection .media-card figcaption { font-family: var(--font-hand); font-size: 1.1rem; border-left: 0; padding-left: 2px; }

/* Homepage: warm sections in butter yellow, and photos as prints with handwritten captions */
.welcome,
.programs,
.team,
.review-preview,
.art-wall { background: var(--butter); }
.hero { padding-bottom: clamp(40px, 5vw, 64px); }
.review-preview { padding-block: clamp(36px, 4.5vw, 56px) 0; }
.carousel-slide .media-frame,
.grad-row .media-frame {
	border: 6px solid var(--paper);
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(38, 53, 74, 0.12), 0 10px 22px -16px rgba(38, 53, 74, 0.4);
}
.grad-row .media-card figcaption {
	font-family: var(--font-hand);
	font-size: 1.12rem;
	border-left: 0;
	padding-left: 2px;
}

.leave-review-card .form-status { overflow-wrap: anywhere; }

/* ---------- Moments at Smile More: a colorful classroom photo board ---------- */

.mb {
	--frame-sun: #F7C948;
	--frame-coral: #F58F89;
	--frame-sky: #70C7DF;
	--frame-green: #92C978;
	--frame-orange: #F3AD61;
	--mb-gap: clamp(10px, 1.1vw, 16px);
}

/* Compact introduction */
.mb-intro { padding-block: clamp(28px, 3.5vw, 48px) 0; }
.mb-intro-text {
	position: relative;
	padding-right: 80px;
	margin-bottom: 0;
}
.mb-intro h1 {
	font-size: clamp(1.9rem, 1.45rem + 1.6vw, 2.6rem);
	margin-bottom: 12px;
}
.mb-intro-text p { font-size: 1.12rem; color: var(--navy-soft); margin: 0; }
.mb-sun {
	position: absolute;
	top: -4px;
	right: 0;
	width: 56px;
	height: 56px;
}
.mb .pending-note { margin: 16px 0 0; }
/* The opening collage follows the buttons closely */
.mb-section-opening { padding-top: clamp(20px, 2.4vw, 28px); }

/* A framed photo: thin colored border, small white margin, caption underneath */
.mb-photo {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.mb-frame {
	position: relative;
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	aspect-ratio: auto;
	padding: 5px;
	border: 3px solid var(--frame, var(--frame-sun));
	border-radius: 6px;
	background: var(--paper);
	box-shadow: none;
	overflow: hidden;
}
.mb-frame.media-open { cursor: zoom-in; }
.mb-frame picture,
.mb-frame img,
.mb-frame video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 3px;
}
.mb-frame img { transition: transform 0.35s ease; }
.mb-frame.media-open:hover img { transform: scale(1.025); }
.mb-frame.media-open:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.mb-photo.mb-c-sun .mb-frame { --frame: var(--frame-sun); }
.mb-photo.mb-c-coral .mb-frame { --frame: var(--frame-coral); }
.mb-photo.mb-c-sky .mb-frame { --frame: var(--frame-sky); }
.mb-photo.mb-c-green .mb-frame { --frame: var(--frame-green); }
.mb-photo.mb-c-orange .mb-frame { --frame: var(--frame-orange); }
.mb-photo figcaption {
	flex: none;
	margin-top: 6px;
	padding-bottom: 2px;
	font-size: 0.93rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mb-photo .pending-tag { top: 10px; right: 10px; }
.mb-frame.is-video { padding: 5px; background: var(--paper); }
.mb-frame .video-play { width: 54px; height: 54px; }
.mb-frame .video-play svg { width: 24px; height: 24px; }

/* Opening collage, placed slot by slot (js/gallery-data.js lists which photo goes where) */
.mb-opening {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(3, clamp(170px, 19vw, 275px));
	grid-template-areas:
		"a c c d"
		"b e e d"
		"f g h i";
	gap: 18px var(--mb-gap);
}

/* Category tabs, right after the opening collage */
.mb-tabs-wrap {
	margin-top: clamp(14px, 1.8vw, 20px);
	border-block: 1px solid rgba(38, 53, 74, 0.12);
	background: var(--butter);
	position: sticky;
	top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
	z-index: 20;
}
.mb-tabs {
	display: flex;
	gap: 8px;
	padding-block: 10px;
	overflow-x: auto;
	scrollbar-width: none;
}
.mb-tabs::-webkit-scrollbar { display: none; }
.mb-tab {
	flex-shrink: 0;
	min-height: 44px;
	padding: 8px 16px;
	border: 1.5px solid rgba(38, 53, 74, 0.2);
	border-radius: 10px;
	background: var(--paper);
	color: var(--navy);
	font: 600 0.95rem var(--font-body);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.mb-tab:hover { border-color: var(--navy); }
.mb-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }

/* Sections below the tabs */
.mb-section { padding-block: clamp(40px, 4.5vw, 60px) 0; }
.mb-section:last-child { padding-bottom: clamp(48px, 5vw, 64px); }
.mb-section h2 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); margin-bottom: 6px; }
.mb-section-lede { color: var(--navy-soft); margin: 0 0 22px; max-width: 42rem; }
.mb-collage { display: grid; gap: 18px; }

/* Five photos: one large and four small, alternating sides */
.mb-block {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, clamp(170px, 21vw, 300px));
	gap: 18px var(--mb-gap);
}
.mb-block-left { grid-template-areas: "big big s1 s2" "big big s3 s4"; }
.mb-block-right { grid-template-areas: "s1 s2 big big" "s3 s4 big big"; }

/* Other groups: rows on the same grid and row height; landscape photos take two columns */
.mb-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(170px, 21vw, 300px);
	gap: 18px var(--mb-gap);
}
.mb-row .mb-photo.is-landscape { grid-column: span 2; }

.mb-holiday + .mb-holiday { margin-top: 30px; }
.mb-holiday-title {
	display: inline-block;
	font-size: 1.15rem;
	margin-bottom: 12px;
	padding-bottom: 3px;
	border-bottom: 3px solid var(--frame-coral);
}

/* Videos: tall framed clips */
.mb-videos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 960px;
	gap: calc(var(--mb-gap) + 16px) var(--mb-gap);
}
.mb-videos .mb-frame { aspect-ratio: 9 / 16; flex: none; background: var(--navy); }
.mb-desc { margin: 3px 0 0; font-size: 0.88rem; color: var(--navy-soft); line-height: 1.4; }

body.page-book .gallery-contact { border-top: 1px solid rgba(38, 53, 74, 0.12); }

/* Tablet and phone: two columns, with featured photos across both */
@media (max-width: 760px) {
	.mb-sun { right: 0; top: -2px; width: 44px; height: 44px; }
	.mb-intro-text { padding-right: 52px; }
	.mb-opening {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		grid-auto-rows: clamp(150px, 44vw, 260px);
		grid-template-areas:
			"c c"
			"a d"
			"b d"
			"e e"
			"f g"
			"h i";
	}
	.mb-block {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		grid-auto-rows: clamp(150px, 44vw, 260px);
	}
	.mb-block-left,
	.mb-block-right { grid-template-areas: "big big" "big big" "s1 s2" "s3 s4"; }
	.mb-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: clamp(150px, 44vw, 260px);
	}
	/* A photo left alone on the last line takes the full width */
	.mb-row > .mb-photo:last-child:nth-child(odd):not(.is-landscape) { grid-column: 1 / -1; }
	.mb-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mb-frame { padding: 4px; }
	.mb-photo figcaption {
		font-size: 0.86rem;
		line-height: 1.3;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}
@media (max-width: 1024px) and (min-width: 761px) {
	.mb-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}
@media (max-width: 380px) {
	.mb-opening,
	.mb-block { gap: 26px 8px; }
}

/* Category buttons band: lighter background instead of divider lines
   (borders kept transparent so the band's height doesn't change) */
.mb-tabs-wrap {
	background: #FFF9E9;
	border-color: transparent;
}
