.thai-community-pages{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:24px 0}.thai-community-pages>*{padding:6px 10px}.thai-albums{display:flex;gap:14px;flex-wrap:wrap;margin:20px 0}.thai-photo-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;list-style:none;margin:20px 0!important;padding:0!important}.thai-photo-grid>li{width:auto!important;list-style:none}.thai-gallery .uphoto,.thai-gallery .photo-title,.thai-gallery .photo-block,.thai-gallery .ph-details{display:block}.thai-gallery .photo-title{min-height:48px;padding:8px;text-align:center}.thai-gallery .photo-block img{display:block;width:100%;height:230px;object-fit:cover}.thai-gallery .ph-details{text-align:center;padding:8px}.thai-photo-full{display:block;max-width:100%;max-height:80vh;margin:20px auto}.thai-forum{margin-top:30px!important;margin-bottom:30px!important}.thai-forum table{max-width:100%;overflow-wrap:anywhere}.thai-forum .postTable{margin:16px 0}.thai-forum .posttdMessage img{max-width:100%;height:auto}.thai-forum .postTdTop,.thai-forum .gTableTop{padding:12px;background:#118fc5;color:#fff}.thai-forum .posttdMessage{padding:20px;background:#fafafa}.thai-guestbook #allEntries>div{width:75%;margin:0 auto 20px;background:#fafafa;color:#424242;padding:20px;border-radius:15px;box-shadow:0 1px 4px -1px #9a9fad}.thai-guestbook #sign{max-width:750px;margin:30px auto}.thai-lightbox-dialog{border:0;padding:12px;max-width:95vw;max-height:95vh}.thai-lightbox-dialog::backdrop{background:#000b}.thai-lightbox-dialog img{display:block;max-width:90vw;max-height:80vh}.thai-lightbox-dialog button{display:block;margin-left:auto}
@media(max-width:834px){.thai-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thai-guestbook #allEntries>div{width:90%;padding:4%;box-sizing:border-box}}
@media(max-width:500px){.thai-photo-grid{grid-template-columns:1fr}.thai-forum .postTdTop{font-size:13px}.thai-forum .posttdMessage{padding:10px}.contact-main-form table{table-layout:fixed}.contact-main-form input,.contact-main-form textarea{box-sizing:border-box;max-width:100%}}

.thai-forum-form{max-width:750px;margin:30px auto}.thai-forum-form input,.thai-forum-form textarea{width:100%;box-sizing:border-box}

/* Community layouts use the original content widths and card geometry. */
.thai-guestbook #allEntries>div{width:50%;padding:20px;box-sizing:content-box;float:none}
.thai-entry-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:20px 0}
.thai-entry-toolbar .thai-community-pages{margin:0;gap:4px;display:inline-flex}
.thai-entry-toolbar .thai-community-pages>*{padding:0 5px}
.thai-gallery-page .content{width:70.4%;float:right}.thai-gallery-sidebar{width:22.4%;float:left;margin-top:20px}
.thai-gallery-sidebar a{display:block;margin:12px 0}.thai-gallery-page .content-view{margin-top:20px}
.thai-gallery .thai-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0!important}
.thai-gallery .thai-photo-grid>li{padding:0;margin:0;height:273px;text-align:center}
.thai-gallery .entryBlock{width:280px;height:273px;margin:auto;max-width:100%}
.thai-gallery .uphoto{width:260px;margin:auto;max-width:100%}
.thai-gallery .photo-title{min-height:0;height:20px;padding:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:bold}
.thai-gallery .photo-block{padding:5px;background:white;border-radius:5px;box-shadow:0 1px 4px #bbb}
.thai-gallery .photo-block img{width:250px;height:200px;object-fit:cover;max-width:100%}
.thai-gallery .ph-details{padding:8px;font-size:12px}.thai-gallery .thai-entry-toolbar{margin:0 0 4px;font-size:12px}
.thai-forum .forumContent .gTable{width:100%;margin-top:40px}.thai-forum .forumNameTd{padding:20px;background:#fafafa;width:56%}
.thai-forum .forumNameTd>a{font-size:16px}.thai-forum .forumDescr{margin:10px 0}.thai-forum .forumIcoTd{width:60px;text-align:center}
.thai-forum .forumIcoTd img{width:45px;height:45px;object-fit:contain}.thai-forum .forum-stat{text-align:center;padding:12px;background:#fafafa}
.thai-forum .gTableSubTop{background:#eee;padding:8px;font-size:12px}.thai-forum .gTableTop{padding:24px;text-transform:uppercase;font-size:20px}
@media(max-width:1100px){.thai-gallery .thai-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:834px){.thai-gallery-page .content,.thai-gallery-sidebar{width:100%;float:none}.thai-gallery-sidebar{clear:both}.thai-guestbook #allEntries>div{width:75%;padding:20px}}
@media(max-width:600px){.thai-forum.page.width{width:100%}.thai-forum .forumIcoTd,.thai-forum .forum-stat,.thai-forum .forum-stat-head{display:none}.thai-forum .forumNameTd{width:auto}.thai-forum .gTableTop{font-size:18px}.thai-gallery .thai-photo-grid{grid-template-columns:1fr}}
@media(max-width:500px){.thai-guestbook #allEntries>div{width:87%;padding:20px;margin:20px auto}.thai-guestbook #allEntries table,.thai-guestbook #allEntries tbody,.thai-guestbook #allEntries tr,.thai-guestbook #allEntries td{display:block;width:100%;margin:auto}.thai-guestbook #sign{width:95%}}

/* Preserve the original navigation flow, including mobile line wrapping. */
.thai-gb-breadcrumb,.thai-photo-toolbar{font-size:12px}.thai-gallery-page .content-view{margin-top:0}
.thai-guestbook .csTop{line-height:1.4}.thai-guestbook #pagesBlock1{font-size:16px}
@media(max-width:500px){.thai-gb-breadcrumb,.thai-gb-breadcrumb tbody,.thai-gb-breadcrumb tr,.thai-gb-breadcrumb td{display:block;width:100%;margin:auto}.thai-photo-toolbar,.thai-photo-toolbar tbody,.thai-photo-toolbar tr,.thai-photo-toolbar td{display:block;width:100%}.thai-guestbook #pagesBlock1{float:none!important;margin-bottom:22.390625px}}

.thai-forum-home{margin-top:0!important}.thai-forum-home .gTable{font-size:14px}
.thai-forum .forumNameTd{width:auto}.thai-forum .forumDescr{margin:0}.thai-forum .forumIcoTd{width:auto}.thai-forum .forumIcoTd img{width:auto;height:auto}
.thai-forum .forum-stat{padding:20px}.thai-forum .gTableSubTop{padding:5px;font-size:12px}
.thai-forum .gTableTop{padding:20px 0 20px 2%;background:#0094fe;font-size:14pt}
@media(max-width:834px){.thai-forum .ad-forum img{width:96%!important}}
@media(max-width:600px){.thai-forum-home{margin-top:0!important}.thai-forum-nav,.thai-forum .forum-stat-update{display:none}.thai-forum .forumNameTd{font-size:14px}}

.thai-gallery-sidebar a{display:inline;margin:0}.thai-gallery-sidebar .sidebar-popular a{display:block}.thai-gallery-sidebar .sidebar-popular img{object-fit:cover}.thai-gallery-sidebar{margin-top:0}

.thai-gallery .photo-title{height:27px}.thai-forum .gTableSubTop{font-size:10px;padding:10px 0;text-align:center}

.thai-contact-page{margin-top:0!important}.thai-contact-page .content{width:70.4%;margin-top:20px!important}.thai-contact-page #support{max-width:100%}
.thai-forum-actions{text-align:right;margin:16px 0}.thai-forum-path{font-size:14px;padding:3px 0 5px}
.thai-forum .thai-forum-post-wrap{padding:20px}.thai-forum .postTable{margin:40px 0 0;font-size:12px}
.thai-forum .postTdTop{padding:2px;background:transparent;color:#424242;font-size:12px}
.thai-forum .posttdMessage{padding:2px;background:transparent;font-size:12px}
.thai-forum .postTdInfo{padding:2px;font-size:16px}.thai-forum .userAvatar{max-width:40%;height:auto}.thai-forum .postBottom{padding:2px}
.thai-forum .eAttach{font-size:12px;overflow-wrap:anywhere}
@media(max-width:834px){.thai-contact-page{margin-top:0!important}.thai-contact-page .content{width:100%}}
@media(max-width:600px){.thai-topic-extra{display:none}.thai-forum .postTdTop:first-child{width:auto!important;margin:0 -4px 10px 0}.thai-forum .posttdMessage{padding:10px 2px 2px}.thai-forum .postTdInfo{display:none}}

.thai-forum .thai-forum-post-wrap{padding:0}

/* uCoz forum base rules required by the preserved forum controls. */
.thai-forum .forum-pages{list-style:none;margin:0;padding:0}
.thai-forum .forum-pages li{display:inline-block;margin:2px 0}
.thai-forum .forum-pages li.pagesInfo{padding-left:7px;padding-right:7px}
.thai-forum #forum_filter form{float:left}
.thai-forum #forum_filter{clear:right;float:right}
.thai-forum #filter_by{float:left}
.thai-forum #forum_filter #filter_by{margin-top:3px}

.thai-forum .clear2{clear:right;float:none;width:100%}
@media(max-width:600px){.thai-forum .ThrTopButtonsTbl .frmBtns{padding-bottom:26px}}

/* Original forum image spacing from the uCoz page-level stylesheet. */
.thai-forum .ucoz-forum-post img:not(.smile):not(.emoji):not(.wp-smiley){max-width:51%!important;margin:2% 0!important}
@media(max-width:834px){.thai-forum .ucoz-forum-post img:not(.smile):not(.emoji):not(.wp-smiley){width:99%!important;max-width:100%!important}.thai-forum .ucoz-forum-post img.smile{width:auto!important}}

.thai-forum .threadpage-posts-table .gTableTop{font-size:16px}

/* Legacy uCoz photo-card internals restored from photopage.min.css. */
.thai-gallery .entryBlock{width:280px;height:273px;margin:0;max-width:100%;text-align:center;display:inline-block}
.thai-gallery .uphoto{display:inline-block;vertical-align:middle;width:260px;margin:10px;text-align:left;max-width:none}
.thai-gallery .photo-title{display:block;margin:0;padding:0 5px 5px;width:100%;height:auto;min-height:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:700 12px/17px Arial;box-sizing:border-box}
.thai-gallery .photo-block{position:relative;display:inline-block;vertical-align:middle;padding:5px;font:12px/16px Arial;background:#fff!important;box-shadow:0 .5px 3px rgba(0,0,0,.37);border-radius:5px;box-sizing:content-box}
.thai-gallery .photo-block:after{display:block;content:"";position:absolute;top:100%;left:0;right:0;height:7px;background:url(photopage/ph-shadow.png) no-repeat top}
.thai-gallery .ph-wrap{display:block;position:relative;overflow:hidden;width:250px;height:200px}
.thai-gallery .ph-wrap img{display:inline;width:250px;height:200px;max-width:100%;object-fit:cover;vertical-align:middle;border:0}
.thai-gallery .ph-link{display:block;position:absolute;left:0;top:0;right:0;bottom:0;text-align:center;text-decoration:none!important;background:url(photopage/opacity085.png);opacity:0;transition:opacity .5s ease .05s}
.thai-gallery .ph-link:hover{opacity:1}
.thai-gallery .ph-tc{display:table-cell;vertical-align:middle;text-align:center;width:250px;height:200px}
.thai-gallery .ph-data{display:inline-block}
.thai-gallery .ph-date{display:block;padding:2px 7px;font-weight:700;color:#000!important}
.thai-gallery .ph-descr{display:block;padding:5px 8px;font-style:italic;font-size:11px;line-height:14px;color:#464646!important;text-shadow:0 1px 0 #fff}
.thai-gallery .ph-author{display:inline-block;vertical-align:middle;margin:2px 0 0;padding:0 0 0 18px;background:url(photopage/uico-user.png) no-repeat 0;color:#464646!important;text-shadow:0 1px 0 #fff}
.thai-gallery .ph-details{display:block;height:16px;margin:5px 0 0;padding:0;text-align:center;font:12px/16px Arial}
.thai-gallery .phd-comments,.thai-gallery .phd-rating,.thai-gallery .phd-views{display:inline-block;margin:0 10px 0 0;background:no-repeat 0;padding-left:20px}
.thai-gallery .phd-views{background-image:url(photopage/uico-view.png)}
.thai-gallery .phd-comments{background-image:url(photopage/uico-comment.png);padding-left:18px}
.thai-gallery .phd-rating{background-image:url(photopage/uico-rating.png);padding-left:18px;margin-right:0;position:relative}

/* Legacy single-photo layout. */
.thai-photo-detail .content-view{margin-top:20px}
.thai-photo-detail .thai-photo-breadcrumb{display:inline}
.thai-photo-detail .u-center{text-align:center}

.thai-photo-detail .thai-photo-breadcrumb{font-size:16px}
.thai-photo-detail #adv{display:block;font-size:14pt;cursor:pointer;box-shadow:0 3px 2px 2px #860d0d;background:#cc1818;color:#fff!important;padding:16px 40px;border:1px solid #db3939;text-align:center;font-weight:bold;text-decoration:none;box-sizing:border-box;width:100%;margin:0 0 10px}
.thai-photo-detail #adv:hover{padding-top:20px;padding-bottom:12px;box-shadow:0 1px 2px 1px #860d0d}
.thai-photo-detail .uphoto-entry{margin-bottom:10px}
.thai-photo-detail .photo-etitle{margin:10px 0;text-align:center;font-size:22px;font-family:Georgia,serif;text-shadow:1px 1px 2px silver;padding-top:15px}
.thai-photo-detail .photo-edescr{width:74%;margin:20px auto 18px;text-align:justify}
.thai-photo-detail .uphoto-entry .photo-block{position:relative;display:inline-block;vertical-align:middle;padding:5px;font:12px/16px Arial;background:#fff!important;box-shadow:0 .5px 3px rgba(0,0,0,.37);border-radius:5px;box-sizing:content-box}
.thai-photo-detail .uphoto-entry .ph-wrap{width:auto;height:auto;display:block;position:relative;overflow:hidden}
.thai-photo-detail .photo-expand{display:block;position:relative}
.thai-photo-detail .photo-expand img{display:inline;max-width:100%;width:auto;height:auto;vertical-align:middle;border:0}
.thai-photo-detail .photo-edetails,.thai-photo-detail .photo-edetails2{display:block;line-height:30px!important}
.thai-photo-detail .photo-edetails{margin-top:5px;line-height:35px!important;text-align:center}
.thai-photo-detail .photo-hr{margin:5px 0;border:0;height:2px;overflow:hidden}
.thai-photo-detail .phd-author{display:inline-block;vertical-align:baseline;margin:0 0 0 5px;padding:0 0 0 18px;background:url(photopage/uico-user.png) no-repeat 0}
.thai-photo-detail .thai-photo-away-title{font-size:20px}
.thai-photo-detail .thai-photo-away{text-align:left}
.thai-photo-detail .thai-photo-comments-summary{font-size:16px}
.thai-photo-detail .catNumData{display:none}


/* Guestbook lower controls: legacy geometry with native WordPress submission. */
.thai-guestbook #acform{width:65%;margin:auto!important}
.thai-guestbook #message{width:100%}
.thai-guestbook .smiles-grid{align-items:center;display:grid;gap:.5rem;grid-template-columns:repeat(3,1fr);justify-content:center;width:max-content}
.thai-guestbook .smiles-grid .sml1{font-size:0;line-height:0;text-align:center}
.thai-guestbook .smiles-grid img{border:0;margin:0;padding:0}
.thai-guestbook .smiles-grid #allSmiles{grid-column:1/-1;text-align:center}
.thai-guestbook .thai-gb-review-note{min-height:77px;display:flex;align-items:center;color:#666}
.thai-guestbook .thai-gb-submit-status{text-align:center}
@media(max-width:500px){.thai-guestbook #acform{width:95%;margin:auto!important}.thai-guestbook #message{padding:10px 0;width:100%}.thai-guestbook #acform .commTable,.thai-guestbook #acform .commTable tbody,.thai-guestbook #acform .commTable tr,.thai-guestbook #acform .commTable td{display:block;width:100%;margin:auto}}
/* Forum-only image viewer; shared photo/product controls are unaffected. */
.thai-forum-lightbox{padding:46px 12px 12px;box-sizing:border-box}
.thai-forum-lightbox .thai-forum-lightbox-close{position:absolute;top:0;right:0;width:44px;height:44px;margin:0;padding:0;border:0;background:transparent;color:#333;font:32px/44px Arial;cursor:pointer}
.thai-forum-lightbox .thai-forum-lightbox-close:focus-visible{outline:2px solid #0094fe;outline-offset:-4px}
.thai-forum-lightbox img{max-width:calc(95vw - 24px);max-height:calc(95vh - 70px)}
.thai-forum .thai-forum-statistics .gTableBody{padding:20px;overflow-wrap:anywhere}
/* WordPress emoji fallback must retain inline text geometry on every viewport. */
.thai-forum .ucoz-forum-post img.emoji,
.thai-forum .ucoz-forum-post img.wp-smiley{
    display:inline!important;float:none!important;
    width:1em!important;height:1em!important;max-width:none!important;
    margin:0 .07em!important;vertical-align:-.1em!important;
}
.thai-forum .frmBtns>div{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:0 8px}
.thai-forum .frmBtns>div>a{display:inline-flex}
.thai-forum #thread_search_button,.thai-forum #thread_search_field{float:right}
.thai-forum #thread_search_field{width:180px!important}
