main .container{flex-direction:column;}
#posts{width:100%; padding:0 20px; margin:0; font-size:14px; display:flex; text-align:left; flex-direction:column;}
#posts img{max-width:100%;}
#posts .center{text-align:center;}
#posts h2{width:100%; font-size:22px; line-height:1.4; margin:0 0 20px 0; font-weight: 400; display:block;}
#posts h3{width:100%; font-size:20px; line-height:1.4; margin:0 0 20px 0; font-weight: 400; display:block;}
#posts a{max-width:100%; color:rgb(212, 156, 89);}
#posts .center a{max-width:100%; display:inline-block;}
#posts p{width:100%; font-size:14px; line-height:1.5; margin:0 0 20px 0; display:block;}
/* #posts p{width:100%; font-size:16px; line-height:1.5; margin:0 0 20px 0; display:block;} */
#posts p span{text-indent:20px; display:block;}
#posts span{text-indent:20px; display:block;}
#posts b{display: contents;}
#posts p.line{width:100%; height:1px; background:#000;}
#posts p.img-center{text-align:center;}
#posts p.img-center a{width:350px; display:inline-block;}
#posts p.hashtag a{padding-right:10px;}
#posts p.catagory a{color:#000; text-decoration:underline; display:block;}
#posts p.catagory a:hover{color:rgb(212, 156, 89);}
#posts p em{text-indent:10px; font-style:normal;}
#posts p.onimages{min-height:200px; background:url(../images/noimages.jpg) no-repeat center; opacity:.5;}
/* #posts i{color:rgb(80, 43, 123);} */
#posts a:hover, #posts a:visited{color:rgb(212, 156, 89);}
#posts ul{margin:0 0 20px 0; padding-left:0; list-style:none;}
#posts ul li{padding-left:25px; position:relative;}
#posts ul li::before{content:""; width:5px; height:5px; border-radius:50%; background:#000; display:block; position:absolute; top:7px; left:10px;}
#posts ul li > ul{list-style-type: circle; padding-left:25px;}
#posts ul li > ul li{padding-left:0;}
#posts ul li > ul li::before{display:none;}
#posts ol{margin:0 0 20px 0;}
#posts table{width:100%; font-size:14px;}
#posts table.masonry {}
#posts .grid{width:100%; display:block; position:relative;}
#posts .grid-col {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 33.33333333333333% 33.33333333333333% 33.33333333333333%;
  grid-auto-flow: row;
  row-gap:7px;
  column-gap:5px;
}
#posts .grid-col img{width:100%;}
#posts .grid-col .item-a {
  grid-column: 1;
  grid-row: 1 / 3;
  position:relative;
}
#posts .grid-col .item-b {
  grid-column: 1;
  grid-row: 3 / 3;
  position:relative;
}
#posts .grid-col .item-c {
  grid-column: 2;
  grid-row: 1 / 3;
  position:relative;
}
#posts .grid-col .item-d {
  grid-column: 2;
  grid-row: 2 / 3;
  position:relative;
}
/* #posts .grid-container #item img
{
  width: 100%;
  display:block;
} */
#posts .grid-container #item{
  width: 100%;
  height: 100%;
  position: relative;
  display:block;
}
#posts .grid-container #item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ทำให้รูปภาพเต็มพื้นที่โดยการ Crop ส่วนที่เกินออก */
  display:block;
}

#posts table td a {
  width: 100%; /* กว้างเต็มพื้นที่ <td> */
  height: 300px; /* ใช้วิธี padding-top เพื่อกำหนดความสูงตามสัดส่วน (ในที่นี้คือ 3:2 หรือ 66.67% ของความกว้าง) */
  position: relative;
  display:block;
}
#posts table td a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ทำให้รูปภาพเต็มพื้นที่โดยการ Crop ส่วนที่เกินออก */
  display:block;
}
#posts table tr:has(td + td + td) a{height:200px;}
#posts table tr:has(td + td + td + td) a{height:150px;}
#posts table tr:has(td + td + td + td + td) a{height:115px;}
#posts table tr:has(td + td + td + td + td + td) a{height:95px;}
#posts a.linkred{width:100%; color:#CB2026; text-align:center; display:inline-block;}
#posts a.c-red{color:#CB2026;}
#posts p.c-purple{color:rgb(80, 43, 123);}
#posts p.our-social a{padding:5px 7px; margin-right:5px; background:rgb(212, 156, 89); color:#FFF;}

iframe{width:100%; height:380px;}

.right-side{ flex-direction:column;}

a.btn-fillter{display:flex; justify-content:center; align-items:center; line-height:1;  outline:none; margin-top:4px; height:50px; font-family: "Open Sans", sans-serif; font-size:14px; color:#FFF; background:#D49C59; border:0; cursor:pointer; margin-bottom:50px; border-radius:8px;}
a.btn-fillter:hover{color:#000 !important;}
a.btn-fillter:visited{color:#FFF;}

.gallery{width:100%;margin:0 0 20px 0; position:relative; display:block;}
.gallery .gallery-next{right:15px; top:calc(50% + 20px); background-image:none !important;}
.gallery .gallery-prev{left:15px; top:calc(50% + 20px); background-image:none !important;}
.gallery .gallery-next i, .gallery .gallery-prev i{width:24px; height:40px; font-size:2.5em; color:#000; z-index:99; display:block;  position:absolute;}

.share{width:100%; margin-top:50px; padding:20px 0; border-top:1px solid rgba(0, 0, 0, .2); border-bottom:1px solid rgba(0, 0, 0, .2); display:block;}

.recent{display:flex; flex-direction:column;}
.recent .topic{display:flex; font-size:17px; letter-spacing: 0.1em; font-weight:400; padding-top:18px; margin-bottom:24px; position:relative;}
.recent .topic::before{content:""; width:30px; height:5px; background:#000; position:absolute; top:0; left:0;}
.recent ul{width:100%; padding:0; margin:0; display:flex; flex-direction:column;}
.recent li{width:100%; text-align:left; display:flex; flex-direction:column;}
.recent li .pic, .recent span{width:100%; display:flex; flex-direction:column;}
.recent li .pic img{width:100%;}
.recent li h2{width:100%; display:flex;}
.recent li a{width:100%; display:flex;}
.recent li span{padding:24px 0;}
.recent li h2{font-size:14px; line-height:1.4; margin:0 0 18px 0; font-weight: 400;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent li .avatar{display:flex; margin-bottom:12px;}
.recent li .avatar em{width:32px; border-radius:50%; overflow:hidden; display:flex;}
.recent li .avatar em img{width:100%;}
.recent li .avatar p{font-size:12px; line-height:1.4; padding:0 0 0 12px; display:flex; justify-self:center; align-self:center;}

footer{margin-top:60px;}

@media (max-width: 974px) {
  .right-side .about{justify-self:start; align-self:start;}
}
@media (max-width: 698px) {
  #posts li span{height:auto; padding-bottom:50px; margin-bottom:20px;}
  #posts li span{border-bottom:1px solid rgba(0, 0, 0, .2);}
}
@media (max-width: 414px) {
  #posts p.img-center a{width:100%;}
}