@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');
:root{--ink:#26343a;--muted:#718087;--paper:#f7f4ee;--card:#fff;--line:#e5dfd5;--accent:#a9684a}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 "DM Sans",sans-serif}
h1,h2,h3{font-family:"Playfair Display",serif;line-height:1.12}h1{font-size:clamp(48px,8vw,90px);margin:10px 0 18px}h2{font-size:38px;margin:6px 0 22px}h3{font-size:31px;margin:7px 0 12px}
.cover{min-height:58vh;display:grid;place-items:center;text-align:center;background:url("fuji.jpg") center center/cover no-repeat;padding:70px 20px}
.cover-inner{max-width:900px}.cover p{max-width:650px;margin:auto;color:#56656b;font-size:19px}.eyebrow{font-size:11px;letter-spacing:.2em;font-weight:700;color:var(--accent)}
.wrap{max-width:1080px;margin:auto;padding:65px 22px}.intro-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:35px;align-items:center;margin-bottom:75px}
#map{height:390px;border-radius:20px;overflow:hidden;border:1px solid var(--line)}
.timeline{position:relative;margin:25px 0 80px;padding-left:28px;border-left:2px solid #d8cec2}
.chapter{position:relative;margin:0 0 50px;background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 12px 35px #54483b0b}
.chapter:before{content:"";position:absolute;left:-37px;top:28px;width:14px;height:14px;border-radius:50%;background:var(--accent);border:4px solid var(--paper)}
.chapter-photo{width:100%;max-height:530px;object-fit:cover;display:block}.chapter-text{padding:30px 32px}.date{color:var(--accent);font-weight:700;text-transform:uppercase;font-size:12px;letter-spacing:.1em}.location{color:var(--muted);font-size:14px;margin-bottom:15px}.story{white-space:pre-wrap;color:#536067}
.gallery{display:grid;grid-template-columns:1fr;gap:24px;margin:20px 0 80px}.gallery img{width:100%;height:auto;max-height:none;object-fit:contain;cursor:zoom-in;border-radius:12px}
.comment-form,.login-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:25px;display:grid;gap:14px;box-shadow:0 10px 30px #54483b09}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
input,textarea,select{width:100%;padding:13px;border:1px solid #d8d1c7;border-radius:10px;background:#fff;font:inherit;color:var(--ink)}button{border:0;border-radius:10px;padding:13px 18px;font-weight:700;cursor:pointer}.primary{background:var(--accent);color:white}.ghost{background:#ffffffaa;color:var(--ink);margin-top:25px}.comments{display:grid;gap:12px;margin:18px 0 70px}.comment{background:#eee7de;border-radius:14px;padding:17px 20px}.comment strong{font-size:14px}.comment small{color:var(--muted);margin-left:8px}.comment p{white-space:pre-wrap;margin:5px 0}
.admin{margin-top:70px;padding-top:55px;border-top:1px solid var(--line)}footer{text-align:center;color:var(--muted);padding:30px}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#d8e3df,#eee1d2)}.login-card{width:min(440px,100%);padding:36px}.login-card h1{font-size:52px}.message{min-height:1.3em;color:var(--accent);font-size:14px}.muted{color:var(--muted)}.hidden{display:none!important}
@media(max-width:760px){.intro-grid{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr}.gallery img{height:190px}.row{grid-template-columns:1fr}.chapter-text{padding:22px}}


/* Larger Family Album photos */
.gallery figure {
    margin: 0 0 24px 0;
}

.gallery img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* FINAL FAMILY ALBUM SIZE */
.gallery {
    grid-template-columns: 1fr !important;
}

.gallery img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

/* Permanent one-column Family Album */
.gallery {
    grid-template-columns: 1fr !important;
}
/* Keep diary photographs neatly within the page */

.entry img,

.gallery img,

.photo img {

    display: block;

    width: auto;

    max-width: 100%;

    height: auto;

    max-height: 75vh;

    object-fit: contain;

}


