.posts-page-local{
  overflow-x:hidden;
}

/* ===============================
LAYOUT
=============================== */
.posts-page-local .rposts-shell{
  max-width:1320px;
  width:100%;
  margin:0 auto;
}

.posts-page-local .rposts-row{
  --bs-gutter-x:16px;
  --bs-gutter-y:16px;
}

.posts-page-local .rposts-left,
.posts-page-local .rposts-center,
.posts-page-local .rposts-right,
.posts-page-local .rposts-left-inner,
.posts-page-local .rposts-center-inner,
.posts-page-local .rposts-right-inner{
  min-width:0;
}

.posts-page-local .rposts-left-inner,
.posts-page-local .rposts-center-inner,
.posts-page-local .rposts-right-inner{
  display:grid;
  gap:16px;
}

/* ===============================
SIDE / MENU
=============================== */
.posts-page-local .rposts-side-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow-soft);
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

.posts-page-local .rposts-side-title{
  font-size:1.02rem;
  font-weight:800;
  margin-bottom:12px;
}

.posts-page-local .rposts-side-list{
  display:grid;
  gap:10px;
}

.posts-page-local .rposts-side-list a:not(.rposts-trending-item){
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  min-width:0;
}

.posts-page-local .rposts-menu{
  display:grid;
  gap:6px;
}

.posts-page-local .rposts-profile-link,
.posts-page-local .rposts-menu-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:16px;
  text-decoration:none;
  color:var(--text);
  transition:all .15s ease;
}

.posts-page-local .rposts-profile-link:hover,
.posts-page-local .rposts-menu-item:hover,
.posts-page-local .rposts-menu-item.active{
  background:var(--panel2);
}

.posts-page-local .rposts-profile-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 38px;
}

.posts-page-local .rposts-profile-avatar-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--panel2);
  color:var(--muted);
  border:1px solid var(--line);
}

.posts-page-local .rposts-profile-name{
  font-weight:800;
  min-width:0;
}

.posts-page-local .rposts-menu-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--panel2);
  color:var(--brand3);
  flex:0 0 36px;
}

/* ===============================
COMPOSER
=============================== */
.posts-page-local .rposts-composer{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  box-shadow:var(--shadow-soft);
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
}

.posts-page-local .rposts-composer-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  min-width:0;
}

.posts-page-local .rposts-composer-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 42px;
}

.posts-page-local .rposts-composer-avatar-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--panel2);
  color:var(--muted);
  border:1px solid var(--line);
}

.posts-page-local .rposts-composer-input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  border-radius:999px;
  background:var(--panel2);
  border:1px solid var(--line);
  padding:0 16px;
  display:flex;
  align-items:center;
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  width:100%;
  text-align:left;
  box-sizing:border-box;
}

.posts-page-local button.rposts-composer-input{
  appearance:none;
}

.posts-page-local .rposts-composer-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}

.posts-page-local .rposts-composer-action{
  flex:1 1 0;
  min-width:120px;
  max-width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  border-radius:14px;
  background:var(--panel2);
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  box-sizing:border-box;
}

.posts-page-local .rposts-composer-action i{
  color:var(--brand3);
}

/* ===============================
STORIES
=============================== */
.posts-page-local .rposts-stories-wrap{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px 0;
  box-shadow:var(--shadow-soft);
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
}

.posts-page-local .rposts-stories-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  padding:0 14px;
}

.posts-page-local .rposts-stories-inner{
  position:relative;
  padding:0 14px;
  overflow:hidden;
}

.posts-page-local .rposts-stories-strip{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 0 8px;
  margin:0;
  scroll-behavior:smooth;
  scrollbar-width:none;
}

.posts-page-local .rposts-stories-strip::-webkit-scrollbar{
  display:none;
}

.posts-page-local .rposts-story-card{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  color:#fff;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(0,0,0,.16);
  flex:0 0 calc((100% - 48px) / 5);
  width:calc((100% - 48px) / 5);
  min-width:calc((100% - 48px) / 5);
  height:220px;
}

.posts-page-local .rposts-story-bg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.posts-page-local .rposts-story-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(15,23,42,.08) 0%, rgba(15,23,42,.2) 35%, rgba(15,23,42,.84) 100%);
}

.posts-page-local .rposts-story-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:3;
  padding:5px 9px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  background:rgba(249,115,22,.92);
  color:#fff;
}

.posts-page-local .rposts-story-author{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  width:38px;
  height:38px;
  border-radius:50%;
  overflow:hidden;
  border:3px solid rgba(255,255,255,.9);
}

.posts-page-local .rposts-story-author img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.posts-page-local .rposts-story-meta{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:2;
  min-width:0;
}

.posts-page-local .rposts-story-title{
  font-weight:800;
  line-height:1.35;
  margin-bottom:2px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.posts-page-local .rposts-story-sub{
  font-size:.78rem;
  opacity:.92;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.posts-page-local .rposts-story-sponsored{
  border:2px solid rgba(249,115,22,.55);
}

.posts-page-local .rposts-story-placeholder{
  background:var(--rl-global-orange-btn);
}

.posts-page-local .rposts-story-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.72);
  color:#fff;
  z-index:6;
}

.posts-page-local .rposts-story-nav--left{
  left:4px;
}

.posts-page-local .rposts-story-nav--right{
  right:4px;
}

/* ===============================
FEED / CONTENT SAFETY
=============================== */
.posts-page-local .rposts-section-copy,
.posts-page-local .rposts-section-title,
.posts-page-local .rposts-section-sub,
.posts-page-local .rposts-meta,
.posts-page-local .rposts-trending-title,
.posts-page-local .rposts-trending-meta{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.posts-page-local .rposts-feed{
  width:100%;
  margin-left:0;
  margin-right:0;
  min-width:0 !important;
  max-width:100% !important;
}

.posts-page-local .rposts-feed > [class*="col-"]{
  width:100%;
  max-width:100%;
  flex:0 0 100%;
  min-width:0 !important;
}
/* removed centralized post-card css block */

/* removed centralized post-card css block */

/* removed centralized post-card css block */


.posts-page-local img,
.posts-page-local video,
.posts-page-local iframe,
.posts-page-local canvas,
.posts-page-local svg{
  max-width:100% !important;
  height:auto;
}
/* removed centralized post-card css block */

/* removed centralized post-card css block */

/* removed centralized post-card css block */

/* removed centralized post-card css block */


/* ===============================
RIGHT SIDE / TRENDING
=============================== */
.posts-page-local .rposts-ad-box{
  border:1px dashed var(--line);
  border-radius:18px;
  padding:16px;
  background:var(--panel2);
}

.posts-page-local .rposts-trending-list{
  display:grid !important;
  gap:12px !important;
  padding:0 !important;
  margin:0 !important;
}

.posts-page-local .rposts-trending-item{
  display:grid !important;
  grid-template-columns:40px minmax(0,1fr) !important;
  align-items:start !important;
  justify-content:start !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  text-decoration:none !important;
  text-align:left !important;
  color:var(--text);
}

.posts-page-local .rposts-trending-avatar{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  max-width:40px !important;
  border-radius:999px !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  margin:0 !important;
  justify-self:start !important;
  align-self:start !important;
}

.posts-page-local .rposts-trending-copy{
  min-width:0 !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
  justify-self:start !important;
}

.posts-page-local .rposts-trending-title,
.posts-page-local .rposts-trending-meta{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
}

.posts-page-local .rposts-trending-title{
  font-weight:700;
  line-height:1.35;
}

.posts-page-local .rposts-trending-meta{
  margin-top:3px !important;
  font-size:.83rem;
  color:var(--muted);
  line-height:1.35;
}

.posts-page-local .rposts-trending-item:hover .rposts-trending-title{
  color:#b45309;
}

/* ===============================
DESKTOP LAYOUT
=============================== */
@media (min-width: 992px){
  .posts-page-local .rposts-row{
    display:flex;
    flex-wrap:nowrap;
    align-items:flex-start;
  }

  .posts-page-local .rposts-left{
    flex:0 0 25%;
    width:25%;
    max-width:25%;
    display:block;
  }

  .posts-page-local .rposts-center{
    flex:0 0 50%;
    width:50%;
    max-width:50%;
    min-width:0;
    display:block;
  }

  .posts-page-local .rposts-right{
    flex:0 0 25%;
    width:25%;
    max-width:25%;
    display:block;
  }

  .posts-page-local .rposts-center-inner{
    width:100%;
    max-width:100%;
    min-width:0;
  }
}

/* ===============================
TABLET / MOBILE
=============================== */
@media (max-width: 991.98px){
  .posts-page-local .rposts-left,
  .posts-page-local .rposts-right{
    display:none !important;
  }

  .posts-page-local .rposts-center{
    flex:0 0 100%;
    max-width:100%;
  }

  .posts-page-local .rposts-shell{
    padding-left:10px;
    padding-right:10px;
  }

  .posts-page-local .rposts-row{
    --bs-gutter-x:0px;
  }
}

@media (max-width: 767.98px){
  .posts-page-local .rposts-stories-wrap{
    padding:12px 0;
  }

  .posts-page-local .rposts-stories-head{
    padding:0 10px;
    margin-bottom:10px;
  }

  .posts-page-local .rposts-stories-inner{
    padding:0 10px;
  }

  .posts-page-local .rposts-stories-strip{
    gap:8px;
    padding:2px 0 6px;
  }

  .posts-page-local .rposts-story-card{
    flex:0 0 calc((100vw - 20px - 20px - 16px) / 3.5);
    width:calc((100vw - 20px - 20px - 16px) / 3.5);
    min-width:calc((100vw - 20px - 20px - 16px) / 3.5);
    height:182px;
    border-radius:14px;
  }

  .posts-page-local .rposts-story-nav{
    display:none !important;
  }

  .posts-page-local .rposts-composer-action{
    min-width:unset;
    flex:1 1 calc(33.333% - 8px);
    font-size:.82rem;
  }

  .posts-page-local .rposts-trending-item{
    grid-template-columns:36px minmax(0,1fr) !important;
    gap:9px !important;
  }

  .posts-page-local .rposts-trending-avatar{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    max-width:36px !important;
  }
}

/* ===============================
INDEPENDENT COLUMN SCROLL
=============================== */
@media (min-width: 992px){
  .posts-page-local .rposts-left-inner,
  .posts-page-local .rposts-center-inner,
  .posts-page-local .rposts-right-inner{
    max-height:calc(100vh - 92px);
    overflow:auto;
    padding-right:6px;
    scrollbar-width:thin;
    scrollbar-color:rgba(138,98,69,.38) transparent;
    overscroll-behavior:contain;
    scroll-behavior:smooth;
  }

  .posts-page-local .rposts-left-inner::-webkit-scrollbar,
  .posts-page-local .rposts-center-inner::-webkit-scrollbar,
  .posts-page-local .rposts-right-inner::-webkit-scrollbar{
    width:10px;
  }

  .posts-page-local .rposts-left-inner::-webkit-scrollbar-track,
  .posts-page-local .rposts-center-inner::-webkit-scrollbar-track,
  .posts-page-local .rposts-right-inner::-webkit-scrollbar-track{
    background:transparent;
    border-radius:999px;
  }

  .posts-page-local .rposts-left-inner::-webkit-scrollbar-thumb,
  .posts-page-local .rposts-center-inner::-webkit-scrollbar-thumb,
  .posts-page-local .rposts-right-inner::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg, rgba(251,146,60,.26), rgba(245,158,11,.22));
    border:2px solid transparent;
    background-clip:padding-box;
    border-radius:999px;
    min-height:48px;
  }

  .posts-page-local .rposts-left-inner:hover::-webkit-scrollbar-thumb,
  .posts-page-local .rposts-center-inner:hover::-webkit-scrollbar-thumb,
  .posts-page-local .rposts-right-inner:hover::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg, rgba(251,146,60,.40), rgba(234,88,12,.30));
    border:2px solid transparent;
    background-clip:padding-box;
  }

  html[data-theme="dark-orange"] .posts-page-local .rposts-left-inner,
  html[data-theme="dark-orange"] .posts-page-local .rposts-center-inner,
  html[data-theme="dark-orange"] .posts-page-local .rposts-right-inner{
    scrollbar-color:rgba(215,169,133,.34) transparent;
  }

  html[data-theme="dark-orange"] .posts-page-local .rposts-left-inner::-webkit-scrollbar-thumb,
  html[data-theme="dark-orange"] .posts-page-local .rposts-center-inner::-webkit-scrollbar-thumb,
  html[data-theme="dark-orange"] .posts-page-local .rposts-right-inner::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg, rgba(255,179,107,.26), rgba(251,146,60,.22));
    border:2px solid transparent;
    background-clip:padding-box;
  }

  html[data-theme="dark-orange"] .posts-page-local .rposts-left-inner:hover::-webkit-scrollbar-thumb,
  html[data-theme="dark-orange"] .posts-page-local .rposts-center-inner:hover::-webkit-scrollbar-thumb,
  html[data-theme="dark-orange"] .posts-page-local .rposts-right-inner:hover::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg, rgba(255,179,107,.40), rgba(251,146,60,.32));
    border:2px solid transparent;
    background-clip:padding-box;
  }

  body.posts-page{
    overflow:hidden;
  }
}

@media (max-width: 991.98px){
  .posts-page-local .rposts-left-inner,
  .posts-page-local .rposts-center-inner,
  .posts-page-local .rposts-right-inner{
    max-height:none;
    overflow:visible;
    padding-right:0;
  }
}


/* ===== moved from app.css: posts/feed remnants ===== */
  .posts-page-local .fb-left,
  .posts-page-local .fb-right{
    display:none;
  }
}
@media (max-width: 767.98px){
  .posts-page-local .stories-strip-wrap-inner{
    padding:0;
  }
  .posts-page-local .story-nav{
    display:none !important;
  }
  .posts-page-local .story-card{
    flex-basis:116px;
    height:198px;
    border-radius:16px;
  }
  .posts-page-local .posts-top-action{
  .posts-page-local .stories-strip-wrap > .d-flex{
    padding:0 10px !important;
  }

  .posts-page-local .stories-strip-wrap-inner{
    padding:0 10px !important;
  }

  .posts-page-local .stories-strip{
    gap:8px !important;
  }

  .posts-page-local .story-card{
    flex:0 0 calc((100vw - 20px - 24px) / 3.5) !important;
    width:calc((100vw - 20px - 24px) / 3.5) !important;
    min-width:calc((100vw - 20px - 24px) / 3.5) !important;
    height:182px !important;
    border-radius:14px !important;
  }

  .posts-page-local .story-card-author{
    width:30px !important;
    height:30px !important;
    top:8px !important;
    left:8px !important;
  }

  .posts-page-local .story-card-badge{
    top:8px !important;
    left:8px !important;
    font-size:.68rem !important;
    padding:4px 8px !important;
  }

  .posts-page-local .story-card-meta{
    left:8px !important;
    right:8px !important;
    bottom:8px !important;
  }

  .posts-page-local .story-card-title{
    font-size:.82rem !important;
    line-height:1.28 !important;
  }

  .posts-page-local .story-card-sub{
    font-size:.72rem !important;
  }
}

/* 4) จอเล็กมากยังคุมให้ไม่อึดอัด */
@media (max-width: 420px){
  .posts-page-local .stories-strip-wrap > .d-flex{
    padding:0 8px !important;
  }

  .posts-page-local .stories-strip-wrap-inner{
    padding:0 8px !important;
  }

  .posts-page-local .stories-strip{

/* ===== moved from app.css: posts/feed remnants ===== */
  .posts-page-local .fb-left,
  .posts-page-local .fb-right{
    display:none;
  }
}
@media (max-width: 767.98px){
  .posts-page-local .stories-strip-wrap-inner{
    padding:0;
  }
  .posts-page-local .story-nav{
    display:none !important;
  }
  .posts-page-local .story-card{
    flex-basis:116px;
    height:198px;
    border-radius:16px;
  }
  .posts-page-local .posts-top-action{
  .posts-page-local .stories-strip-wrap > .d-flex{
    padding:0 10px !important;
  }

  .posts-page-local .stories-strip-wrap-inner{
    padding:0 10px !important;
  }

  .posts-page-local .stories-strip{
    gap:8px !important;
  }

  .posts-page-local .story-card{
    flex:0 0 calc((100vw - 20px - 24px) / 3.5) !important;
    width:calc((100vw - 20px - 24px) / 3.5) !important;
    min-width:calc((100vw - 20px - 24px) / 3.5) !important;
    height:182px !important;
    border-radius:14px !important;
  }

  .posts-page-local .story-card-author{
    width:30px !important;
    height:30px !important;
    top:8px !important;
    left:8px !important;
  }

  .posts-page-local .story-card-badge{
    top:8px !important;
    left:8px !important;
    font-size:.68rem !important;
    padding:4px 8px !important;
  }

  .posts-page-local .story-card-meta{
    left:8px !important;
    right:8px !important;
    bottom:8px !important;
  }

  .posts-page-local .story-card-title{
    font-size:.82rem !important;
    line-height:1.28 !important;
  }

  .posts-page-local .story-card-sub{
    font-size:.72rem !important;
  }
}

/* 4) จอเล็กมากยังคุมให้ไม่อึดอัด */
@media (max-width: 420px){
  .posts-page-local .stories-strip-wrap > .d-flex{
    padding:0 8px !important;
  }

  .posts-page-local .stories-strip-wrap-inner{
    padding:0 8px !important;
  }

  .posts-page-local .stories-strip{


/* ===== moved from home-page.css: posts/feed blocks ===== */



/* ===== moved from app.css: home page ===== */


.mobile-top-avatar{
  width:24px !important;
  height:24px !important;
}



.fb-profile-avatar{
  width:38px !important;
  height:38px !important;
}



.posts-top-composer-avatar{
  width:42px !important;
  height:42px !important;
}



  .posts-page-local .stories-strip-wrap > .d-flex,
  .posts-page-local .stories-strip-wrap-inner{
    padding-left:8px !important;
    padding-right:8px !important;
  }


.posts-page-local .fb-shell{
  max-width:1380px;
  margin:0 auto;
}


.posts-page-local .fb-left,
.posts-page-local .fb-center,
.posts-page-local .fb-right{
  min-width:0;
}


.posts-page-local .fb-left-inner,
.posts-page-local .fb-center-inner,
.posts-page-local .fb-right-inner{
  display:grid;
  gap:16px;
}


.posts-page-local .fb-side-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow-soft);
}


.posts-page-local .fb-side-title{
  font-size:1.02rem;
  font-weight:800;
  margin-bottom:12px;
}


.posts-page-local .fb-side-list{
  display:grid;
  gap:10px;
}


.posts-page-local .fb-side-list a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
}


.posts-page-local .fb-side-menu{
  display:grid;
  gap:6px;
}


.posts-page-local .fb-profile-link,
.posts-page-local .fb-menu-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:16px;
  text-decoration:none;
  color:var(--text);
}


.posts-page-local .fb-profile-link:hover,
.posts-page-local .fb-menu-item:hover,
.posts-page-local .fb-menu-item.active{
  background:var(--panel2);
}


.posts-page-local .fb-profile-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 38px;
}


.posts-page-local .fb-profile-avatar-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--panel2);
  color:var(--muted);
  border:1px solid var(--line);
}


.posts-page-local .fb-profile-name{
  font-weight:800;
}


.posts-page-local .fb-menu-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--panel2);
  color:var(--brand3);
  flex:0 0 36px;
}


.posts-page-local .posts-top-composer,
.posts-page-local .stories-strip-wrap{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  box-shadow:var(--shadow-soft);
}


.posts-page-local .posts-top-composer-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}


.posts-page-local .posts-top-composer-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 42px;
}


.posts-page-local .posts-top-composer-avatar-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--panel2);
  color:var(--muted);
  border:1px solid var(--line);
}


.posts-page-local .posts-top-composer-input{
  flex:1 1 auto;
  min-height:44px;
  border-radius:999px;
  background:var(--panel2);
  border:1px solid var(--line);
  padding:0 16px;
  display:flex;
  align-items:center;
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  width:100%;
  text-align:left;
}


.posts-page-local button.posts-top-composer-input{
  appearance:none;
}


.posts-page-local .posts-top-composer-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}


.posts-page-local .posts-top-action{
  flex:1 1 0;
  min-width:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  border-radius:14px;
  background:var(--panel2);
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--text);
  font-weight:700;
}


.posts-page-local .posts-top-action i{
  color:var(--brand3);
}


.posts-page-local .stories-strip-wrap-inner{
  position:relative;
  padding:0 42px;
  overflow:hidden;
}


.posts-page-local .stories-strip{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 0 8px;
  scroll-behavior:smooth;
  scrollbar-width:none;
}


.posts-page-local .stories-strip::-webkit-scrollbar{
  display:none;
}


.posts-page-local .fb-ad-box{
  border:1px dashed var(--line);
  border-radius:18px;
  padding:16px;
  background:var(--panel2);
}


.mobile-top-avatar{
  width:24px;
  height:24px;
  border-radius:50%;
  object-fit:cover;
  display:block;
}


    .mobile-top-avatar{
      width:24px;
      height:24px;
      border-radius:50%;
      object-fit:cover;
      display:block;
    }



/* POSTS PAGE LAYOUT START */
.fb-shell{
  max-width:1380px;
  margin:0 auto;
}


.fb-left,
.fb-right,
.fb-center{
  min-width:0;
}


.fb-left-inner,
.fb-right-inner,
.fb-center-inner{
  max-height:calc(100vh - 92px);
  overflow:auto;
  padding-right:4px;
}


.fb-left-inner::-webkit-scrollbar,
.fb-right-inner::-webkit-scrollbar,
.fb-center-inner::-webkit-scrollbar{
  width:8px;
}


.fb-left-inner::-webkit-scrollbar-thumb,
.fb-right-inner::-webkit-scrollbar-thumb,
.fb-center-inner::-webkit-scrollbar-thumb{
  background:rgba(120,120,120,.28);
  border-radius:999px;
}


.fb-side-card{
  background:var(--panel);
  
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow-soft);
  margin-bottom:16px;
}


.fb-side-title{
  font-size:1.02rem;
  font-weight:800;
  margin-bottom:12px;
}


.fb-side-list{
  display:grid;
  gap:10px;
}


.fb-side-list a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
}


.fb-ad-box{
  border:1px dashed var(--line);
  border-radius:18px;
  padding:16px;
  background:var(--panel2);
}



/* facebook-like left menu */
.fb-side-menu{
  display:grid;
  gap:6px;
}


.fb-profile-link,
.fb-menu-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:16px;
  text-decoration:none;
  color:var(--text);
  transition:all .15s ease;
}


.fb-profile-link:hover,
.fb-menu-item:hover{
  background:var(--panel2);
  color:var(--text);
}


.fb-menu-item.active{
  background:var(--panel2);
  font-weight:800;
}


.fb-profile-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  flex:0 0 38px;
}


.fb-profile-avatar-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--panel2);
  color:var(--muted);
  
}


.fb-profile-name{
  font-weight:800;
  line-height:1.2;
}


.fb-menu-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--panel2);
  color:var(--brand3);
  flex:0 0 36px;
}


.fb-menu-icon i{
  font-size:1rem;
}


}

/* 1) โพสต์ล่าสุดให้เต็มความกว้างคอลัมน์กลาง */
.posts-page-local .fb-center{
  width:100%;
  min-width:0;
}



.posts-page-local .fb-center-inner{
  width:100%;
  min-width:0;
}


/* removed centralized post-card css block */


/* 2) story desktop/tablet คงเดิม */
.posts-page-local .stories-strip{
  gap:12px;
}



.posts-page-local .fb-shell{
  max-width:1320px;
  margin-left:auto;
  margin-right:auto;
}



.posts-page-local .fb-center,
.posts-page-local .fb-center-inner,
.posts-page-local #postsFeed{
  min-width:0;
  max-width:100%;
}
