@charset "utf-8";
body, p, ul, li, ol, form, h1, h2, h3, h4, h5, h6, figure, figcaption ,ul, menu, dir { padding: 0; margin: 0;}
body { font-family: Tahoma, Geneva, sans-serif; font-size: 14px;}
a img { border: 0; }
a { text-decoration: none; }
ul, ol, li { list-style: none; list-style-type: none; }
.left { display: inline; float: left; }
.right { display: inline; float: right; }
h2, h3, h4, h5, h6 { font-family:CS ChatThaiUI; font-weight: normal; font-size: 24px; }
a ,a:hover { text-decoration: none;}
.wrapper { width: 100%; position: relative; padding: 0; margin: 0 auto; display: inline-block;}
/*.row { width: 97%; margin: 1.5%; position: relative; display: inline-block;}*/
.max-img { width: 100%; border: 0 none; outline: 0 none; padding: 0; margin: 0;}
.clear { clear: both;}
#content_header h1 { font-size: 2.4em; line-height: .9em; padding: 5px 5px 0; color: #333; font-family: psl_displayregular, Tahoma, sans-serif;}
.share-group { width:100%; float:left; display: inline-block; margin-bottom: 16px;}
.share-group span { font-family: Tahoma; font-size: 18px; position: relative; margin: 0 0 0px; color: #000; text-align: center; padding: 4px 0; display: inline-block; float:left; background: #FFF; }
.share-group a { text-align: center; font-weight: bold; font-size: 15px; }
.share-group .fb-share { width:62%; display: inline; float: left; margin:0 3% 0 0;}
.share-group .fb-share a { display: block; padding: 4px 0; background: #3b5998; color: #FFF; text-align: left; height: 30px; -webkit-border-radius: 4px; border-radius: 4px; line-height: 30px; }
.share-group .fb-share a img { float: left; display: inline-block; margin: 5px 5px 0 18px; width: 23px; height: auto; line-height: 40px; }
.share-group .fb-share a:before { content: "Share"; font-size: 18px; font-weight: normal; line-height: 30px }
.share-group .fb-share a span.boxCount { float: right; display: block; width: 50%; line-height: 23px; text-align: center; margin-right: 4px; }
.share-group .tw-share { width:35%; display: inline; float: right; margin:0; }
.share-group .tw-share a { display: block; padding: 4px 0; background: #00b6dd; color: #FFF; text-align: left; height: 30px; -webkit-border-radius: 4px; border-radius: 4px; line-height: 30px; }
.share-group .tw-share a img { float: left; display: inline-block; margin: 5px 5px 0 13px; width: 23px; height: auto; line-height: 40px; }
.share-group .tw-share a:before { content: "Retweet"; font-size: 18px; font-weight: normal }
.share-group .fb-share a:hover:before { content: "แชร์ไปยังเฟซบุ๊ก"; font-size: 15px; display: block; margin: 0 auto; text-align: left; margin-left: 5px; font-weight: bold; height: 0px; line-height: 30px }
.share-group .tw-share a:hover:before { content: "รีทวีตสู่ทวิตเตอร์"; font-size: 15px; display: block; margin: 0 auto; text-align: left; margin-left: 8px; font-weight: bold; height: 0px; line-height: 30px }
.share-group .fb-share a:hover img, .share-group .tw-share a:hover img { display: none;}
.more-gallery ,.content { width:100%; position:relative; padding:0; margin:0; display:block;overflow: hidden;}
.content { box-sizing: border-box; padding:0; margin: 0 !important;}
.content .bnew-gallery { margin: 0; }
p.gallery-poster { color: #999; padding:8px 0;}
.viewer { width: 100% !important; padding:8px 0 0;}
.gallery-poster { text-indent: 0;}
.content img { margin: 0 !important; }

.btn { display: block; width: 100%; text-align: center; padding: 8px 0; background:#22b573 !important; color: #fff; border-radius: 4px;}
#list-small { width: 100%; float: left; padding: 0; margin: 0; }
#list-small li { display: inline-block; float: left; width: 20%; margin-right: 8px; }
.swiper-container { width: 100% !important; margin: 0 auto !important; padding: 0;}
.swiper-wrapper { width: 100%; padding:0 0 10px !important; margin: 0; position: relative;}
.swiper-slide img { width: 100% !important;}
.gallery-top { width: 100%; padding:0;}
.btn { display: block; width: 100%; text-align: center; font-weight: 400;}
.btnsuscess { background: #22b573; color: #fff; font-size: 1.2rem; display: block; margin: 0; float: left;}

.swiper-button-next ,.swiper-button-prev { right:-10px; width: 48px; height: 48px; transform: scale(0.6); top: 45%;}
.swiper-button-prev { left: -10px;}

#box-container { margin:0; padding:0; width: 100%; z-index: 1;}
#box-container li { display: inline-block; padding: 0; margin: 0 1% 8px; width: 48%; float: left;}
#box-container li div {  overflow: hidden; }
.width-1-1 ,.list-item { position: relative; width: 100%; margin: 8px 0; padding: 0; box-sizing: border-box;}
.banners-wrap ,.border-color { width: 100%; border-top: 8px solid #ddd; border-bottom: 8px solid #ddd; padding: 8px 0;}
.sub-title ,.sub-title-oth { font-size: 1.55rem; padding: 8px 0px !important;}
.full-content ,.full-ct-tags { width: 100%; float: left; padding: 0; margin: 0; position: relative;}
.full-content a { display: block; }
.full-content a h3 { font-size: 1.2rem; display: block; padding:0px 0 8px; color: #000; line-height: 1.5;}
.full-content a p { color:#666; font-size: 1.2rem; line-height: 1.65; text-indent: 0;}
.full-ct-tags span { width: 100%; }
.full-ct-tags p { float: left; text-indent: 0; margin-right: 8px; padding: 4px 8px; font-size: 1rem;}
.full-ct-tags span a { display: block; display: inline-block; margin-right: 8px; background: #eee; color: #666 !important; padding:4px 8px; border-radius: 4px;margin-bottom: 8px; font-size: 1rem;}
.p-t-2x { padding-top: 16px; }
.p-b-2x { padding-bottom: 16px; }
.full-ct-tags span a:hover { background:#22b573; color: #fff !important;}
.sub-title-oth { padding: 16px 0 8px; margin: 0 1.5% !important;}
.list-item { margin: 0;}
.list-item li { width: 100%; position: relative; display: inline-block;}
.list-item li a {display: block; float: left; position: relative; width: 100%;}
.txt-title { position: absolute; bottom: 4px; left: 0; box-sizing: border-box; width: 100%; padding: 8px; background-color: rgba(0,0,0,.65);}
.txt-title h3{font-size: 16px;color: #fff;}
.relate_img_gal .txt-title h3 { color: #fff; font-size: 1.3rem; line-height:1.55;}
.overlay { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.85); transition: opacity 500ms; visibility: hidden; opacity: 0;}
.overlay.activepop { opacity: 1; visibility: visible; z-index: 99; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.85); transition: opacity 500ms;}
.modalgall { width:100%; visibility:hidden; z-index: 99; position:fixed; top:0; left:0; box-sizing: border-box; margin: 0;    padding: 8px 16px;margin-top: 36px; }
.modalgall h2 { margin-top: 0; color: #333; background: #f8f8f8; padding: 2px 4px; margin-bottom: 10px; }
.modalgall .content { min-height: 30%; overflow: auto; }
.modalgall .close { position: absolute; top:-40px; right: 0; font-size: 30px; font-weight: bold; 
	text-decoration: none; text-align: center; padding: 5px 10px 13px; width: 30px; height: 30px; color: #fff; cursor: pointer; border-radius: 50%; }
.modalgall .close:hover { color: #fff;}
.banner_gal{margin: 0 -16px 10px;}

/*.open-mgallery{height: 0;padding-bottom: calc(100% * (9/16));}*/
.open-mgallery{float: left;padding: 0 2px;box-sizing: border-box;margin: 2px 0;overflow: hidden;position: relative;}
.open-mgallery .max-img{object-fit: cover;}

/*.modalgall .banner_gal{text-align: center;position: absolute;left: 50%;transform: translatex(-50%);bottom: -100px;}*/
.engagement { padding:0 !important; width: 100%; display: inline-block; float: none !important; text-align: left; margin-bottom: 8px;}
.engagement span { color: #000 !important; width: 20%; display: inline-block;}
.engagement a span { width: 100%; margin: 0; color: #fff !important; text-align: center;}
.viewer span { min-width: 41%; width: 41%; background-color: #f7f7f7 !important; text-align: center;}
.m-0 { margin: 0 !important;}
.mdl-layout__header { z-index: 1!important;}
.fb_comments_count { padding: 0 !important; margin: 0 !important; text-indent: 0 !important; color: #666 !important;}
.engagement a:first-child { background:#3b5998; border-radius: 4px; width: 49%; margin: 1% 1% 0 0; display: block; text-align: center; padding: 5px 0; float: left;}
.engagement a:last-child { width: 49%; display: block; margin: 1% 0 0; background: #00b6dd; float: left; margin: 1% 0 0; border-radius: 4px; padding: 5px 0; text-align: center;}

.relate_img_gal h3{font-family: 'kittithada_roman';font-weight: normal;font-size: 32px;    padding: 0 16px;}
.relate_img_gal ul{padding: 0 16px;}

.related__album{padding: 0 16px;}

.gallery404 {padding: 20px;width: 90%;margin: 0 auto;text-align: center;background-color: #f5f5f5;border: 1px dashed #d6d6d6;line-height: 1.8;font-size: 14px;}
.gallery404 img{margin: 0 auto;width: 50%;}
span.cation-gallery {  display: block; text-align: center; padding-top: 10px;}


.item__banner_gallery{background-color:gray;position:fixed;bottom:10px;left:50%;transform: translateX(-50%);z-index:99;}
.item__banner_close{cursor:pointer;position: absolute;top:0;right: 0px;transform: translate(50%,-50%);background: url(https://assets.thaicdn.net/portal_view/svg/close.svg) #000 center center no-repeat;background-size: 16px;width:20px;height:20px;display: block;border-radius:50%;border: #fff 1px solid;}

@media only screen  and (orientation: landscape) {
      /* css rules */
      .modalgall .swiper-slide img{    width: auto!important;height: calc(100vh - 120px);display: block;margin: 0 auto;}
}

@media screen and (max-width:40em) { /* 640px landscape android*/}
@media screen and (max-width:30em) { /* 480px landscape ios*/}
@media screen and (max-width:23.4375em) { /* 375px vertical ios*/}
@media screen and (max-width:22.5em) { /* 360px vertical Android*/}
@media screen and (max-width:20em) { /* 320px vertical ios */}
