/* Shared diary typography and approved decorative title. */
.life-journal-home .section-heading{align-items:baseline;gap:14px}
.life-journal-home .section-heading h2{display:block;min-width:0;font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;font-size:clamp(28px,2.65vw,36px);line-height:1.22;margin:0;white-space:nowrap;letter-spacing:-.01em}
.life-journal-home .section-heading h2>a{color:#242424;text-decoration:none}
.life-journal-home .section-heading h2>a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.life-journal-home .section-heading>.text-link{white-space:nowrap;flex-shrink:0;font-size:15px}
.life-journal-home a:focus-visible,.journal-page a:focus-visible,.journal-page button:focus-visible{outline:2px solid #66351f;outline-offset:4px}
.life-tile{display:block;position:relative;text-decoration:none;color:#242424}
.life-tile:hover img{transform:scale(1.025)}
.life-kind{position:absolute;left:9px;bottom:9px;background:#fffdfaeb;color:#242424;padding:4px 8px;border-radius:4px;font:600 13px/1.5 var(--sans,Arial,sans-serif)}
.life-story-cover{height:100%;display:flex;align-items:center;justify-content:center;padding:16px;background:#f2ece3;color:#66351f;font:700 30px/1.15 'Cormorant Garamond',Georgia,serif;text-align:center}
.journal-page{padding-top:24px;max-width:1120px}
.journal-page h1{font:700 clamp(36px,4vw,52px)/1.12 'Cormorant Garamond',Georgia,serif;color:#242424;margin:0 0 20px}
.journal-intro{font:18px/1.7 var(--sans,Arial,sans-serif);color:#242424;max-width:850px;margin:0 0 28px}
.journal-demo-note{padding:12px 16px;border-left:3px solid #66351f;background:#f6f0e8;color:#44403c;font:15px/1.6 var(--sans,Arial,sans-serif);margin:0 0 24px}
.journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 22px;margin-bottom:30px}
.journal-card{min-width:0;display:flex;flex-direction:column;padding-bottom:18px;border-bottom:1px solid #ded7cf}
.journal-card .journal-image{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px;display:block}
.journal-card h2{font:700 28px/1.18 'Cormorant Garamond',Georgia,serif;margin:14px 0 9px}
.journal-card h2 a{color:#242424;text-decoration:none}.journal-card h2 a:hover{color:#66351f;text-decoration:underline;text-underline-offset:4px}
.journal-card p{font:16px/1.65 var(--sans,Arial,sans-serif);color:#44403c;margin:0}
.journal-entry{max-width:850px;margin:0 auto 36px}.journal-entry .journal-image{width:100%;height:auto;border-radius:6px;display:block}
.journal-entry .journal-photo-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;border-radius:6px}
.journal-entry figure{margin:0 0 24px}.journal-entry figcaption{font:15px/1.6 var(--sans,Arial,sans-serif);color:#44403c;margin-top:10px}
.journal-entry p{font:18px/1.7 var(--sans,Arial,sans-serif);color:#242424}.journal-date{display:block;color:#44403c;font:14px/1.6 var(--sans,Arial,sans-serif);margin-bottom:18px}
.journal-video{display:block;width:100%;max-height:75vh;background:#242424;border-radius:6px;margin-bottom:18px}
.journal-back{display:inline-flex;align-items:center;min-height:44px;color:#66351f;text-underline-offset:4px;font:16px/1.5 var(--sans,Arial,sans-serif);margin-bottom:22px}
@media(max-width:1000px){.journal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.life-journal-home .section-heading{align-items:start;gap:3px;flex-direction:column}.life-journal-home .section-heading h2{font-size:32px;white-space:normal;max-width:100%}.life-journal-home .section-heading>.text-link{font-size:15px}.journal-page{padding-top:18px}.journal-grid{grid-template-columns:1fr;gap:24px}.journal-intro,.journal-entry p{font-size:18px}.journal-card h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){.life-tile img{transition:none;transform:none!important}}
/* Approved 5А: the original vector stroke/glint, attached to its word. */
.life-journal-home .section-heading{flex-wrap:wrap;align-items:center}
.life-journal-home .section-heading h2{line-height:1.4;white-space:normal}
.journal-title{display:inline;color:#242424;text-decoration:none;letter-spacing:-.012em}
.journal-title span,.life-journal-home .section-heading .journal-title span{font:inherit;color:inherit;display:inline}
.journal-title .phrase,.life-journal-home .section-heading .journal-title .phrase{display:inline-block;white-space:nowrap}
.journal-title .discovery,.life-journal-home .section-heading .journal-title .discovery{position:relative;display:inline-block;padding:0 .28em;margin-left:.04em;margin-right:.08em;color:#66351f}
.journal-title .discovery>svg{position:absolute;left:-3%;top:-4%;width:106%;height:112%;fill:none;stroke:#895e45;stroke-width:1.05;transform:rotate(-2deg);pointer-events:none;overflow:visible}
.journal-title .discovery>.tiny-star,.life-journal-home .section-heading .journal-title .tiny-star{position:absolute;right:-.16em;top:.03em;width:11px;height:11px;display:block;line-height:1;pointer-events:none}
.journal-title .tiny-star>svg{display:block;width:100%;height:100%;fill:#fffdfa;stroke:#66351f;stroke-width:1.05}
.life-journal-home .section-heading h2>a:hover{text-decoration:none;color:#66351f}
.journal-strip{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:7px;align-items:start;margin:0 0 8px;min-width:0}
.journal-track{display:flex;position:relative;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;min-width:0;border-radius:6px;padding:2px 0 4px;align-items:flex-start}
.journal-track::-webkit-scrollbar{display:none}
.journal-track:focus-visible{outline:2px solid #66351f;outline-offset:3px}
.journal-carousel .life-tile{flex:0 0 calc((100% - 24px)/3);scroll-snap-align:start;min-width:0;border:0;border-radius:5px;color:#242424;text-decoration:none;background:transparent;overflow:visible}
.journal-preview{position:relative;display:block;overflow:hidden;border-radius:6px;min-width:0}
.journal-carousel .journal-preview{height:174px;background:#f2ece3}
.journal-carousel .journal-image{display:block;width:100%;height:174px;object-fit:cover;transition:transform .25s}
.life-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:14px/1.5 var(--sans,Arial,sans-serif);margin-top:8px;color:#44403c}
.journal-format{position:absolute;right:7px;bottom:7px;background:#fffdfaed;border:1px solid #ded7cf;border-radius:4px;padding:3px 7px;color:#242424;font:600 13px/1.4 var(--sans,Arial,sans-serif);pointer-events:none}
.journal-arrow{display:flex;align-items:center;justify-content:center;border:1px solid #d8cabd;border-radius:50%;background:#fffdfa;color:#66351f;min-width:36px;width:36px;height:44px;padding:0;margin-top:65px;font:400 30px/1 Georgia,serif;cursor:pointer}
.journal-arrow[hidden]{display:none}.journal-arrow:disabled{opacity:.32;cursor:default}
.journal-arrow:hover:not(:disabled){background:#f4eee6}
.journal-grid>.journal-card{color:#242424;text-decoration:none;transition:border-color .2s}
.journal-grid>.journal-card:hover{border-color:#66351f}.journal-grid>.journal-card:hover h2{color:#66351f}
.journal-card .journal-preview{width:100%}.journal-card .life-story-cover{min-height:220px}
.journal-entry .journal-photo-gallery{margin-bottom:24px;align-items:center}
.journal-photo-gallery .journal-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start}
.journal-photo-gallery .journal-slide figure{margin:0}
.journal-photo-gallery .journal-track{overflow-y:hidden;transition:height .24s ease}
.journal-photo-gallery .journal-slide .journal-image{width:auto;max-width:100%;height:auto;max-height:72vh;max-height:72dvh;object-fit:contain;margin:auto}
.journal-photo-gallery .journal-arrow{margin-top:0;align-self:center}
.journal-entry .journal-media-caption{font:15px/1.6 var(--sans,Arial,sans-serif);color:#44403c;margin:-10px 0 24px}
#journal-lightbox{box-sizing:border-box;position:fixed;inset:auto;left:8px;top:8px;width:min(1200px,calc(100vw - 16px));height:calc(100vh - 16px);height:calc(100dvh - 16px);max-width:none;max-height:none;margin:0;padding:12px;border:1px solid #d9cfc2;border-radius:8px;background:#fffdfa;overflow:hidden;color:#242424}
#journal-lightbox[open]{display:flex;flex-direction:column;gap:8px}
#journal-lightbox::backdrop{background:#161310c9}
.journal-lightbox-tools{display:flex;align-items:center;gap:8px;flex-shrink:0;font:15px/1.4 var(--sans,Arial,sans-serif)}
.journal-lightbox-tools button{min-height:44px;min-width:44px;padding:7px 11px;border:1px solid #d8cabd;border-radius:5px;background:#fffdfa;color:#66351f;font:inherit;cursor:pointer}
.journal-lightbox-tools [data-lightbox-close]{margin-left:auto;font-size:25px}
.journal-lightbox-tools button:disabled{opacity:.35}.journal-lightbox-tools button[hidden]{display:none}
.journal-lightbox-frame{position:relative;flex:1 1 0;min-width:0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f3eee7;border-radius:4px;overscroll-behavior:contain}
.journal-lightbox-frame img{position:absolute;inset:0;margin:auto;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
#journal-lightbox [data-lightbox-caption]{margin:0;font:14px/1.5 var(--sans,Arial,sans-serif);flex-shrink:0;max-height:15vh;overflow:auto}
#journal-lightbox button:focus-visible{outline:2px solid #66351f;outline-offset:2px}
@media(max-width:1100px){.journal-carousel .life-tile{flex-basis:calc((100% - 12px)/2)}}
@media(max-width:700px),(max-width:1200px) and (max-height:600px) and (pointer:coarse){.journal-carousel{display:block}.journal-carousel>.journal-arrow{display:none}.journal-carousel .life-tile{flex-basis:66%}.journal-carousel .journal-preview,.journal-carousel .journal-image{height:174px}}
@media(max-width:700px){.life-journal-home .section-heading h2{font-size:30px;line-height:1.4}.journal-title .discovery,.life-journal-home .section-heading .journal-title .discovery{margin-left:.04em;margin-right:.09em;padding:0 .28em}.journal-title .discovery>svg{left:-2%;top:-2%;width:104%;height:110%;stroke-width:1}.journal-title .discovery>.tiny-star,.life-journal-home .section-heading .journal-title .tiny-star{top:.14em;right:-.09em;width:9px;height:9px}.journal-page h1 .journal-title .phrase:last-child{white-space:normal}.journal-page h1 .journal-title .discovery{white-space:nowrap}.journal-photo-gallery{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}.journal-photo-gallery .journal-arrow{width:30px;min-width:30px}.journal-lightbox-tools{gap:4px;font-size:13px}.journal-lightbox-tools button{padding:6px}.journal-lightbox-tools [data-lightbox-count]{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.journal-track{scroll-behavior:auto}.journal-carousel .journal-image{transition:none}}

/* Only phones and portrait tablets: link below the title, left aligned. */
@media(max-width:700px),(max-width:1200px) and (orientation:portrait),(max-width:1200px) and (max-height:600px) and (pointer:coarse){
 .life-journal-home .section-heading{flex-direction:column;align-items:flex-start;gap:0;margin-bottom:4px}
 .life-journal-home .section-heading>.text-link{align-self:flex-start;margin:0;line-height:1.5;min-height:44px;padding:6px 0}
}
@media(prefers-reduced-motion:reduce){.journal-photo-gallery .journal-track{transition:none}}
