/*
Theme Name: 38th Alabama Static
Description: Native WordPress blocks styled to closely follow the supplied GWT279 reference, with the descendants navigation and no large image banner.
Version: 4.3.1
Requires at least: 6.3
Requires PHP: 7.4
Author: Prepared for Lance; visual reference by Genealogy Web Templates / Templates in Time
Text Domain: alabama38-static
*/
*,*::before,*::after{box-sizing:border-box}html{scroll-padding-top:24px}body{margin:0;background:#fff;color:#333;font-family:'Cormorant Upright',Georgia,serif;font-size:22px;line-height:1.45}.wp-site-blocks{padding:0}h1,h2,h3,h4{font-family:'Cormorant Upright',Georgia,serif;font-weight:400}a{color:#845529;text-decoration:none}a:hover{color:#c37d3f}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #2e6574;outline-offset:4px}.a38n-nav-wrap{background:linear-gradient(#845529,#c37d3f);color:#fff;margin-top:0!important;padding:0 15px;position:relative;z-index:20}.a38n-navigation{font:13px Arial,Helvetica,sans-serif;text-transform:uppercase;line-height:1.35}.a38n-navigation .wp-block-navigation__container{gap:0;justify-content:center;max-width:1260px}.a38n-navigation .wp-block-navigation-item__content{padding:12px 10px;display:block;color:#fff;min-height:42px}.a38n-navigation .wp-block-navigation-item__content:hover{color:#fff;background:#845529}.a38n-navigation .wp-block-navigation-submenu__toggle{color:inherit}.a38n-navigation .wp-block-navigation__submenu-container{background:#845529!important;color:#fff!important;min-width:235px;border:0;box-shadow:0 3px 7px #0005;text-transform:none;text-align:left}.a38n-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item{width:100%;border-bottom:1px solid #ffffff25}.a38n-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{width:100%;white-space:normal;padding:12px 16px;font-size:14px}.a38n-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover{background:#c37d3f}.a38n-navigation .wp-block-navigation__submenu-icon{min-height:42px;min-width:25px;color:inherit}.a38n-navigation .wp-block-navigation-item.has-child>.wp-block-navigation-item__content{padding-right:1px}.a38n-masthead{background:linear-gradient(#ebebeb,#fff,#ebebeb);padding:22px max(20px,calc((100vw - 1240px)/2));display:grid!important;grid-template-columns:160px minmax(0,1fr) 160px;align-items:center;gap:20px;text-align:center;max-width:none!important;margin:0!important}.a38n-masthead>div{margin:0!important;max-width:none!important}.a38n-title-copy h1{font-size:46px;color:#666;letter-spacing:-1px;line-height:1.08;margin:0}.a38n-title-copy p{font-size:20px;color:#666;margin:8px 0 0}.a38n-seal{display:grid;place-items:center;width:92px;height:92px;margin:auto!important;border:1px solid #c6a787;border-radius:50%;color:#845529;background:#fffbf48a}.a38n-seal p{font-size:30px;margin:0;font-family:'Cormorant Upright',Georgia,serif;line-height:1.1}.a38n-seal-right p{font-size:21px}.a38n-home-sections{max-width:1260px!important;width:100%;padding:35px 10px 45px;margin:auto!important}.a38n-texture-panel{width:70%;margin:0 auto 35px!important;padding:20px 30px 22px;background:#dfd9ed url(images/background.jpg);box-shadow:0 0 5px #0007;border-radius:10px;position:relative}.a38n-home-sections h2{text-align:center;font-size:34px;letter-spacing:1px;color:#c37d3f;margin:8px 0 18px;overflow:hidden;line-height:1.15}.a38n-home-sections h2::before,.a38n-home-sections h2::after{border-bottom:1px solid currentColor;content:"";display:inline-block;width:50%;height:.1em;position:relative;vertical-align:middle;margin-bottom:.15em}.a38n-home-sections h2::before{right:.2em;margin-left:-50%}.a38n-home-sections h2::after{left:.2em;margin-right:-50%}.a38n-texture-panel h2{color:#845529}.a38n-texture-panel>p{text-align:center;margin:10px 0 18px}.a38n-photo-strip{display:flex;gap:12px;overflow-x:auto;padding:8px 6px 14px;scroll-snap-type:x mandatory;scrollbar-color:#a57856 #ece5f1}.a38n-photo-strip .wp-block-image{flex:0 0 130px;width:130px;margin:0!important;scroll-snap-align:start}.a38n-photo-strip img{display:block;width:130px;height:130px;object-fit:cover;background:white;padding:5px;border-radius:5px;box-shadow:0 0 5px #0006}.a38n-photo-strip figcaption{font:12px/1.3 Arial,sans-serif;color:#645865;text-align:center;margin:8px 0 0}.a38n-welcome{padding:0 0 25px;border:0;margin:0 0 24px!important;text-align:left}.a38n-welcome h1{font-size:48px;color:#845529;letter-spacing:-1px;margin:10px 0;line-height:1.15}.a38n-welcome p{margin:12px 0}.a38n-feature-panel{margin-top:25px!important}.a38n-feature-columns{display:grid;grid-template-columns:1fr 1fr;gap:4%;align-items:center;margin:0!important}.a38n-feature-columns>div{margin:0!important;min-width:0}.a38n-feature-image{text-align:center}.a38n-feature-image figure{margin:12px auto!important;max-width:300px}.a38n-round-photo img{width:300px;height:300px;max-width:100%;object-fit:cover;border-radius:50%;border:1px solid #444;box-shadow:0 10px 15px -9px #0008}.a38n-round-photo figcaption{font-size:14px;text-align:center;line-height:1.3;color:#776e78}.a38n-feature-copy h3{font-size:29px;color:#777;text-align:left;line-height:1.15;margin:14px 0}.a38n-feature-copy p{margin:12px 0}.a38n-feature-section{padding:5px 0 30px;margin:0 0 25px!important}.a38n-feature-section .a38n-feature-columns{max-width:100%}.wp-block-button__link,.a38n-open{display:inline-block;background:#845529;color:white!important;font:16px 'Cormorant Upright',Georgia,serif;border-radius:0;padding:10px 28px;text-decoration:none;min-height:42px;letter-spacing:.5px;border:1px solid #845529}.wp-block-button__link:hover,.a38n-open:hover{background:#c37d3f;border-color:#c37d3f}.a38n-feature-copy .wp-block-buttons{justify-content:center;margin-top:20px}.a38n-research-row{padding:20px 0 35px;margin-bottom:35px!important;border-bottom:1px solid #d6a47c;align-items:start}.a38n-research-row h3{font:30px 'Poiret One','Cormorant Upright',Georgia,serif;color:#845529;text-align:center;margin:8px 0 15px}.a38n-statistics p{font-size:24px;line-height:1.8;text-align:center}.a38n-statistics strong{font-size:42px;color:#845529;font-weight:400;margin-right:10px}.a38n-section{border:0;border-top:1px solid #eee;background:none;padding:25px 0;margin:0!important;scroll-margin-top:25px;box-shadow:none}.a38n-section h2{margin:10px 0 18px}.a38n-section>p{margin:12px 0}.a38n-note{background:#f0ebf4;color:#666;padding:12px 18px;border-left:3px solid #d6a47c;font-size:18px}.a38n-record-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 25px;padding-left:24px}.a38n-record-links li{padding:3px;overflow-wrap:anywhere}.a38n-record-item{padding:10px 15px;border:1px solid #e1d5c9;border-radius:0;background:#fffcf8;margin:8px 0!important;scroll-margin-top:25px}.a38n-record-item summary{font-size:23px;color:#845529;cursor:pointer;min-height:36px}.a38n-record-item[open]{background:#fff}.a38n-record-item summary:focus-visible{outline:3px solid #2e6574;outline-offset:4px}.a38n-document{max-width:1260px!important;padding:30px 10px 65px;min-height:50vh}.a38n-document h1{font-size:48px;color:#845529}.a38n-document>.wp-block-post-content{overflow-wrap:anywhere}.a38n-document table{display:block;overflow-x:auto;max-width:100%}.a38n-document pre{white-space:pre-wrap;overflow-x:auto}.a38n-footer-links{max-width:1260px!important;padding:30px 10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;margin:0 auto!important}.a38n-footer-column{margin:0!important}.a38n-footer-links h3{font:30px 'Poiret One','Cormorant Upright',Georgia,serif;color:#845529;margin:8px 0 15px}.a38n-footer-links p{margin:10px 0}.a38n-footer{background:#404040;color:#e0e0e0;text-align:center;padding:28px 24px;margin-top:0!important;border:0}.a38n-footer p:first-child{font-size:23px}.a38n-footer p:last-child{font-size:14px;max-width:800px;margin:auto}.wp-block-search__input{min-height:46px;font:18px Arial,sans-serif;border:1px solid #c5b8a9}.wp-block-search__button{min-height:46px;background:#845529;color:white;border:0;padding:10px 22px;font:17px 'Cormorant Upright',Georgia,serif}.archive-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.archive-gallery figure{margin:0;padding:10px;background:#f1edf3}.archive-gallery img{width:100%;height:230px;object-fit:contain}.archive-gallery figcaption{font-size:16px;overflow-wrap:anywhere}.archive-links{columns:2}.archive-note{font-size:18px;background:#f0ebf4;padding:15px}.archive-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}img{max-width:100%;height:auto}
@media(min-width:600px){.a38n-navigation>.wp-block-navigation__responsive-container-open{display:none!important}.a38n-navigation>.wp-block-navigation__responsive-container:not(.is-menu-open){display:block!important}}
@media(max-width:1000px){.a38n-home-sections,.a38n-document{padding-left:20px;padding-right:20px}.a38n-texture-panel{width:85%}.a38n-masthead{grid-template-columns:100px minmax(0,1fr) 100px;gap:10px;padding:20px}.a38n-title-copy h1{font-size:38px}.a38n-round-photo img{width:240px;height:240px}.a38n-footer-links{padding:25px 20px;gap:25px}}
@media(max-width:760px){body{font-size:21px}.a38n-texture-panel{width:100%;padding:20px}.a38n-feature-columns{gap:24px}.a38n-masthead{grid-template-columns:70px minmax(0,1fr) 70px}.a38n-seal{width:62px;height:62px}.a38n-seal p{font-size:24px}.a38n-seal-right p{font-size:15px}.a38n-title-copy h1{font-size:32px}.a38n-title-copy p{font-size:18px}.a38n-home-sections h2{font-size:31px}.a38n-welcome h1{font-size:39px}.a38n-round-photo img{width:210px;height:210px}.a38n-feature-copy h3{font-size:26px}.archive-gallery,.archive-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){.a38n-nav-wrap{padding:7px 16px}.a38n-navigation .wp-block-navigation__responsive-container-open{min-height:44px;min-width:44px;color:#fff}.a38n-navigation .wp-block-navigation__responsive-container.is-menu-open{background:#845529!important;color:white!important;padding:28px}.a38n-navigation .is-menu-open .wp-block-navigation-item__content{font-size:16px;padding:12px 4px;min-height:44px}.a38n-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{box-shadow:none;min-width:0;border:0;border-left:1px solid #d6a47c;padding-left:16px}.a38n-masthead{grid-template-columns:1fr;gap:6px;padding:23px 16px}.a38n-seal{display:none}.a38n-title-copy h1{font-size:35px}.a38n-home-sections{padding:24px 15px 35px}.a38n-texture-panel{padding:16px;border-radius:8px}.a38n-photo-strip .wp-block-image{flex-basis:115px;width:115px}.a38n-photo-strip img{width:115px;height:115px}.a38n-welcome h1{font-size:36px}.a38n-feature-columns{grid-template-columns:1fr;gap:18px}.a38n-feature-image figure{max-width:250px}.a38n-round-photo img{width:250px;height:250px}.a38n-feature-copy h3{text-align:center}.a38n-feature-copy p{font-size:21px}.a38n-record-links,.archive-gallery,.archive-cards{grid-template-columns:1fr}.archive-links{columns:1}.a38n-footer-links{grid-template-columns:1fr;gap:20px;padding:20px 15px}.a38n-footer-column{text-align:center}.wp-block-search__inside-wrapper{flex-wrap:wrap;gap:8px}.wp-block-search__button{margin-left:0}.a38n-document{padding:25px 15px 45px}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* Fixed, portrait-led homepage. */
.a38n-static-home{padding:36px 28px!important;max-width:1100px!important;margin:auto!important}.a38n-static-home>h1{text-align:center;font-size:clamp(30px,4vw,46px)}.a38n-static-home>p{text-align:center;margin-bottom:32px}.a38n-static-intro{gap:44px!important;align-items:center!important;background:#eeedf0;padding:28px;border:1px solid #d2c9c6}.a38n-soldier-portrait{max-width:310px;margin:0 auto!important}.a38n-soldier-portrait img{width:100%;height:auto;display:block;box-sizing:border-box;border:8px solid white;box-shadow:0 2px 9px #58443866}.a38n-soldier-portrait figcaption{text-align:center;font-size:13px;line-height:1.6}.a38n-static-home h2{font-size:32px}.a38n-static-home li{margin-bottom:10px}html{scroll-behavior:auto}@media(max-width:781px){.a38n-static-home{padding:24px 16px!important}.a38n-static-intro{padding:20px;gap:24px!important}.a38n-static-intro>.wp-block-column{flex-basis:100%!important}}

/* Owner-supplied photograph behind the centered page, matching the reference treatment. */
body{background:#b69a74 url('images/reunion-background-sharpened.png') center top / cover fixed no-repeat}.wp-site-blocks{max-width:1240px;margin:auto;background:rgba(255,255,255,.94);box-shadow:0 0 35px #30221180;min-height:100vh}.a38n-masthead{padding:22px 20px}.a38n-static-intro{background:#f5f0e8e8}.a38n-carousel{padding:22px;margin:28px auto 36px;max-width:940px;background:rgba(238,232,220,.92);border:1px solid #b39c7c}.a38n-carousel-track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;position:relative;scrollbar-width:thin;padding:8px 4px 16px}.a38n-carousel-slide{flex:0 0 65%;margin:0;scroll-snap-align:start;text-align:center;min-width:0}.a38n-carousel-slide img{display:block;width:100%;height:300px;object-fit:contain;background:#e1d5c3;border:7px solid white;box-shadow:0 2px 8px #49372744}.a38n-carousel-slide figcaption{font-size:17px;line-height:1.35;padding:14px 8px}.a38n-carousel-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.a38n-carousel-controls button{background:#845529;color:white;border:0;padding:11px 16px;cursor:pointer;font:15px Arial,sans-serif;min-height:44px}.a38n-carousel-controls button:hover{background:#633d1b}.a38n-carousel-status{font-size:15px;text-align:center;margin:6px 0 0;min-height:20px}@media(max-width:781px){body{background-attachment:scroll}.a38n-carousel{padding:14px}.a38n-carousel-slide{flex-basis:100%}.a38n-carousel-slide img{height:300px}}@media(prefers-reduced-motion:reduce){.a38n-carousel-track{scroll-behavior:auto}}

/* Deterministic slide movement; independent of scroll offsets or snap support. */
.a38n-carousel-viewport{overflow:hidden;width:100%}.a38n-carousel-track{overflow:visible;gap:0;padding:8px 0 16px;scroll-snap-type:none;transition:transform .65s ease;will-change:transform;display:flex}.a38n-carousel-slide{flex:0 0 100%;width:100%;padding:0 8px;box-sizing:border-box}.a38n-carousel-slide img{height:340px}@media(prefers-reduced-motion:reduce){.a38n-carousel-track{transition:none}}@media(max-width:600px){.a38n-carousel-slide img{height:290px}}

/* Historical flag emblems, fitted inside the original circular seals. */
.a38n-masthead{grid-template-columns:150px minmax(0,1fr) 150px!important;gap:20px!important}.a38n-masthead .a38n-seal{display:grid!important;place-items:center;width:126px;height:126px;border:1px solid #ba916c;border-radius:50%;background:#faf6ef;overflow:hidden;isolation:isolate;box-shadow:0 1px 5px #68452a18}.a38n-flag-image{width:110px;height:104px;margin:0!important;display:flex;align-items:center;justify-content:center;mix-blend-mode:multiply}.a38n-flag-image img{width:100%;height:100%;object-fit:contain;border:0;border-radius:0;box-shadow:none}.a38n-title-copy h1{font-size:clamp(28px,3.6vw,46px)}@media(max-width:781px){.a38n-masthead{grid-template-columns:90px minmax(0,1fr) 90px!important;gap:10px!important;padding:20px 12px}.a38n-masthead .a38n-seal{width:82px;height:82px}.a38n-flag-image{width:72px;height:67px}.a38n-title-copy p{font-size:16px}}@media(max-width:480px){.a38n-masthead{grid-template-columns:62px minmax(0,1fr) 62px!important;gap:6px!important;padding:18px 8px}.a38n-masthead .a38n-seal{width:58px;height:58px}.a38n-flag-image{width:50px;height:47px}.a38n-title-copy h1{font-size:26px}.a38n-title-copy p{font-size:14px}}

.a38n-page-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;padding:0}.a38n-page-directory li{margin:0}.a38n-page-directory a{display:flex;align-items:center;justify-content:space-between;gap:15px;height:100%;padding:18px 20px;background:#faf5eb;border:1px solid #d8c4ad;color:#714723}.a38n-page-directory a:hover{background:#eee1cd}.a38n-document{background:#fffdf8e8}@media(max-width:650px){.a38n-page-directory{grid-template-columns:1fr}}

/* Centered header without flag emblems. */
.a38n-masthead{display:flex!important;justify-content:center!important;grid-template-columns:none!important;text-align:center}.a38n-masthead .a38n-seal{display:none!important}.a38n-title-copy{width:100%}
