@font-face{font-family:Prompt;src:url(assets/prompt-400-latin.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Prompt;src:url(assets/prompt-400-thai.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:Prompt;src:url(assets/prompt-700-latin.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:Prompt;src:url(assets/prompt-700-thai.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}

#app:has(> main > .banpho-detail-theme) > :is(.slide-top,.br-top){display:none}
#app:has(> main > .banpho-detail-theme) > .header-section{height:auto;padding-block:clamp(10px,1.5vw,18px);background:#185f65}
#app:has(> main > .banpho-detail-theme) .header-logo{width:clamp(48px,6vw,79px);height:auto}
#app:has(> main > .banpho-detail-theme) .header-title-th{font-size:clamp(1em,2.4vw,2em);line-height:1.32}
#app:has(> main > .banpho-detail-theme) .header-title-en{margin-top:0;font-size:clamp(.72em,1.3vw,1em)}
#app:has(> main > .banpho-detail-theme) .header-box-contact{background:transparent}
#app:has(> main > .banpho-detail-theme) > .box-menu{height:auto;margin-top:0}
#app:has(> main > .banpho-detail-theme) > .box-menu > .nav-strip{margin-top:0}
#app:has(> main > .banpho-detail-theme) > .vistion-top{height:auto;margin:0;padding:8px 15px;background:#eff8f8}
#app:has(> main > .banpho-detail-theme) .search-bar-container{
  margin:auto;width:min(100%,1120px);min-height:44px;padding:0;gap:8px;background:transparent;box-shadow:none;
}
#app:has(> main > .banpho-detail-theme) .search-bar-container :is(.vision,.search-box-img){display:none}
#app:has(> main > .banpho-detail-theme) .search-bar-container .search-button{min-width:0;box-shadow:none}
#app:has(> main > .banpho-detail-theme) .search-box-1{margin-inline-start:auto}
#app:has(> main > .banpho-detail-theme) .search-box{min-height:40px;margin:0;box-shadow:none}
#app:has(> main > .banpho-detail-theme) .search-input{min-width:0}
#app:has(> main > .banpho-detail-theme) > main{padding-block:0!important}

@media(max-width:440px){
  #app:has(> main > .banpho-detail-theme) > .header-section{min-height:0;padding:10px 12px}
  #app:has(> main > .banpho-detail-theme) .header-container{display:grid;gap:8px;justify-content:stretch}
  #app:has(> main > .banpho-detail-theme) .header-text-left{width:100%;min-width:0}
  #app:has(> main > .banpho-detail-theme) .heard-title-box{min-width:0}
  #app:has(> main > .banpho-detail-theme) .header-box-contact{flex-wrap:wrap;gap:4px 6px}
  #app:has(> main > .banpho-detail-theme) .box-tel{width:auto;white-space:nowrap}
  #app:has(> main > .banpho-detail-theme) .header-text-right{
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 8px;
    min-width:0;width:100%;margin:0;
  }
  #app:has(> main > .banpho-detail-theme) .header-box-login{grid-column:1;grid-row:1;justify-content:start;flex-wrap:wrap}
  #app:has(> main > .banpho-detail-theme) .disability-box{grid-column:2;grid-row:1;justify-self:end;margin:0;gap:4px}
  #app:has(> main > .banpho-detail-theme) .header-box-flag{grid-column:1;grid-row:2;justify-self:start;max-width:100%;flex-wrap:wrap}
  #app:has(> main > .banpho-detail-theme) .box-Language{grid-column:2;grid-row:2;justify-self:end;margin:0}
  #app:has(> main > .banpho-detail-theme) .font-box{display:flex;flex-wrap:nowrap;align-items:center;width:auto;padding:0 4px}
  #app:has(> main > .banpho-detail-theme) .font-box>span{
    display:inline-grid;place-items:center;min-width:26px;min-height:32px;font-size:.85em;cursor:pointer;
  }
}

.banpho-detail-theme{
  --detail-ink:#16333e;--detail-navy:#123a50;--detail-teal:#185f65;--detail-deep:#113f4b;
  --detail-wash:#eef7f7;--detail-line:#c8dfe0;background:var(--detail-wash);color:var(--detail-ink);line-height:1.65;
}
.banpho-detail-theme,.banpho-detail-theme :where(*){font-family:Prompt,Tahoma,sans-serif}
.banpho-detail-theme a{color:var(--detail-teal);text-underline-offset:3px}
.banpho-detail-theme :is(a,button):focus-visible{outline:3px solid #a34711;outline-offset:3px}
.banpho-detail-shell{width:min(1120px,calc(100% - 56px));margin-inline:auto}
.banpho-detail-landscape{
  position:relative;color:#fff;
  background:linear-gradient(90deg,#103f4b 0%,#0c4a53d9 48%,#0c4e5970 100%),url(assets/canal.webp) 50% 43% / cover;
}
.banpho-detail-landscape::after{
  content:"";position:absolute;inset:auto 0 0;height:12px;
  background:radial-gradient(115% 112% at 48% 137%,#a2dae0 69%,#67abb8 70% 76%,transparent 77%) 0 100% / 55% 100% repeat-x;
}
.banpho-detail-landscape .banpho-detail-shell{min-height:145px;padding-block:24px 32px;display:grid;align-content:center}
.banpho-detail-section{font-size:clamp(1.55em,3.6vw,2.6em);font-weight:700;line-height:1.25;text-shadow:0 2px 3px #042b39}
.banpho-detail-caption{color:#e0f2f4;margin-top:4px}
.banpho-detail-page{padding-block:6px 34px}
.banpho-detail-crumbs ol{
  display:flex;flex-wrap:wrap;gap:3px 9px;list-style:none;margin:0;padding:6px 0;
  font-size:.86em;line-height:1.45;color:#385663;
}
.banpho-detail-crumbs li{display:inline-flex;align-items:center;gap:8px;min-width:0;min-height:38px;overflow-wrap:anywhere}
.banpho-detail-crumbs li+li::before{content:"›";color:#5b7e83;flex:none}
.banpho-detail-crumbs a{display:inline-flex;align-items:center;min-height:38px}
.banpho-detail-article{
  background:#fff;border:1px solid var(--detail-line);border-top:4px solid #287882;border-radius:14px;
  box-shadow:0 6px 20px #163f5010;padding:clamp(20px,4vw,52px);
}
.banpho-detail-reading{max-width:800px;margin-inline:auto;min-width:0}
.banpho-detail-article h1{
  margin:0;color:var(--detail-navy);font-size:clamp(1.7em,4vw,3.1em);font-weight:700;line-height:1.24;overflow-wrap:anywhere;
}
.banpho-detail-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px;color:#3b626d;font-size:.87em}
.banpho-detail-photo{margin:22px 0 0}
.banpho-detail-photo img{display:block;width:100%;max-height:540px;object-fit:contain;border-radius:10px;background:#eff7f7}
.banpho-detail-content{margin-top:20px;color:#244855;overflow-wrap:anywhere;overflow-x:auto}
.banpho-detail-content :is(img,iframe,video,embed){max-width:100%!important}
.banpho-detail-content img{height:auto}
.banpho-detail-attachments{display:grid;gap:10px;margin-top:24px;padding-top:13px;border-top:1px solid var(--detail-line)}
.banpho-detail-attachments h2{margin:0;color:var(--detail-navy);font-size:1.22em;font-weight:700}
.banpho-detail-file{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:65px;
  padding:9px 14px;border:1px solid #b4d2d4;border-radius:10px;background:#eaf5f5;text-decoration:none;
  font-weight:700;line-height:1.45;
}
.banpho-detail-file:hover{background:#dfefef;text-decoration:underline}
.banpho-detail-file-type{
  display:grid;place-items:center;min-width:39px;min-height:38px;padding:3px 5px;
  background:var(--detail-deep);color:#fff;border-radius:6px;font-size:.73em;
}
.banpho-detail-file-name{overflow-wrap:anywhere}
.banpho-detail-file-action{font-size:.86em;white-space:nowrap}
.banpho-detail-pdf{margin-top:8px}
.banpho-detail-pdf embed{display:block;width:100%;height:min(1200px,85vh);border:1px solid var(--detail-line);border-radius:8px}
.banpho-detail-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr));gap:10px}
.banpho-detail-gallery a{display:block;min-width:0}
.banpho-detail-gallery img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;border-radius:8px}
.banpho-detail-back{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin-top:8px;font-size:.92em}
.banpho-detail-lightbox{margin:auto;max-width:min(92vw,1060px);max-height:94vh;padding:8px;border:0;border-radius:11px;background:#092d3a}
.banpho-detail-lightbox::backdrop{background:#04161ad9}
.banpho-detail-lightbox>div{position:relative}
.banpho-detail-lightbox img{display:block;max-width:100%;max-height:calc(94vh - 16px);height:auto;object-fit:contain}
.banpho-detail-lightbox button{
  position:absolute;top:6px;right:6px;display:grid;place-items:center;width:44px;height:44px;padding:0;
  border:0;border-radius:50%;background:#0b3344;color:#fff;font-size:1.6em;line-height:1;
}
html:has(.banpho-detail-lightbox[open]){overflow:hidden}
body.accessibility-mode .banpho-detail-theme :is(a,button):focus-visible{outline-color:#fff}
body.accessibility-mode .banpho-detail-landscape::after{display:none}
@media(max-width:570px){
  .banpho-detail-shell{width:calc(100% - 30px)}
  .banpho-detail-landscape .banpho-detail-shell{min-height:107px;padding-block:17px 25px}
  .banpho-detail-page{padding-bottom:22px}
  .banpho-detail-crumbs ol{gap:0 6px}
  .banpho-detail-file{grid-template-columns:auto minmax(0,1fr);gap:4px 9px;padding:8px 9px}
  .banpho-detail-file-action{grid-column:2}
}
