/* PHIMAI HEALTH | ผู้พัฒนาระบบ : นายวิษณุ เสาะสาย | ตำแหน่ง : เจ้าพนักงานธุรการ */
/* One scoped layout: the caption overlays only the bottom of the portrait. */
.hero-header.hero-unified[data-president-layout]{position:relative;isolation:isolate;min-height:max(650px,calc(var(--president-desktop-size,380px) + 100px));overflow:hidden}
[data-president-layout]>.hero-president-panel{position:absolute;z-index:6;right:max(20px,calc((100% - 1320px)/2));bottom:0;top:auto;width:min(40%,520px);margin:0;padding:0;pointer-events:none}
.hero-header.hero-unified[data-president-layout] .hero-president-panel>.hero-president{position:relative!important;inset:auto!important;display:block;width:100%!important;height:var(--president-desktop-size,380px)!important;max-height:none;margin:0;object-fit:contain;object-position:center bottom;filter:drop-shadow(-8px 6px 30px #001f2844)}
[data-president-layout] .hero-president-info{position:absolute;z-index:2;left:0;right:0;bottom:12px;width:100%;min-width:0;padding:0 8px!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;text-align:center;pointer-events:auto}
[data-president-layout] .hero-president-info::before,[data-president-layout] .hero-president-info::after{content:none!important}
.hero-header.hero-unified[data-president-layout] .hero-president-info :is(h2,p,a,span){color:#fff!important;overflow-wrap:anywhere;text-shadow:0 2px 5px #000,0 0 12px #0009;line-height:1.45}
.hero-header.hero-unified[data-president-layout] .hero-president-info h2{font-size:clamp(1.05rem,1.6vw,1.4rem);font-weight:700;margin:0 0 3px!important}
[data-president-layout] .hero-president-info p{margin:0 0 3px!important}
[data-president-layout] .president-english{font-size:clamp(.8rem,1.1vw,.95rem);font-weight:600}
[data-president-layout] .president-position{font-size:.9rem}
[data-president-layout] .president-contact{display:flex;flex-direction:column;align-items:center;gap:0;border:0!important;padding:0!important;background:none!important}
[data-president-layout] .president-contact a{max-width:100%;display:block;min-height:0;padding:3px 4px;font-size:.85rem;text-decoration:none}
[data-president-layout] .president-contact a:hover{text-decoration:underline}
[data-president-layout] .president-contact a:focus-visible{outline:2px solid #f4dea5;outline-offset:2px}
@media(max-width:991.98px){.hero-header.hero-unified[data-president-layout]{display:flex!important;flex-direction:column!important;min-height:auto;padding-bottom:0!important;gap:24px}[data-president-layout]>.hero-circuit__content{width:100%;padding-bottom:0!important}[data-president-layout]>.hero-president-panel{position:relative;inset:auto;width:calc(100% - 32px);max-width:500px;flex:none;margin:0 auto}.hero-header.hero-unified[data-president-layout] .hero-president-panel>.hero-president{height:max(360px,var(--president-mobile-size,280px))!important}}
@media(max-width:575.98px){[data-president-layout]>.hero-president-panel{width:100%;max-width:420px}[data-president-layout] .hero-president-info{bottom:10px}.hero-header.hero-unified[data-president-layout] .hero-president-info h2{font-size:1.05rem}[data-president-layout] .president-position{font-size:.85rem}}
/* ขยายพื้นที่รูปบน Desktop */
@media (min-width: 992px) {
    [data-president-layout] > .hero-president-panel {
        width: min(43%, 600px);
    }
}

/* ขยายพื้นที่รูปบน Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    [data-president-layout] > .hero-president-panel {
        width: 100%;
        max-width: 560px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    [data-president-layout] > .hero-president-panel {
        width: 100%;
        max-width: 460px;
    }
}