/*
Theme Name: Astrid Gloria Heritage v2.3
Author: Restoration Studio
Description: Classic yellow-checkered Astrid Gloria notebook website, with editable content and image settings.
Version: 2.3.0
Requires PHP: 7.4
Text Domain: astrid-gloria
*/
:root{--ag-brown:#3e291e;--ag-olive:#b5bd73;--ag-orange:#f9b53b;--ag-paper:#fff;--ag-width:980px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:14px/1.6 Arial,Helvetica,sans-serif;color:#181818;background-color:var(--ag-orange);background-image:repeating-linear-gradient(0deg,transparent 0 5px,rgba(255,255,255,.78) 5px 6px,transparent 6px 12px),repeating-linear-gradient(90deg,transparent 0 5px,rgba(255,255,255,.78) 5px 6px,transparent 6px 12px)}a{color:#a12e2e}img{max-width:100%;height:auto}.site-wrap{max-width:var(--ag-width);margin:auto;padding:0 12px}.masthead{height:200px;display:flex;justify-content:center;align-items:flex-end;text-align:center;padding:12px 0 10px}.masthead-inner{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.header-portrait{position:absolute;left:6%;bottom:0;max-height:180px;max-width:25%;object-fit:contain}.brand h1{font:700 clamp(38px,6vw,66px)/1 Georgia,serif;color:#2e4c27;text-shadow:2px 2px 0 #dfd49b,3px 3px 2px #302118;margin:0 0 5px}.brand strong{display:block;font-size:24px;color:#234320}.brand span{display:block;font-size:17px;font-weight:bold}.book{display:grid;grid-template-columns:40% 60%;min-height:760px;background:var(--ag-brown);border-radius:12px;box-shadow:0 4px 14px #4b2d1b88;position:relative}.left-page{padding:33px 35px 30px 25px;color:white}.nav-list,.nav-list ul{padding:0;margin:0;list-style:none}.nav-list>li>a{display:block;padding:10px 13px;margin-bottom:6px;background:var(--ag-olive);color:#16180d;text-decoration:none;font-weight:600;border-radius:0 0 19px 0}.nav-list>li>a:hover,.nav-list>.current-menu-item>a{background:#dce3a3}.nav-list ul{margin:0 0 8px 18px}.nav-list ul a{color:white;text-decoration:none;font-size:12px;display:block;padding:2px 0}.side-promo{margin-top:44px}.side-promo img{display:block;width:100%;max-height:260px;object-fit:contain}.side-photo{margin-top:23px;border-top:1px solid #160e09;padding-top:20px}.side-photo img{display:block;width:100%;max-height:210px;object-fit:cover}.side-photo figcaption{font-size:11px;color:#e5d5c9;margin-top:6px}.right-page{position:relative;background-color:var(--ag-paper);background-image:linear-gradient(#8bb1c326 1px,transparent 1px),linear-gradient(90deg,#8bb1c326 1px,transparent 1px);background-size:18px 18px;border-radius:0 12px 12px 0;padding:27px 33px 60px 42px;box-shadow:inset 3px 0 8px #aaa}.right-page:before{content:'';position:absolute;left:-17px;top:5px;bottom:5px;width:28px;background:radial-gradient(ellipse at 50% 50%,#20130f 0 3px,#c39968 4px 6px,transparent 7px);background-size:28px 29px;pointer-events:none}.right-page section{padding:10px 0 22px;border-bottom:1px solid #547f59;display:flow-root}.right-page h2,.right-page h3{font:italic 22px/1.3 Georgia,serif;color:#bb6449;font-weight:normal;margin:10px 0}.right-page h3{font-size:19px}.right-page p{margin:10px 0}.right-page ul{padding-left:24px}.quote{font:italic 21px Georgia,serif;color:#69619a}.feature{float:left;width:39%;max-height:310px;object-fit:contain;margin:5px 17px 12px 0}.show-block{min-height:220px}.show-block img{background:#f4f4f4}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.photo-grid img{width:100%;aspect-ratio:1;object-fit:cover}.photo-grid figure{margin:0}.photo-grid figcaption{font-size:11px}.side-image-note{font-size:11px;color:#5b483d}.footer{background:var(--ag-brown);margin:15px 0 28px;border-radius:7px;padding:16px 20px;color:#c9b9ad;display:flex;justify-content:space-between;gap:10px;font-size:12px}.footer a{color:#c9b9ad}.press-item{padding:13px 0;border-bottom:1px solid #557e58;display:flow-root}.press-item img{width:37%;float:left;margin-right:16px}.site-note{font-size:11px;color:#57473f}@media(max-width:700px){.masthead{height:145px}.header-portrait{max-height:110px;left:0}.brand{margin-left:22%}.brand h1{font-size:37px}.brand strong{font-size:17px}.brand span{font-size:12px}.book{display:block}.left-page{padding:22px}.side-promo{margin-top:18px;max-width:230px}.side-photo{max-width:230px}.right-page{padding:26px 24px;border-radius:0 0 12px 12px}.right-page:before{display:none}.feature{width:44%}.footer{flex-wrap:wrap}}@media(max-width:400px){.feature{float:none;width:100%;max-height:360px}.photo-grid{grid-template-columns:repeat(2,1fr)}}

/* v2.1: real photographic images, robust aspect ratios */
.right-page section>img{display:block;max-width:100%;max-height:350px;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 9px #38271d35;margin:12px auto 18px}.feature{height:auto;max-height:none}.feature img{width:100%;max-height:340px;object-fit:cover;display:block}.photo-grid img{aspect-ratio:4/3;object-fit:cover;box-shadow:0 2px 8px #39261930}.side-promo img,.side-photo img{border:3px solid #654633;object-fit:cover;aspect-ratio:4/3}.header-portrait{border-radius:4px;max-width:24%;object-fit:cover;object-position:center 25%}.show-copy{line-height:1.75}

/* v2.2: replace former black video area with a responsive real-photo panel */
.video-photo-replacement{background:#523629;padding:16px 0 0;border-top:1px solid #8d7259}.video-photo-replacement img{width:100%;height:230px;object-fit:cover;display:block;background:#d3b684}.video-photo-replacement figcaption{padding:8px 0;color:#e7d9c6}.videos-photos{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}.videos-photos img{aspect-ratio:4/3}@media(max-width:560px){.videos-photos{grid-template-columns:1fr}}

/* v2.3: prevent the header portrait from covering the site title.
   Dedicated columns reserve space for each item at all screen widths. */
.masthead-inner{display:grid;grid-template-columns:minmax(0,29%) minmax(0,71%);align-items:center;justify-content:stretch;gap:0}
.header-portrait{position:static!important;left:auto!important;bottom:auto!important;grid-column:1;grid-row:1;width:100%;max-width:100%!important;max-height:175px;object-fit:contain;object-position:left bottom;justify-self:start;align-self:end}
.brand{grid-column:2;grid-row:1;margin-left:0!important;min-width:0;padding:0 10px 0 18px;text-align:center}
.brand h1{font-size:clamp(30px,5.2vw,64px);overflow-wrap:normal;word-break:normal}
@media(max-width:700px){.masthead-inner{grid-template-columns:minmax(0,30%) minmax(0,70%)}.header-portrait{max-height:118px}.brand{padding:0 5px 0 9px}.brand h1{font-size:clamp(23px,5.6vw,38px)}.brand strong{font-size:clamp(12px,2.5vw,17px)}.brand span{font-size:clamp(10px,1.8vw,12px)}}
@media(max-width:390px){.masthead-inner{grid-template-columns:25% 75%}.brand h1{font-size:25px;letter-spacing:-1px}.brand{padding-left:5px}}
