:root{--blue:#6362b2;--blue-dark:#0b9cc1;--blue-soft:#efeff7;--orange:#0b9cc1;--sky-dark:#0b9cc1;--bg:#f4f7f6;--panel:#ffffff;--text:#080808;--muted:#030303;--line:#dfe3e8;--line-soft:#edf0f2;--hover-bg:#f5fcf8;--header-bg:#ffffff;--utility-bg:#f7f7f7;--utility-text:#777777;--section-bg:#f7fbf8;--table-head-bg:#f3f5f7;--table-head-text:#333333;--input-bg:#ffffff;--input-text:#050505;--button-text:#ffffff;--heading:#155b35;--danger:#c9362b;--success:#008f40;--menu-start:#173b57;--menu-end:#173b57;--menu-text:#ffffff;--admin-menu-text:#ffffff;--logo-1:#df7967;--logo-2:#5b8fb9;--logo-3:#73d99f;--logo-outline-width:0px;--logo-outline-color:#fcfcfc;--logo-tagline:#888888;--logo-font-family:Arial, sans-serif;--logo-font-weight:900;--logo-letter-spacing:-1.8px;--footer-logo-font-size:18px;--footer-bg:#ffffff;--footer-text:#666666;--footer-subtext:#999999;--guide-start:#f7f3e8;--guide-end:#f7f3e8;--guide-border:#dfe3e8;--guide-border-width:1px;--guide-label-bg:#146b6d;--guide-label-text:#ffffff;--guide-title:#3b9fc1;--guide-text:#5b8fb9;--intro-start:#eafaf1;--intro-end:#ffffff;--intro-kicker:#8f4034;--intro-title:#8f4034;--intro-text:#68758c;--panel-head-bg:#fafcfb;--panel-title:#155b35;--content-width:1160px;--panel-radius:5px;--panel-gap:12px;--sidebar-width:242px;--brand-height:88px;--logo-font-size:31px;--logo-word-gap:3px;--nav-height:32px;--nav-font-size:14px;--nav-item-width:102px;--panel-head-height:42px;--list-font-size:12px;--intro-height:118px;--home-list-rows:6;--home-row-height:25px;--hero-gallery-height:220px;--hero-gallery-gap:5px;--hero-gallery-radius:6px;--custom-logo-width:214px;--custom-logo-height:71px;--switch-offset-x:0px;--switch-offset-y:0px;--switch-button-font:10px;--switch-button-pad-x:6px;--switch-button-pad-y:2px;--switch-button-gap:11px}
body{font-size:14px}
.board-panels{grid-template-columns:repeat(2,minmax(0,1fr))}
.latest-list a{height:25px}
.home-gallery-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.board-gallery{grid-template-columns:repeat(5,minmax(0,1fr))}

@media(max-width:700px){.board-panels{grid-template-columns:1fr}.home-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.board-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.home-gallery-grid,.board-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Per-title responsive header spacing, served as external CSS for CSP. */
:root{--header-logo-menu-gap:0px;--header-logo-menu-gap-mobile:0px;--header-nav-gap:9px;--header-nav-gap-mobile:0px;}

@media(max-width:700px){.site-header .gnb-inner{height:45px;min-height:45px;box-sizing:border-box;}}

/* Gallery image display is bounded by the saved resolution; originals are never modified. */
:root{--sg-album-thumb-width:215px;}
.gallery-attachment-tiles {grid-template-columns:repeat(5,minmax(0,1fr)) !important;}
/* Inside a gallery post, all preview tiles use the same landscape frame. */
.gallery-attachment-tiles .gallery-photo-card > a.gallery-item {display:block;width:100%;aspect-ratio:16/9 !important;height:auto !important;overflow:hidden;}
.gallery-attachment-tiles .gallery-photo-card > a.gallery-item img {display:block;width:100% !important;height:100% !important;max-height:none !important;aspect-ratio:auto !important;object-fit:cover !important;object-position:center center !important;}
.gallery-lightbox {width:min(2065px,calc(100% - 12px)) !important;}
.gallery-lightbox-stage img {width:auto !important;height:auto !important;max-width:100% !important;max-height:min(84vh,1080px) !important;object-fit:contain !important;margin-inline:auto;}
@media(max-width:600px){.gallery-attachment-tiles{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media(max-width:350px){.gallery-attachment-tiles{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
/* v141: all board photo/video grids are two columns on phones. */
@media(max-width:700px){.post-card > .gallery.gallery-attachment-tiles.sg-sized-photo-gallery.sg-gallery-album,.post-card > .gallery.gallery-attachment-tiles.sg-sized-photo-gallery.sg-mobile-album,.gallery-attachment-tiles,.existing-media-grid,.board-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
