/* The People, Person, Memory, Book, Family, Home, Timeline and Find a Memory pages - layout only (printed by mmb_display_styles(), display-styles.php; moved here from the page, site review 2, item 150a, 2026-11-14). */
		/* Colors, fonts, buttons and boxes come from the site standard (assets/mmb-standard.css); only these pages' layout is here.
		   (The page background behind the box is the standard's too - body.mmb-std.) .mmb-wrap is the standard box. */
		.mmb-wrap {
			max-width: 860px;
			margin: var(--mmb-space-page-top, 32px) auto;
			padding: var(--mmb-space-box, 40px);
			background: var(--mmb-color-box, #fff);
			border: var(--mmb-box-edge, 2px solid #7A3540);
			border-radius: var(--mmb-box-round, 10px);
			box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25));
			font-family: var(--mmb-font-text, "Karla", Arial, sans-serif);
			/* Widened on desktop below - a fixed reading width made sense
			   for text-only pages, but wastes most of a desktop screen on
			   a page that's mainly a photo grid (galleries, People,
			   Families). Long-form text stays narrower on its own (see
			   .mmb-text-block) so paragraphs don't stretch into
			   uncomfortably long lines just because the page did. */
			color: var(--mmb-color-text, #2E2621);
		}
		.mmb-wrap h1, .mmb-wrap h2, .mmb-wrap h3 {
			font-family: var(--mmb-font-title, "Lora", Georgia, serif);
			color: var(--mmb-color-text, #2E2621);
		}
		/* Fonts and sizes: the site standard's roles (owner, 2026-11-02) - the page's one title is the standard page
		   title (these templates print their h1 outside the theme's content area, where it was the theme's 32px). */
		.mmb-wrap h1 {
			margin-bottom: 8px;
			color: var(--mmb-color-maroon, #7A3540);
			font-weight: 700;
			font-size: var(--mmb-size-page-title, 40px);
		}
		/* "... Saved" - the standard's done message (mmb-s-msg-ok); the Person and Family pages print it too. */
		.mmb-saved-notice {
			background: var(--mmb-color-ok-bg, #EDF7ED);
			border: 2px solid var(--mmb-color-ok, #1A7A1A);
			padding: 14px 18px;
			border-radius: 8px;
			margin-bottom: 24px;
			color: var(--mmb-color-ok, #1A7A1A);
			font-size: var(--mmb-size-message, 20px);
			font-weight: 600;
		}
		/* ===== 115 - after a save: two big buttons under the green note, and after a person a hint (site review 2, items 115a / 115b, 2026-11-14) */
		/* The space between the buttons is a plain margin, not the standard row's flex gap, which old iPads (Safari before 14.1) do not have. */
		.mmb-saved-next { margin: -8px 0 16px; }
		.mmb-wrap .mmb-saved-next .mmb-s-buttons { margin: 0; gap: 0; }
		.mmb-wrap .mmb-saved-next .mmb-s-buttons > a { margin: 0 12px 12px 0; }
		.mmb-saved-hint { margin: 2px 0 12px; font-size: var(--mmb-size-note, 24px); line-height: 1.5; color: var(--mmb-color-note, #2E2621); }
		.mmb-example-notice {
			background: var(--mmb-color-maroon, #7A3540);
			color: var(--mmb-color-card, #FBF8F3);
			padding: 12px 20px;
			border-radius: 6px;
			margin-bottom: 24px;
			/* A please-note line: the standard's message size (owner, 2026-11-02); it stays italic. */
			font-family: var(--mmb-font-text, "Karla", Arial, sans-serif);
			font-style: italic;
			font-size: var(--mmb-size-message, 20px);
			text-align: center;
			text-wrap: balance; /* Phone polish (owner, 2026-11-02): even lines, never "Memories." alone on the last one */
		}
		/* ===== 111a - on the main site the example box is one big link to the free sign-up page; its last line says so (site review 2, item 111a, 2026-11-14) */
		.mmb-wrap a.mmb-example-link { display: block; text-decoration: none; color: var(--mmb-color-card, #FBF8F3); }
		.mmb-wrap a.mmb-example-link:hover, .mmb-wrap a.mmb-example-link:focus { background: var(--mmb-color-maroon-dark, #5E2830); color: var(--mmb-color-card, #FBF8F3); }
		.mmb-wrap a.mmb-example-link:focus-visible { outline: var(--mmb-focus-ring, 3px solid #B8935A); outline-offset: 2px; }
		.mmb-example-go { display: block; margin-top: 8px; font-style: normal; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
		.mmb-title-row {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 16px;
			flex-wrap: wrap;
			margin-bottom: 8px;
		}
		.mmb-title-row h1 {
			margin-bottom: 0;
		}
		/* "✎ Edit This ..." / "+ Add a ..." - the standard main button's values (its markup is in several
		   templates, so this rule points at assets/mmb-standard.css instead of each one adding mmb-s-btn). */
		.mmb-edit-link {
			display: inline-flex;
			align-items: center;
			justify-content: center; /* words stay centred and split evenly if the button ever wraps (2026-11-02) */
			text-align: center;
			text-wrap: balance;
			box-sizing: border-box;
			min-height: var(--mmb-btn-height, 56px);
			flex-shrink: 0;
			padding: var(--mmb-btn-pad, 14px 28px);
			background: var(--mmb-color-maroon, #7A3540);
			border: 2px solid var(--mmb-color-maroon, #7A3540);
			color: #fff;
			border-radius: var(--mmb-btn-round, 10px);
			font-family: var(--mmb-font-text, "Karla", Arial, sans-serif);
			font-size: var(--mmb-size-button, 20px);
			font-weight: 700;
			line-height: 1.2;
			text-decoration: none;
			white-space: nowrap;
		}
		.mmb-edit-link:hover {
			background: var(--mmb-color-maroon-dark, #5E2830);
			border-color: var(--mmb-color-maroon-dark, #5E2830);
			color: #fff;
		}
		.mmb-edit-link:focus-visible {
			outline: var(--mmb-focus-ring, 3px solid #B8935A);
			outline-offset: 2px;
		}
		.mmb-hero-photo {
			margin: 0 0 32px;
			padding: 10px;
			background: var(--mmb-color-maroon, #7A3540);
			border: 2px solid var(--mmb-color-maroon-dark, #5E2830);
			border-radius: 10px;
			box-shadow: 0 6px 16px rgba(46, 38, 33, 0.15);
			line-height: 0;
		}
		.mmb-hero-photo-inner {
			position: relative;
			height: 420px;
			overflow: hidden;
			border-radius: 5px;
			background: #000;
		}
		.mmb-hero-photo-inner img {
			position: absolute;
			inset: 0;
			width: 100%;
			height: 100%;
			object-fit: contain;
			opacity: 0;
			transform: scale(1.08);
			transition: opacity 2s ease, transform 4s ease-out;
		}
		.mmb-hero-photo-inner img.mmb-active {
			opacity: 1;
			transform: scale(1);
		}
		/* The hidden slides are only opacity:0 - still stacked on top of
		   each other and still clickable - so every click on the hero
		   landed on the LAST image in the strip and the lightbox opened
		   that one instead of the photo on screen. Letting clicks pass
		   through the inactive slides means only the visible (active)
		   one is hit. pointer-events only - no z-index - so the
		   cross-fade layering stays exactly as it was. */
		.mmb-hero-photo-inner img:not(.mmb-active) {
			pointer-events: none;
		}
		@media (prefers-reduced-motion: reduce) {
			.mmb-hero-photo-inner img { transition: opacity 2s ease; transform: scale(1) !important; }
		}
		/* Sizes come from the site standard (assets/mmb-standard.css); 20px is the smallest text (owner, 2026-11-02). */
		.mmb-wrap .mmb-meta-line {
			color: var(--mmb-color-hint, #6B6058);
			margin-bottom: 24px;
			font-size: var(--mmb-size-text, 20px);
		}
		.mmb-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
		/* Each chip is the standard tag (mmb-s-tag, single-memory.php); only its spacing in the row and its hover are here. */
		.mmb-chip-row .mmb-chip { margin: 0; text-decoration: none; }
		.mmb-chip:hover { background: #E4D9CB; }
		/* (The grey "WITH" label rule is gone with the chips it labelled - site review 2, item 117a, 2026-11-14.) */

		.mmb-block { margin: 0 0 32px; }
		/* Same look as the Photo Browser grid (media-fast-grid.php) - owner request 2026-10-01:
		   5 across, 220px tiles, whole photo never cropped, medium gray matte, maroon border and the
		   site-standard shadow. Fewer columns on small screens so photos stay a usable size. */
		.mmb-gallery-grid {
			display: grid;
			grid-template-columns: repeat(5, 1fr);
			gap: 24px;
		}
		@media (max-width: 900px) { .mmb-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
		@media (max-width: 560px) { .mmb-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
		/* Phone polish (owner, 2026-11-02): with two photos across, a last photo alone in its row (3 photos, 5 photos)
		   sits in the middle at the same size as the others, not stranded in the left half - as a last card alone
		   does on All People. Only at this two-across width; the Person page's photo cards are not links here. */
		@media (max-width: 560px) { .mmb-gallery-grid > a:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); } }
		.mmb-gallery-grid a {
			display: block;
			line-height: 0;
		}
		.mmb-gallery-grid img {
			display: block;
			width: 100%;
			/* Square tiles at every screen size (about 214px on a full desktop, matching the
			   Photo Browser) - a fixed 220px height made tall, skinny tiles on tablets/phones. */
			height: auto;
			aspect-ratio: 1 / 1;
			max-width: none;
			object-fit: contain;
			background: #999999;
			border: var(--mmb-box-edge, 2px solid #7A3540);
			border-radius: 6px;
			box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25));
			box-sizing: border-box;
		}

		/* A fixed height (not just max-height on the images) keeps this
		   box from collapsing then "popping" back whenever the active
		   slide switches to an image the browser hasn't finished
		   loading yet - without it, an unloaded <img> has no known
		   height, so the whole container shrinks until it loads. */
		.mmb-slideshow { position: relative; height: 480px; border-radius: 6px; overflow: hidden; background: #000; }
		.mmb-slideshow img { width: 100%; height: 100%; object-fit: contain; display: none; background: #000; }
		.mmb-slideshow img.mmb-active { display: block; }

		@media (min-width: 1100px) {
			.mmb-wrap { max-width: 1280px; }
		}
		.mmb-text-block { line-height: 1.7; max-width: 760px; }
		.mmb-text-block p:first-child { margin-top: 0; }
		.mmb-memory-note {
			background: var(--mmb-color-highlight, #F1EAE1);
			border: 1px solid var(--mmb-color-line, #C9B8A8);
			border-left: 4px solid var(--mmb-color-maroon, #7A3540);
			border-radius: 8px;
			padding: 36px 24px 20px;
			margin-bottom: 32px;
		}
		/* Text blocks between sections get the same story-box look as the
		   memory's opening story, so a long multi-part memory (a trip,
		   day by day) reads as a series of journal entries. */
		.mmb-block > .mmb-text-block {
			background: var(--mmb-color-highlight, #F1EAE1);
			border: 1px solid var(--mmb-color-line, #C9B8A8);
			border-left: 4px solid var(--mmb-color-maroon, #7A3540);
			border-radius: 8px;
			padding: 18px 24px;
		}
		.mmb-block > .mmb-text-block p:last-child { margin-bottom: 0; }

		.mmb-wrap video, .mmb-wrap audio { width: 100%; border-radius: 6px; }

		/* "View document" and a Link block are standard second buttons (mmb-s-btn-2, single-memory.php). */

		/* The standard section title (owner, 2026-11-02). */
		.mmb-section-title {
			font-family: var(--mmb-font-title, "Lora", Georgia, serif);
			font-weight: 700;
			font-size: var(--mmb-size-section-title, 28px);
			margin: 40px 0 16px;
			padding-top: 24px;
			border-top: 1px solid var(--mmb-color-line, #C9B8A8);
		}

		/* Person page */
		.mmb-person-header { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
		/* Same rounded-square, border and shadow treatment as
		   .mmb-person-avatar gets on this same page (the Families
		   mini-cards below) and across the People/Families archives -
		   this was still the old plain circle with no border. */
		.mmb-person-photo { width: 160px; height: 160px; object-fit: cover; flex-shrink: 0; border-radius: var(--mmb-box-round, 10px); border: var(--mmb-box-edge, 2px solid #7A3540); box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25)); }
		.mmb-person-names .mmb-subname { color: var(--mmb-color-hint, #6B6058); font-size: var(--mmb-size-text, 20px); margin: 2px 0 0; }
		/* "Family friend" - the standard tag's values (mmb-s-tag; its markup is in single-person.php). */
		.mmb-friend-badge { display: inline-block; margin: 4px 0 0; padding: 4px 14px; background: var(--mmb-color-highlight, #F1EAE1); color: var(--mmb-color-maroon, #7A3540); border-radius: 999px; font-family: var(--mmb-font-text, "Karla", Arial, sans-serif); font-size: var(--mmb-size-text, 20px); font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .03em; }
		.mmb-fact-row { margin: 4px 0; font-size: var(--mmb-size-text, 20px); }
		.mmb-fact-label { color: var(--mmb-color-hint, #6B6058); font-weight: 600; }

		/* People archive (All People) */
		.mmb-people-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px; }
		@media (max-width: 700px) {
			.mmb-people-grid { grid-template-columns: repeat(2, 1fr); }
		}
		/* iPads and small computer windows, 701 to 1099 pixels wide: no card narrower than 160 pixels, so "2 members",
		   "2 memories" and a role such as "Husband" stay on one line at 24 pixels. Five across left a card about 98 pixels
		   at 768 and 126 at 1024, and the words broke inside "members". Now three or four across there; phones (two across)
		   and wider screens (five across) are unchanged (site review 2, item 129p, 2026-11-15). */
		@media (min-width: 701px) and (max-width: 1099px) {
			.mmb-people-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
		}
		/* min-width:0 overrides a grid item's default min-content floor -
		   without it, a fixed-size photo (144px placeholder box) forces
		   its whole column wider than its fair 1fr share, starving the
		   other columns and making every column a different width. */
		.mmb-person-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--mmb-color-text, #2E2621); text-align: center; min-width: 0; }
		.mmb-person-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--mmb-color-highlight, #F1EAE1); }
		/* Bigger, square with soft corners instead of round - one shared
		   rule for every page that wants the bigger style, rather than
		   repeating it per page. Sized to fill its grid column (not a
		   fixed pixel size) so 6-per-row actually fits at any screen
		   width, staying perfectly square via aspect-ratio. */
		body.single-mmb_family .mmb-person-avatar,
		body.post-type-archive-mmb_person .mmb-person-avatar,
		body.single-mmb_person .mmb-person-avatar,
		body.post-type-archive-mmb_family .mmb-person-avatar,
		body.post-type-archive-mmb_book .mmb-person-avatar {
			width: 100%;
			height: auto;
			aspect-ratio: 1 / 1;
			align-self: stretch;
			border-radius: var(--mmb-box-round, 10px);
			box-sizing: border-box;
			padding: 6px;
			border: var(--mmb-box-edge, 2px solid #7A3540);
			box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25));
		}
		body.single-mmb_family .mmb-person-avatar-placeholder,
		body.post-type-archive-mmb_person .mmb-person-avatar-placeholder,
		body.single-mmb_person .mmb-person-avatar-placeholder,
		body.post-type-archive-mmb_family .mmb-person-avatar-placeholder,
		body.post-type-archive-mmb_book .mmb-person-avatar-placeholder {
			font-size: 48px;
		}
		.mmb-person-avatar-placeholder { display: flex; align-items: center; justify-content: center; font-family: var(--mmb-font-title, "Lora", Georgia, serif); font-size: 26px; font-weight: 600; color: var(--mmb-color-maroon, #7A3540); }
		.mmb-person-card-name { font-weight: 600; font-size: var(--mmb-size-text, 20px); line-height: 1.3; overflow-wrap: anywhere; }
		.mmb-person-card:hover .mmb-person-card-name { text-decoration: underline; }
		.mmb-person-card-role { color: var(--mmb-color-maroon, #7A3540); font-size: var(--mmb-size-text, 20px); font-weight: 600; overflow-wrap: anywhere; } /* no capitals or letter spacing, like "Wife" in the Family box (site review 2, item 129p, 2026-11-15) */
		/* The count or role sits at the foot of its card, so a row whose names take one, two or three lines
		   still has its counts in a straight line (2026-11-02). */
		.mmb-person-card-role { margin-top: auto; }

		.mmb-rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
		.mmb-rel-list li {
			background: var(--mmb-color-highlight, #F1EAE1);
			border-radius: 6px;
			padding: 10px 14px;
		}
		/* A relative's name is a link: maroon and underlined like the site's other plain links
		   (mmb-standard.css), because phones never show a hover underline (site review 2, 2026-11-13). */
		.mmb-rel-list a { color: var(--mmb-color-maroon, #7A3540); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
		.mmb-rel-list a:hover { color: var(--mmb-color-maroon-dark, #5E2830); }
		.mmb-rel-type { display: block; color: var(--mmb-color-maroon, #7A3540); font-size: var(--mmb-size-text, 20px); font-weight: 600; }
		.mmb-rel-prompt { color: var(--mmb-color-hint, #6B6058); font-size: var(--mmb-size-note, 20px); font-style: italic; }

		/* ===== A person's page: "About Joe" and the relatives' small photos under "Family" (site review 2, item 120, 2026-11-14) */
		/* A person's page: "About Joe" - the family's own words under the name, with the standard section title above them
		   (site review 2, item 120a, 2026-11-14). Lines kept to a comfortable reading width on a computer. The older
		   word-wrap first, for older iPads. */
		.mmb-person-about-text { max-width: 40em; font-size: var(--mmb-size-text, 24px); line-height: var(--mmb-line, 1.6); word-wrap: break-word; overflow-wrap: break-word; }
		.mmb-person-about-text p { margin: 0 0 14px; font-size: inherit; line-height: inherit; }
		.mmb-person-about-text p:last-child { margin-bottom: 0; }
		/* The same space under the About words as under the name block, so the Timeline button does not touch the last line
		   (seen in the real-browser preview, 2026-11-14; site review 2, item 120a). */
		.mmb-person-about { margin: 0 0 24px; }
		/* "Family": each relative's small photo at the left of their line - the look of the Families pictures below
		   (rounded square, maroon edge), at a fixed size; the WHOLE photo on the grey of the photo grids ("whole photos"
		   is a site rule); no photo = their first letter (site review 2, item 120b, 2026-11-14). Its own class:
		   .mmb-person-avatar is stretched to 100% wide on this page. "a.mmb-rel-face" so the list's own ".mmb-rel-list a"
		   underline and colour do not reach it. Grid, not flex gap (older iPads). The wider columns use min(): a browser
		   without it keeps the 200px rule above. Long names: the older word-wrap / word-break first, for older iPads
		   (Safari before 15.4 ignores overflow-wrap: anywhere). */
		.mmb-rel-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
		.mmb-rel-list li.mmb-rel-has-face { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-column-gap: 14px; column-gap: 14px; align-items: center; }
		.mmb-rel-list li.mmb-rel-has-face .mmb-rel-words { grid-column: 2; }
		.mmb-rel-list .mmb-rel-words { display: block; min-width: 0; word-wrap: break-word; word-break: break-word; overflow-wrap: anywhere; }
		.mmb-rel-list a.mmb-rel-face { display: block; width: 64px; height: 64px; box-sizing: border-box; overflow: hidden; border: var(--mmb-box-edge, 2px solid #7A3540); border-radius: var(--mmb-box-round, 10px); background: var(--mmb-color-box, #fff); text-decoration: none; }
		.mmb-rel-list a.mmb-rel-face img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; background: #999999; }
		.mmb-rel-list a.mmb-rel-face-none { display: flex; align-items: center; justify-content: center; font-family: var(--mmb-font-title, "Lora", Georgia, serif); font-size: 32px; font-weight: 600; line-height: 1; color: var(--mmb-color-maroon, #7A3540); }
		/* ===== end of item 120 (page part) */

		/* Book / listing cards */
		.mmb-book-header { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; }
		.mmb-book-cover { width: 200px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: var(--mmb-box-edge, 2px solid #7A3540); box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25)); }
		.mmb-book-desc { color: var(--mmb-color-note, #5C5344); line-height: 1.6; }

		.mmb-entry-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
		.mmb-entry-card {
			display: flex;
			gap: 16px;
			align-items: flex-start; /* the small photo lines up with the title, not the middle of a tall card (2026-11-02) */
			background: #FFFFFF;
			border: 1px solid var(--mmb-color-line, #C9B8A8);
			border-radius: 8px;
			padding: 14px 18px;
			text-decoration: none;
			color: var(--mmb-color-text, #2E2621);
		}
		.mmb-entry-card:hover { background: var(--mmb-color-highlight, #F1EAE1); }

		/* Guestbook - a memory's own note section (memory-comments.php) */
		.mmb-guestbook { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--mmb-color-line, #C9B8A8); }
		.mmb-guestbook .mmb-empty-note { margin: 0 0 20px; }
		.mmb-guestbook-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
		.mmb-guestbook-note {
			background: var(--mmb-color-box, #fff);
			border: var(--mmb-box-edge, 2px solid #7A3540);
			border-radius: var(--mmb-box-round, 10px);
			box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25));
			padding: 16px 20px;
		}
		.mmb-guestbook-note-author { font-family: var(--mmb-font-title, "Lora", Georgia, serif); font-weight: 700; color: var(--mmb-color-maroon, #7A3540); font-size: var(--mmb-size-small-title, 20px); margin-bottom: 4px; }
		.mmb-guestbook-note-text { color: var(--mmb-color-maroon, #7A3540); font-size: var(--mmb-size-text, 20px); line-height: 1.6; }
		.mmb-guestbook-note-text p { display: inline; margin: 0; }
		/* Same 5-column grid, size, gap and hover-zoom technique as the Photo Browser grid
		   (media-fast-grid.php) - a real grid with repeat(5, 1fr), not a fixed pixel width, so
		   each photo always fills exactly one fifth of the width regardless of container size.
		   Anchored to the bottom edge, not the center, so the zoom grows upward only. */
		.mmb-guestbook-note-photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 8px 0; }
		/* Same breakpoints as .mmb-gallery-grid so photos stay a usable size on tablets and phones. */
		@media (max-width: 900px) { .mmb-guestbook-note-photos { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
		@media (max-width: 560px) { .mmb-guestbook-note-photos { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
		.mmb-guestbook-photo-item { position: relative; display: block; }
		.mmb-guestbook-photo-item:hover { z-index: 5; }
		.mmb-guestbook-photo {
			display: block;
			width: 100%;
			height: auto;
			aspect-ratio: 1 / 1;
			box-sizing: border-box;
			max-width: none;
			/* Whole photo, never cropped (owner request 2026-10-01) - same as the Photo Browser grid. */
			object-fit: contain;
			background: #999999;
			border: var(--mmb-box-edge, 2px solid #7A3540);
			box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25));
			border-radius: 6px;
			transition: transform 0.15s ease;
			transform-origin: center bottom;
		}
		.mmb-guestbook-photo-item:hover .mmb-guestbook-photo { transform: scale(1.25); }
		/* Caption under each guestbook photo - editable (family with edit rights) or plain text
		   (everyone else viewing this public page) - see $can_edit_photos in memory-comments.php. */
		/* The caption box under each photo is a standard typing box (its markup is in memory-comments.php). */
		.mmb-guestbook-photo-caption { display: block; width: 100%; box-sizing: border-box; min-height: var(--mmb-tap, 52px); margin-top: 6px; padding: var(--mmb-input-pad, 12px 14px); font-size: var(--mmb-size-typing, 20px); border: var(--mmb-input-edge, 2px solid #C9B8A8); border-radius: var(--mmb-input-round, 8px); font-family: var(--mmb-font-text, "Karla", Arial, sans-serif); }
		.mmb-guestbook-photo-caption-text { display: block; margin-top: 6px; font-size: var(--mmb-size-note, 20px); color: var(--mmb-color-hint, #6B6058); }
		.mmb-guestbook-note-date { color: var(--mmb-color-note, #5C5344); font-size: var(--mmb-size-text, 20px); margin-top: 8px; }

		.mmb-guestbook-form {
			background: var(--mmb-color-highlight, #F1EAE1);
			border: 1px solid var(--mmb-color-line, #C9B8A8);
			border-radius: 10px;
			padding: 24px;
			max-width: 520px;
		}
		.mmb-guestbook-form p { margin: 0 0 16px; }
		.mmb-guestbook-form label { display: block; font-family: var(--mmb-font-title, "Lora", Georgia, serif); font-weight: 600; color: var(--mmb-color-maroon, #7A3540); margin-bottom: 6px; font-size: var(--mmb-size-field-title, 20px); }
		.mmb-guestbook-form .mmb-soft-inline { font-family: var(--mmb-font-text, "Karla", Arial, sans-serif); font-weight: 400; color: var(--mmb-color-note, #5C5344); font-size: var(--mmb-size-note, 20px); }
		.mmb-guestbook-form input[type="text"],
		.mmb-guestbook-form input[type="email"],
		.mmb-guestbook-form textarea {
			width: 100%;
			box-sizing: border-box;
			min-height: var(--mmb-tap, 52px);
			padding: var(--mmb-input-pad, 12px 14px);
			border: var(--mmb-input-edge, 2px solid #C9B8A8);
			border-radius: var(--mmb-input-round, 8px);
			font-family: var(--mmb-font-text, "Karla", Arial, sans-serif);
			font-size: var(--mmb-size-typing, 20px);
			background: #FFFFFF;
			color: var(--mmb-color-text, #2E2621);
		}
		.mmb-guestbook-form textarea { resize: vertical; min-height: 90px; }
		.mmb-btn-guestbook {
			display: inline-block;
			min-height: var(--mmb-btn-height, 56px);
			background: var(--mmb-color-maroon, #7A3540);
			color: #fff;
			border: 2px solid var(--mmb-color-maroon, #7A3540);
			border-radius: var(--mmb-btn-round, 10px);
			padding: var(--mmb-btn-pad, 14px 28px);
			font-family: var(--mmb-font-text, "Karla", Arial, sans-serif);
			font-weight: 700;
			font-size: var(--mmb-size-button, 20px);
			line-height: 1.2;
			cursor: pointer;
		}
		.mmb-btn-guestbook:hover { background: var(--mmb-color-maroon-dark, #5E2830); border-color: var(--mmb-color-maroon-dark, #5E2830); }
		.mmb-entry-thumb { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--mmb-color-highlight, #F1EAE1); }
		/* A memory's title in a list of memories: the standard small title (owner, 2026-11-02). */
		.mmb-entry-title { font-family: var(--mmb-font-title, "Lora", Georgia, serif); font-weight: 700; font-size: var(--mmb-size-small-title, 20px); margin: 0 0 2px; }
		.mmb-entry-date { color: var(--mmb-color-hint, #6B6058); font-size: var(--mmb-size-text, 20px); }

		/* Memory cards that hold a second link ("Stories from ..." / "Add your side of the story"):
		   a link can't sit inside another link, so the card is a box and its title link stretches
		   over the whole card (tapping anywhere still opens the memory, as before), with the
		   stories link lifted above it. */
		.mmb-entry-card-linked { position: relative; }
		.mmb-entry-card-linked .mmb-entry-link { color: inherit; text-decoration: none; }
		/* top/right/bottom/left as well as inset: Safari before 14.1 (older iPads) ignores inset (site review 2, item 124, 2026-11-14). */
		.mmb-entry-card-linked .mmb-entry-link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 8px; }
		.mmb-entry-card-linked:hover .mmb-entry-link { text-decoration: underline; }
		.mmb-entry-card-linked:focus-within { outline: var(--mmb-focus-ring, 3px solid #B8935A); outline-offset: 2px; }
		.mmb-entry-card-linked .mmb-entry-date { margin: 0; }
		/* Tall enough to tap (48px) from padding, not from a 44px line height - when the link wrapped onto two
		   lines its lines sat 44px apart and read as separate words (2026-11-02). */
		.mmb-entry-stories {
			position: relative;
			z-index: 2;
			display: inline-block;
			min-height: 48px;
			padding: 11px 0;
			box-sizing: border-box;
			line-height: 1.3;
			text-wrap: balance;
			font-size: var(--mmb-size-text, 20px);
			font-weight: 600;
			color: var(--mmb-color-maroon, #7A3540);
			text-decoration: underline;
		}
		.mmb-entry-stories:hover, .mmb-entry-stories:focus { color: var(--mmb-color-maroon-dark, #5E2830); }
		.mmb-entry-stories-add { color: #3E6B34; }
		.mmb-entry-stories-add:hover, .mmb-entry-stories-add:focus { color: #335A2B; }

		/* Memory page: the visitor's own words for when and who, and "Shared by". */
		.mmb-vs-shared-by { color: var(--mmb-color-hint, #6B6058); font-size: var(--mmb-size-text, 20px); margin: 0 0 20px; }
		/* ===== The "With" line and lone web addresses in a story (site review 2, items 117a and 149e, 2026-11-14) */
		/* "With Lily, Sarah, Michael and Scout" - the people in a memory as one line, each name a link like a relative's
		   name on a Person page, each a finger-sized tap target: at least 44px tall, inline-block so its padding counts
		   (site review 2, item 117a, 2026-11-14). The small button and the grey chip rules that stood here are gone (117b). */
		.mmb-wrap .mmb-memory-with { margin: 0 0 24px; font-size: var(--mmb-size-text, 24px); line-height: 1.85; overflow-wrap: anywhere; }
		.mmb-wrap .mmb-memory-with a { display: inline-block; box-sizing: border-box; min-height: 44px; max-width: 100%; padding: 4px 3px; line-height: 1.5; vertical-align: baseline; color: var(--mmb-color-maroon, #7A3540); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
		.mmb-wrap .mmb-memory-with a:hover, .mmb-wrap .mmb-memory-with a:focus { color: var(--mmb-color-maroon-dark, #5E2830); }
		/* A web address alone on its line in a story (149e): a plain link, broken anywhere so a long one never runs past a phone's edge. */
		.mmb-wrap a.mmb-story-link { color: var(--mmb-color-maroon, #7A3540); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; word-break: break-word; }

		/* "Family stories" - approved comments on a memory (memory-comments.php), the Guestbook's
		   old look: maroon-bordered boxes, whole photos 5 across. */
		.mmb-vs-stories { margin-top: 8px; scroll-margin-top: 100px; }
		.mmb-vs-story-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
		.mmb-vs-story {
			background: var(--mmb-color-box, #fff);
			border: var(--mmb-box-edge, 2px solid #7A3540);
			border-radius: var(--mmb-box-round, 10px);
			box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25));
			padding: 18px 22px;
			scroll-margin-top: 100px;
		}
		.mmb-vs-story-name { font-family: var(--mmb-font-title, "Lora", Georgia, serif); font-weight: 700; color: var(--mmb-color-maroon, #7A3540); font-size: var(--mmb-size-small-title, 20px); margin: 0; }
		.mmb-vs-story-date { color: var(--mmb-color-hint, #6B6058); font-size: var(--mmb-size-text, 20px); margin: 2px 0 10px; }
		.mmb-vs-story-text { color: var(--mmb-color-text, #2E2621); font-size: var(--mmb-size-text, 20px); line-height: 1.65; }
		.mmb-vs-story-text p { margin: 0 0 12px; }
		.mmb-vs-story-text p:last-child { margin-bottom: 0; }
		.mmb-vs-story-photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 14px 0 4px; }
		@media (max-width: 900px) { .mmb-vs-story-photos { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
		@media (max-width: 560px) { .mmb-vs-story-photos { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
		.mmb-vs-story-photo-item { margin: 0; }
		.mmb-vs-story-photo {
			display: block;
			width: 100%;
			height: auto;
			aspect-ratio: 1 / 1;
			max-width: none;
			object-fit: contain;
			background: #999999;
			border: var(--mmb-box-edge, 2px solid #7A3540);
			border-radius: 6px;
			box-shadow: var(--mmb-box-shadow, 6px 6px 14px rgba(46, 38, 33, 0.25));
			box-sizing: border-box;
			cursor: zoom-in;
		}
		/* "Waiting for approval" - the standard's please-note message (mmb-s-msg-info) values. */
		.mmb-vs-waiting-note { margin: 0 0 24px; padding: 14px 18px; border-radius: 8px; background: var(--mmb-color-highlight, #F1EAE1); border-left: 6px solid var(--mmb-color-maroon, #7A3540); color: var(--mmb-color-text, #2E2621); font-size: var(--mmb-size-message, 20px); font-weight: 700; }
		.mmb-vs-waiting-note a { color: var(--mmb-color-maroon, #7A3540); }

		/* A Book's entry: "Read the family stories" folded under its card. */
		.mmb-vs-book-stories { margin: 8px 0 0 18px; }
		.mmb-vs-book-stories > summary {
			display: inline-flex;
			align-items: center;
			min-height: 48px;
			cursor: pointer;
			font-weight: 700;
			color: var(--mmb-color-maroon, #7A3540);
			text-decoration: underline;
		}
		.mmb-vs-book-stories[open] > summary { margin-bottom: 10px; }
		.mmb-vs-book-stories .mmb-vs-story-list { margin-bottom: 8px; }

		.mmb-empty-note { color: var(--mmb-color-hint, #6B6058); font-style: italic; }

		/* Default Home page (site-home.php) */
		.mmb-home-cover { margin: -8px -8px 24px; border-radius: 8px 8px 0 0; overflow: hidden; }
		.mmb-home-cover img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
		/* ===== Home picture until a cover is chosen (site review 2, item 125a, 2026-11-14) */
		/* Until a cover photo is chosen, a photo from the newest memory: shown whole, never cut, on the soft background (site review 2, item 125a, 2026-11-14). */
		.mmb-home-cover.mmb-home-cover-auto { background: var(--mmb-color-highlight, #F1EAE1); }
		.mmb-home-cover.mmb-home-cover-auto img { object-fit: contain; }
		.mmb-home-tagline { color: var(--mmb-color-maroon, #7A3540); font-style: italic; font-size: var(--mmb-size-text, 20px); margin-top: -8px; }
		.mmb-home-welcome { margin-bottom: 24px; }
		.mmb-home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
		/* "Browse ..." - the standard second button's values (a -primary one is the main button's). */
		.mmb-home-btn {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			box-sizing: border-box;
			min-height: var(--mmb-btn-height, 56px);
			padding: var(--mmb-btn-pad, 14px 28px);
			border-radius: var(--mmb-btn-round, 10px);
			background: var(--mmb-color-box, #fff);
			color: var(--mmb-color-maroon, #7A3540);
			text-decoration: none;
			font-family: var(--mmb-font-text, "Karla", Arial, sans-serif);
			font-size: var(--mmb-size-button, 20px);
			font-weight: 700;
			line-height: 1.2;
			text-align: center; /* centred, evenly split words if a button wraps (2026-11-02) */
			text-wrap: balance;
			border: 2px solid var(--mmb-color-maroon, #7A3540);
		}
		.mmb-home-btn:hover { background: var(--mmb-color-highlight, #F1EAE1); border-color: var(--mmb-color-maroon-dark, #5E2830); color: var(--mmb-color-maroon-dark, #5E2830); }
		.mmb-home-btn-primary { background: var(--mmb-color-maroon, #7A3540); color: #fff; border-color: var(--mmb-color-maroon, #7A3540); }
		.mmb-home-btn-primary:hover { background: var(--mmb-color-maroon-dark, #5E2830); border-color: var(--mmb-color-maroon-dark, #5E2830); color: #fff; }

		/* Lightbox: clicking a photo enlarges it in an overlay on the
		   same page, with a clear way back (close button, click
		   outside, or Escape) - replaces the old behavior of opening
		   the full image in a separate browser tab with no "shrink
		   back" affordance at all. */
		.mmb-lightbox-trigger { cursor: zoom-in; }
		.mmb-lightbox-overlay {
			display: none;
			position: fixed;
			inset: 0;
			background: rgba(20, 16, 14, 0.92);
			z-index: 100000;
			align-items: center;
			justify-content: center;
			padding: 48px;
		}
		.mmb-lightbox-overlay.mmb-open { display: flex; }
		.mmb-lightbox-overlay img {
			max-width: 100%;
			max-height: 100%;
			border-radius: 6px;
			box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
		}
		.mmb-lightbox-close {
			position: absolute;
			top: 14px;
			right: 18px;
			background: none;
			border: none;
			color: var(--mmb-color-card, #FBF8F3);
			font-size: 52px;
			line-height: 1;
			cursor: pointer;
			padding: 8px;
			animation: mmb-lightbox-pulse 1.8s ease-in-out infinite;
		}
		.mmb-lightbox-close:hover {
			animation-play-state: paused;
		}
		@keyframes mmb-lightbox-pulse {
			0%, 100% { transform: scale(1); opacity: 1; }
			50% { transform: scale(1.18); opacity: 0.7; }
		}
		.mmb-lightbox-nav {
			position: absolute;
			top: 50%;
			transform: translateY(-50%);
			background: rgba(255, 255, 255, 0.12);
			border: none;
			color: var(--mmb-color-card, #FBF8F3);
			font-size: 26px;
			width: 46px;
			height: 46px;
			border-radius: 50%;
			cursor: pointer;
		}
		.mmb-lightbox-prev { left: 14px; }
		.mmb-lightbox-next { right: 14px; }
		.mmb-lightbox-close:hover, .mmb-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
		.mmb-lightbox-counter {
			position: absolute;
			bottom: 18px;
			left: 50%;
			transform: translateX(-50%);
			color: var(--mmb-color-card, #FBF8F3);
			font-family: var(--mmb-font-text, "Karla", Arial, sans-serif);
			font-size: var(--mmb-size-text, 20px);
			letter-spacing: .03em;
			background: rgba(0, 0, 0, 0.35);
			padding: 5px 14px;
			border-radius: 999px;
		}
		@media (max-width: 600px) {
			.mmb-lightbox-overlay { padding: 16px; }
			.mmb-lightbox-nav { width: 40px; height: 40px; font-size: 24px; }
		}
		/* "⬇ Download" (photo-download.php) - signed-in family members only. Top left, across from
		   the close button: a standard second button (mmb-s-btn-2, added by the script below) - only
		   its place is here. */
		.mmb-lightbox-download {
			position: absolute;
			top: 14px;
			left: 18px;
			z-index: 2;
			white-space: nowrap;
		}
		.mmb-lightbox-overlay .mmb-lightbox-download[hidden] { display: none; }
		@media (max-width: 600px) {
			.mmb-lightbox-download { top: 10px; left: 10px; }
		}
		/* Keyboard and screen-reader use (owner, 2026-11-10: 'fix 1 to 5' after the website review - fix 5).
		   A strip that shows one photo at a time (the top photos, a Slideshow block, a Person's slideshow)
		   is ONE stop for the Tab key, and a photo with no link round it is a stop of its own - the script
		   below sets that up. A ring shows round them only when they are reached with the keyboard, never
		   for a mouse or a finger. */
		.mmb-hero-photo-inner[data-mmb-lb-kb]:focus:not(:focus-visible),
		.mmb-slideshow[data-mmb-lb-kb]:focus:not(:focus-visible),
		img.mmb-lightbox-trigger[data-mmb-lb-kb]:focus:not(:focus-visible) { outline: none; }
		.mmb-hero-photo-inner[data-mmb-lb-kb]:focus-visible,
		.mmb-slideshow[data-mmb-lb-kb]:focus-visible,
		img.mmb-lightbox-trigger[data-mmb-lb-kb]:focus-visible { outline: var(--mmb-focus-ring, 3px solid #B8935A); outline-offset: 2px; }
		/* The viewer now puts the keyboard on Close when it opens. A theme can colour a focused button like
		   a hovered one, so the viewer's buttons keep their own look when focused (hover as before), and a
		   white ring shows only for keyboard users. */
		.mmb-lightbox-overlay .mmb-lightbox-close:focus { background: none; color: var(--mmb-color-card, #FBF8F3); box-shadow: none; }
		.mmb-lightbox-overlay .mmb-lightbox-nav:focus { background: rgba(255, 255, 255, 0.12); color: var(--mmb-color-card, #FBF8F3); box-shadow: none; }
		.mmb-lightbox-overlay .mmb-lightbox-close:hover,
		.mmb-lightbox-overlay .mmb-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
		.mmb-lightbox-overlay .mmb-lightbox-close:focus-visible,
		.mmb-lightbox-overlay .mmb-lightbox-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
		/* "Photo 3 of 12" for screen readers only - the counter on the screen still shows "3 / 12". */
		.mmb-lightbox-overlay .mmb-lightbox-sr {
			position: absolute;
			width: 1px;
			height: 1px;
			margin: -1px;
			padding: 0;
			border: 0;
			overflow: hidden;
			clip: rect(0, 0, 0, 0);
			white-space: nowrap;
		}

		/* ===== 117e - "‹ Earlier memory" / "Later memory ›" at the end of a memory (site review 2, item 117e, 2026-11-14) */
		/* Each with the title of the memory it opens, and "See all memories on the Timeline" under them. White standard
		   buttons (mmb-s-btn-2), so the maroon invitation after them stays the one strong button. Spaced with margins,
		   not gap, for old iPads. */
		.mmb-memory-nav { margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--mmb-color-line, #C9B8A8); }
		.mmb-memory-nav-row { display: flex; }
		.mmb-wrap a.mmb-memory-nav-btn { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: flex-start; padding: 10px 18px; text-align: left; white-space: normal; }
		.mmb-wrap a.mmb-memory-nav-earlier { margin-right: 12px; }
		.mmb-wrap a.mmb-memory-nav-btn:only-child { flex: 0 1 calc(50% - 6px); margin-right: 0; }
		.mmb-wrap a.mmb-memory-nav-later { margin-left: auto; align-items: flex-end; text-align: right; }
		.mmb-memory-nav-title { display: block; margin-top: 4px; font-weight: 400; font-size: var(--mmb-size-text, 24px); overflow-wrap: anywhere; }
		.mmb-memory-nav-all { margin: 16px 0 0; text-align: center; }
		.mmb-memory-nav-all a { display: inline-block; min-height: 48px; padding: 11px 0; box-sizing: border-box; font-size: var(--mmb-size-text, 24px); font-weight: 600; color: var(--mmb-color-maroon, #7A3540); text-decoration: underline; text-underline-offset: 3px; }

		/* Phone fit (owner, 2026-11-02: 'check the phone pages to see if everything fits attractively').
		   The page box ran right to both screen edges - its maroon edge, round corners and shadow were cut
		   off. Now it sits 16px in on a phone, like the other pages, and 24px in on a tablet or a laptop
		   narrower than the box (only at the widths where it touched the edges before). Boxes that sat
		   inside it give their side space back to the words. */
		@media (min-width: 601px) and (max-width: 908px), (min-width: 1100px) and (max-width: 1328px) {
			#inner-wrap > .mmb-wrap { margin-left: 24px; margin-right: 24px; }
		}
		@media (max-width: 600px) {
			/* Only a page box straight in the theme's main area: Find a Memory's box sits inside the page's
			   own content, which already has its side space. */
			#inner-wrap > .mmb-wrap { margin-left: 16px; margin-right: 16px; }

			/* "✎ Edit This ..." under a title: full width, like the
			   "See ...'s Timeline" button, so buttons one under the other are the same width. */
			.mmb-title-row .mmb-edit-link { display: flex; width: 100%; white-space: normal; }
			.mmb-person-header .mmb-person-names { flex: 1 1 100%; min-width: 0; }
			/* ===== "Family" photos a little smaller on a phone, so the names keep room (site review 2, item 120b, 2026-11-14). */
			.mmb-rel-list li.mmb-rel-has-face { grid-template-columns: 56px minmax(0, 1fr); grid-column-gap: 12px; column-gap: 12px; }
			.mmb-rel-list a.mmb-rel-face { width: 56px; height: 56px; }

			/* The top photo and a slideshow: a frame sized to the phone's width instead of a fixed 420px /
			   480px, so a wide photo is not half black bars. The whole photo still shows. */
			.mmb-hero-photo-inner { height: 80vw; max-height: 420px; }
			.mmb-slideshow { height: 80vw; max-height: 480px; }

			/* Story boxes: less space at their sides, so more words fit on a line (the words keep their size). */
			.mmb-memory-note { padding: 24px 16px 12px; }
			.mmb-block > .mmb-text-block { padding: 16px; }
			/* Phone polish (owner, 2026-11-02): since the page box moved 16px in, the story boxes left the words
			   only about 258px. The beige panel now reaches 12px into the page box's own side space (it still
			   stays 10px inside its edge), with 14px inside it, so the words get about 286px - roughly one more
			   word a line - and start within a few pixels of the title and the words above. The look (beige,
			   maroon bar, thin edge) is unchanged. */
			.mmb-memory-note,
			.mmb-block > .mmb-text-block { margin-left: -12px; margin-right: -12px; padding-left: 14px; padding-right: 14px; }
			/* Phone polish (owner, 2026-11-02): the example notice keeps a little more room for its words. */
			.mmb-example-notice { padding-left: 16px; padding-right: 16px; }
			/* Phone polish (owner, 2026-11-02): "Visit our family site" (a Link block) and "View document" are
			   full width, like the other buttons on a phone; a long name or address wraps inside the button. */
			.mmb-wrap a.mmb-ext-link,
			.mmb-wrap a.mmb-doc-link { display: flex; width: 100%; justify-content: center; overflow-wrap: anywhere; }

			/* People, Families and Books cards: less space between the two columns, so the photos stay large. */
			.mmb-people-grid { gap: 28px 20px; }
			/* One family (or one person) on its own: in the middle, the same size as a card in a pair. */
			body.post-type-archive-mmb_family .mmb-people-grid > .mmb-person-card:only-child,
			body.post-type-archive-mmb_person .mmb-people-grid > .mmb-person-card:only-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
			/* Phone polish (owner, 2026-11-02): a last card alone in its row (the 9th of 9 on All People) sits
			   in the middle, the same size as a card in a pair, not in the left half. Not on All Books, whose
			   cards are a one-column list on a phone (archive-books.php). */
			.mmb-wrap:not(.mmb-books-page) .mmb-people-grid > .mmb-person-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }

			/* Lists of memories: rows divided by a thin line instead of a box inside the page box, so the
			   title, the date and "Add your side of the story" get the page box's whole width. */
			.mmb-wrap .mmb-entry-list { gap: 0; border-top: 1px solid var(--mmb-color-line, #C9B8A8); }
			.mmb-wrap .mmb-entry-list > li { border-bottom: 1px solid var(--mmb-color-line, #C9B8A8); }
			.mmb-wrap .mmb-entry-card { gap: 14px; padding: 14px 0; border: 0; border-radius: 0; }

			/* Family stories and the note boxes: a little less space at their sides. */
			.mmb-vs-story { padding: 16px; }
			.mmb-guestbook-note { padding: 14px 16px; }
			.mmb-guestbook-form { padding: 18px 16px; }

			/* The Home page's Browse buttons: one under the other, all the same width. */
			.mmb-home-actions .mmb-home-btn { flex: 1 1 100%; }

			/* ===== Phones: Earlier / Later and the after-save buttons (site review 2, items 117e and 115, 2026-11-14) */
			/* Earlier / Later one under the other, full width, words centred, 12px apart (117e). */
			.mmb-memory-nav-row { flex-direction: column; }
			.mmb-wrap a.mmb-memory-nav-btn,
			.mmb-wrap a.mmb-memory-nav-btn:only-child { flex: 0 0 auto; width: 100%; margin-left: 0; margin-right: 0; align-items: center; text-align: center; }
			.mmb-wrap a.mmb-memory-nav-earlier:not(:only-child) { margin-bottom: 12px; }
			/* The after-save buttons full width, one under the other (115). */
			.mmb-wrap .mmb-saved-next .mmb-s-buttons > a { width: 100%; margin-right: 0; }
		}

		/* ===== 117d - one centred 760px column on a memory page wider than a phone (site review 2, item 117d, 2026-11-14) */
		/* The page box is 760px inside its edges and centred, so the top photos, title, story boxes, headings, galleries,
		   slideshows and comments are one centred column - no empty white on the right of the story. Only while B8's
		   reading-width switch is on (body class mmb-reading, network option mmb_reading_width); off, the page is as
		   before. Phones are not touched. The 4px is the box's two 2px edges. */
		@media (min-width: 601px) {
			.mmb-reading #inner-wrap > .mmb-wrap.mmb-memory-page {
				box-sizing: border-box;
				width: auto;
				max-width: min(calc(760px + 2 * var(--mmb-space-box, 40px) + 4px), calc(100% - 48px));
				margin-left: auto;
				margin-right: auto;
			}
		}
		/* In that column a gallery is 3 photos across (about 237px each), not 5 small ones. */
		@media (min-width: 901px) {
			.mmb-reading .mmb-memory-page .mmb-gallery-grid { grid-template-columns: repeat(3, 1fr); }
		}

		/* ===== Slideshows and the big view (site review 2, items 118a, 118b, 118c, 117c, 2026-11-14) */
		/* Under a strip that shows one photo at a time: its caption (the Baby Book look), then "‹ Back" / "Photo 2 of 5" /
		   "Next ›", then once a page "Tap a photo to see it bigger.". Spaced with margins, not gap, for old iPads. */
		.mmb-hero-photo.mmb-hero-has-extras { margin-bottom: 12px; }
		.mmb-hero-extras { margin: 0 0 32px; }
		.mmb-wrap .mmb-slide-caption { margin: 10px 0 0; padding: 0 6px; color: var(--mmb-color-note, #2E2621); font-family: var(--mmb-font-text, "Karla", Arial, sans-serif); font-size: var(--mmb-size-text, 24px); font-style: italic; line-height: 1.45; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
		.mmb-wrap .mmb-slide-caption[hidden],
		.mmb-wrap .mmb-slide-controls[hidden] { display: none; }
		.mmb-wrap .mmb-slide-controls { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 0; }
		.mmb-wrap .mmb-slide-controls .mmb-slide-btn { flex: 0 0 auto; min-width: 140px; padding-left: 18px; padding-right: 18px; touch-action: manipulation; /* a quick double tap is two taps, not the iPhone's zoom */ }
		.mmb-wrap .mmb-slide-controls .mmb-slide-count { flex: 1 1 auto; min-width: 0; margin: 0 12px; color: var(--mmb-color-text, #2E2621); font-size: var(--mmb-size-text, 24px); line-height: 1.3; text-align: center; }
		.mmb-wrap .mmb-tap-hint { margin: 12px 0 0; color: var(--mmb-color-note, #2E2621); font-size: var(--mmb-size-note, 24px); line-height: 1.4; text-align: center; }
		.mmb-wrap .mmb-tap-hint.mmb-tap-hint-above { margin: 0 0 12px; }
		/* A Slideshow section cross-fades like the top photo instead of a hard cut - only after the script has moved it once
		   (never at page load): the old photo (mmb-slide-leaving, for 1 second) stays under the new one while the new one fades
		   in over it. Other photos not showing stay display:none, so a phone still fetches a photo only near its turn. */
		.mmb-slideshow.mmb-slide-moved img.mmb-active { position: relative; z-index: 1; animation: mmb-slide-in 1s ease both; }
		.mmb-slideshow img.mmb-slide-leaving { display: block; position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; }
		.mmb-slideshow.mmb-slide-held img.mmb-active { animation-duration: 0.4s; }
		@keyframes mmb-slide-in { from { opacity: 0; } to { opacity: 1; } }
		/* Top Photos stepped by hand: a quick fade, no slow zoom. */
		.mmb-hero-photo-inner[data-mmb-slide-on].mmb-slide-held img { transition: opacity 0.4s ease; transform: scale(1); }
		/* Less motion asked for: nothing changes by itself (the script), and a change by hand is instant. */
		@media (prefers-reduced-motion: reduce) {
			.mmb-slideshow.mmb-slide-moved img.mmb-active { animation: none; }
			.mmb-slideshow img.mmb-slide-leaving { display: none; }
			.mmb-hero-photo-inner[data-mmb-slide-on] img { transition: none; transform: none !important; }
		}
		/* Phones: "Photo 2 of 5" on its own line, the two buttons side by side under it, each half the width. */
		@media (max-width: 600px) {
			.mmb-wrap .mmb-slide-controls { flex-wrap: wrap; }
			.mmb-wrap .mmb-slide-controls .mmb-slide-count { order: -1; flex: 0 0 100%; margin: 0 0 10px; }
			.mmb-wrap .mmb-slide-controls .mmb-slide-btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
			.mmb-wrap .mmb-slide-controls .mmb-slide-back { margin-right: 12px; }
		}
		/* The big view: "× Close" still, bigger arrows, the caption, room for Download (site review 2, items 118c and 117c, 2026-11-14) */
		.mmb-lightbox-overlay.mmb-lb-help { --mmb-lb-below: 76px; padding: 88px 88px calc(var(--mmb-lb-below) + var(--mmb-lb-cap, 0px)); overscroll-behavior: contain; }
		.mmb-lightbox-overlay.mmb-lb-help.mmb-lb-one { --mmb-lb-below: 20px; }
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-close,
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-close:focus { top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; margin: 0; padding: 4px 18px 4px 12px; box-sizing: border-box; touch-action: manipulation; animation: none; transform: none; background: rgba(0, 0, 0, 0.5); border: 2px solid rgba(251, 248, 243, 0.75); border-radius: 999px; color: var(--mmb-color-card, #FBF8F3); font-family: var(--mmb-font-text, "Karla", Arial, sans-serif); font-size: var(--mmb-size-button, 24px); font-weight: 700; line-height: 1; opacity: 1; }
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-x { margin-right: 8px; font-size: 40px; font-weight: 400; line-height: 1; }
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-nav,
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-nav:focus { width: 56px; height: 56px; padding: 0; touch-action: manipulation; font-size: 34px; line-height: 1; background: rgba(0, 0, 0, 0.5); border: 2px solid rgba(251, 248, 243, 0.75); color: var(--mmb-color-card, #FBF8F3); }
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-prev { left: 16px; }
		.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-next { right: 16px; }
		/* The caption: the Baby Book look (baby-book.php), light on the dark view; long ones scroll inside their own 20% of the
		   screen (fitCaption() keeps exactly that much room, so the caption never covers the photo). */
		.mmb-lightbox-overlay .mmb-lightbox-caption { position: absolute; left: 16px; right: 16px; bottom: var(--mmb-lb-below, 76px); max-width: 760px; max-height: 20vh; box-sizing: border-box; overflow-y: auto; margin: 0 auto; padding: 4px 0; color: var(--mmb-color-card, #FBF8F3); font-family: var(--mmb-font-text, "Karla", Arial, sans-serif); font-size: var(--mmb-size-text, 24px); font-style: italic; line-height: 1.4; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
		.mmb-lightbox-overlay .mmb-lightbox-caption[hidden] { display: none; }
		@media (max-width: 600px) {
			.mmb-lightbox-overlay.mmb-lb-help { --mmb-lb-below: 68px; padding: 80px 12px calc(var(--mmb-lb-below) + var(--mmb-lb-cap, 0px)); }
			.mmb-lightbox-overlay.mmb-lb-help.mmb-lb-one { --mmb-lb-below: 16px; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-counter { bottom: 12px; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-prev { left: 8px; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-next { right: 8px; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-download { top: 12px; left: 12px; }
		}
		/* Up to 400px "⬇ Download" (about 200px) and "× Close" (about 150px) do not fit side by side: Download goes under the Close row. */
		@media (max-width: 400px) {
			.mmb-lightbox-overlay.mmb-lb-help.mmb-lb-has-dl { padding-top: 148px; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-download { top: 80px; }
		}
		/* A short screen (a phone held sideways): the photo keeps the height. Close becomes a narrow button (the × above the
		   word) in the right-hand margin, the arrows sit in the side margins, Download goes to the bottom left (members only),
		   the counter to the very bottom. After the two blocks above, so it wins on a small phone held sideways too. */
		@media (max-height: 500px) {
			.mmb-lightbox-overlay.mmb-lb-help { --mmb-lb-below: 52px; padding: 12px 96px calc(var(--mmb-lb-below) + var(--mmb-lb-cap, 0px)); }
			.mmb-lightbox-overlay.mmb-lb-help.mmb-lb-one { --mmb-lb-below: 12px; }
			.mmb-lightbox-overlay.mmb-lb-help.mmb-lb-has-dl { --mmb-lb-below: 68px; padding-top: 12px; }
			/* The counter is made lower here (about 35px, was 48), so it ends under the caption's room: at 48px it reached 4px
			   into the caption's box (real-browser check, 2026-11-15). */
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-counter { bottom: 8px; padding-top: 3px; padding-bottom: 3px; line-height: 1.2; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-close,
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-close:focus { top: 8px; right: 8px; flex-direction: column; padding: 4px 8px; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-x { margin: 0; font-size: 34px; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-prev { left: 16px; }
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-next { right: 16px; }
			/* 4px from the bottom, not 8: the 60px button then ends 4px under the caption's room (68px) instead of touching it
			   (real-browser check, 2026-11-15). */
			.mmb-lightbox-overlay.mmb-lb-help .mmb-lightbox-download { top: auto; bottom: 4px; left: 12px; }
		}
		/* ===== end of items 118 and 117c */
		/* ===== One memory card everywhere: lists 24 to a page with their order line, photo-first memory cards, square faces (site review 2, items 149c, 123f, 124 and 126, 2026-11-14) */
		/* Lists 24 to a page (All Memories, a Book, a person page) and the line that says their order (items 149c and 123f).
		   Moved from archive-memories.php; the fallback sizes are 24px, the site's smallest text. */
		.mmb-wrap .mmb-mem-sub { margin: 0 0 16px; color: var(--mmb-color-hint, #6B6058); font-size: var(--mmb-size-text, 24px); }
		.mmb-wrap .mmb-list-order { margin: 0 0 16px; color: var(--mmb-color-hint, #6B6058); font-size: var(--mmb-size-text, 24px); scroll-margin-top: 100px; }
		.mmb-wrap .mmb-list-order:empty { margin: 0; }
		.mmb-wrap h2#mmb-person-memories { scroll-margin-top: 100px; }
		.mmb-wrap .mmb-mem-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 28px 0 0; }
		.mmb-wrap .mmb-mem-pager-where { font-size: var(--mmb-size-text, 24px); font-weight: 700; color: var(--mmb-color-text, #2E2621); }
		.mmb-wrap .mmb-mem-pager-gap { min-width: 1px; }
		.mmb-wrap a.mmb-mem-btn { text-transform: none; letter-spacing: normal; }
		@media (max-width: 480px) {
			.mmb-wrap .mmb-mem-pager { justify-content: center; }
			.mmb-wrap .mmb-mem-pager a.mmb-mem-btn { flex: 1 1 40%; padding: 12px 16px; }
			.mmb-wrap .mmb-mem-pager-where { order: 3; flex: 1 1 100%; text-align: center; }
			.mmb-wrap .mmb-mem-pager-gap { display: none; }
		}
		/* Photo-first memory cards: All Memories, a Book, a person page, Home "Recent Memories" and Find a Memory (item 124).
		   One card a row on a phone and a small tablet; two from 760px (an iPad held upright); three from 1100px, where the page box
		   is 1280px wide - Find a Memory, inside the narrower theme page, stays at two. The photo is the 300-pixel copy shown WHOLE,
		   never cut (a site rule), on the soft beige: 220px tall, 200px on a phone. A memory with no photo keeps the row card.
		   Grid with grid-gap first, for older iPads. */
		.mmb-wrap ul.mmb-entry-list.mmb-photo-cards { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 24px; gap: 24px; align-items: stretch; list-style: none; margin: 0; padding: 0; }
		@media (min-width: 760px) {
			.mmb-wrap ul.mmb-entry-list.mmb-photo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
		}
		@media (min-width: 1100px) {
			.mmb-wrap ul.mmb-entry-list.mmb-photo-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
			.mmb-wrap.mmb-fm ul.mmb-entry-list.mmb-photo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
		}
		/* Every photo card in a row is as tall as the tallest, so the boxes line up. A memory with no photo keeps its own row-card
		   height (not a tall, mostly empty white box next to the photos). */
		.mmb-wrap ul.mmb-photo-cards > li { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; }
		.mmb-wrap ul.mmb-photo-cards > li > .mmb-entry-card { flex: 1 1 auto; }
		.mmb-wrap ul.mmb-photo-cards > li.mmb-entry-no-photo > .mmb-entry-card { flex: 0 0 auto; }
		.mmb-wrap ul.mmb-photo-cards > li.mmb-entry-has-photo > .mmb-entry-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
		.mmb-wrap ul.mmb-photo-cards img.mmb-entry-photo { display: block; width: 100%; max-width: none; height: 220px; margin: 0; object-fit: contain; background: var(--mmb-color-highlight, #F1EAE1); border: 0; border-radius: 0; }
		.mmb-wrap ul.mmb-photo-cards > li.mmb-entry-has-photo > .mmb-entry-card > div { min-width: 0; padding: 14px 18px 16px; }
		.mmb-wrap ul.mmb-photo-cards .mmb-entry-title { word-wrap: break-word; overflow-wrap: anywhere; }
		.mmb-wrap ul.mmb-photo-cards p.mmb-entry-open { margin: 6px 0 0; font-size: var(--mmb-size-text, 24px); font-weight: 600; line-height: 1.3; color: var(--mmb-color-maroon, #7A3540); text-decoration: underline; text-underline-offset: 3px; }
		/* A Book: "Read the family stories" under its card, in the card column; its photos two across there. */
		.mmb-wrap ul.mmb-photo-cards .mmb-vs-book-stories { margin: 8px 0 0; }
		.mmb-wrap ul.mmb-photo-cards .mmb-vs-story-photos { grid-template-columns: repeat(2, 1fr); }
		@media (max-width: 600px) {
			/* Phones: today's rows with a thin line between them, the photo across the whole row, the words under it. */
			.mmb-wrap ul.mmb-entry-list.mmb-photo-cards { grid-gap: 0; gap: 0; }
			.mmb-wrap ul.mmb-photo-cards > li.mmb-entry-has-photo > .mmb-entry-card { padding: 16px 0 18px; overflow: visible; }
			.mmb-wrap ul.mmb-photo-cards img.mmb-entry-photo { height: 200px; border-radius: 8px; }
			.mmb-wrap ul.mmb-photo-cards > li.mmb-entry-has-photo > .mmb-entry-card > div { padding: 12px 0 0; }
		}
		/* A square box round each face on All People, All Families, a family page and a person's Families boxes (item 126).
		   The 300-pixel copy is not square; aspect-ratio makes the square, but Safari before 15 (older iPads) ignores it, so there
		   the box itself is made square and the photo fills it. Newer browsers: the box is only a full-width holder, and the
		   photo inside it is a block, so no line-height gap shows under it. */
		.mmb-person-card > .mmb-avatar-sq { display: block; align-self: stretch; width: 100%; }
		.mmb-person-card > .mmb-avatar-sq > img.mmb-person-avatar { display: block; }
		@supports not (aspect-ratio: 1 / 1) {
			.mmb-person-card > .mmb-avatar-sq { position: relative; height: 0; padding-top: 100%; }
			.mmb-person-card > .mmb-avatar-sq > img.mmb-person-avatar { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
		}
		/* ===== end of items 149c, 123f, 124 and 126 */
