#project-gallery .consult-board,#project-gallery .consult-hero{max-width:1280px}
#project-gallery .consult-board{padding-bottom:32px}
#project-gallery.is-writing .consult-board{max-width:1600px;padding:16px 28px 50px}
#project-gallery.is-writing .consult-hero,#project-gallery.is-writing .projects-divider,#project-gallery.is-writing .service-guide{display:none}
#project-gallery .table-write{table-layout:auto;width:100%}
#project-gallery .table-write tr:has(#wp-we_content-wrap)>th{display:none}
#project-gallery .table-write tr:has(#wp-we_content-wrap)>td{display:block;width:100%!important;padding:0!important}
#project-gallery .table-write tr:has(#wp-we_content-wrap){display:block;width:100%}
#project-gallery #wp-we_content-wrap{width:100%;max-width:none}
#project-gallery .mce-toolbar .mce-btn button{padding:4px 7px;color:#333;background:transparent;min-height:30px;line-height:20px}
#project-gallery .mce-toolbar .mce-btn span{line-height:20px}
#project-gallery .nce-editor-help{font-size:13px;color:#526f7b;margin:12px 0!important;padding:12px;background:#edf7fa}
#project-gallery .mce-container iframe{min-height:650px}
#project-gallery .content-box img{max-width:100%;height:auto}
#project-gallery .content-box blockquote.nce-quote{font-size:22px;line-height:1.7;color:#087f99;margin:30px 0;padding:22px 26px;font-style:normal}
#project-gallery .content-box .nce-quote-line{border-left:4px solid #087f99;background:#f1f8fb}
#project-gallery .content-box .nce-quote-mark{text-align:center;border-top:1px solid #cde4eb;border-bottom:1px solid #cde4eb}
#project-gallery .content-box .nce-quote-mark:before{content:'“';display:block;font:bold 48px Georgia;color:#318fa2;height:35px}
#project-gallery .content-box .nce-quote-bubble{position:relative;border-radius:16px;background:#e5f3f7;margin-bottom:40px}
#project-gallery .content-box .nce-quote-bubble:after{content:'';position:absolute;bottom:-14px;left:32px;border:8px solid transparent;border-top-color:#e5f3f7}
#project-gallery .content-box table.nce-photo-row{width:100%;border:0;border-collapse:separate;border-spacing:10px;table-layout:fixed;margin:20px 0}
#project-gallery .content-box table.nce-photo-row td{border:0;padding:0;vertical-align:top}
#project-gallery .content-box table.nce-photo-row img{display:block;width:100%;height:auto}
@media(max-width:760px){#project-gallery.is-writing .consult-board{padding-inline:12px}#project-gallery .content-box table.nce-photo-row{border-spacing:4px}#project-gallery .content-box blockquote.nce-quote{font-size:18px}}

#project-gallery .content-box{overflow-wrap:anywhere;word-break:normal}#project-gallery .content-box p,#project-gallery .content-box li{max-width:100%;overflow-wrap:anywhere}#project-gallery .content-box table.nce-data-table{width:100%;table-layout:fixed;border-collapse:collapse}#project-gallery .content-box table.nce-data-table td,#project-gallery .content-box table.nce-data-table th{border:1px solid #c5dce5;padding:10px;vertical-align:top;overflow-wrap:anywhere}#project-gallery .content-box hr.nce-divider{height:0;background:none;clear:both}
.nce-writing-preview{width:min(1040px,94vw);max-width:94vw;max-height:94vh;padding:18px;border:1px solid #c5dce5;background:#f1f8fb;color:#173b4d;box-sizing:border-box}.nce-writing-preview::backdrop{background:#0008}.nce-preview-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.nce-preview-bar strong{margin-right:auto}.nce-preview-bar button{background:#fff!important;color:#087f99!important;border:1px solid #aabd9f!important;padding:8px 14px!important;font-size:13px!important}.nce-preview-bar button[aria-pressed=true]{background:#087f99!important;color:#fff!important}.nce-writing-preview>p{font-size:12px;margin:12px 0;color:#626b5e}.nce-writing-preview iframe{display:block;max-width:100%;height:65vh;margin:auto;border:1px solid #d5ded0;background:white}

/* Keep editor controls below the site's fixed header while writing. */
#project-gallery.is-writing #wp_mb_ts_projects_tr_content>.content-box{overflow:visible!important}
#project-gallery.is-writing #wp-we_content-wrap .mce-top-part{position:sticky!important;top:var(--nce-editor-sticky-top,140px);z-index:18;background:#f6f7f7;box-shadow:0 2px 5px #00000018}
#project-gallery.is-writing #wp-we_content-wrap .mce-toolbar .mce-flow-layout{white-space:normal!important}
#project-gallery.is-writing #wp-we_content-wrap .mce-toolbar .mce-btn button{padding:4px 6px!important}
/* Only the TS cases board; keep gallery/list skin independent from editor layout. */
body.page-id-15 #project-gallery {min-width:0;max-width:100%;}
body.page-id-15 #project-gallery .table-write,body.page-id-15 #project-gallery .table-write>tbody{display:block;width:100%!important;}
body.page-id-15 #project-gallery .table-write colgroup{display:none;}
body.page-id-15 #project-gallery .table-write tr{display:grid;grid-template-columns:100px minmax(0,1fr);width:100%!important;}
body.page-id-15 #project-gallery .table-write th,body.page-id-15 #project-gallery .table-write td{display:block;width:auto!important;min-width:0;}
body.page-id-15 #project-gallery .table-write tr:has(#wp-we_content-wrap){display:block;}
body.page-id-15 #project-gallery .table-write tr:has(#wp-we_content-wrap)>td{width:100%!important;padding:0!important;overflow:visible!important;}
body.page-id-15 #project-gallery .table-write input:not([type=checkbox]),body.page-id-15 #project-gallery .table-write textarea{max-width:100%;box-sizing:border-box;}
body.page-id-15 #project-gallery #wp-we_content-wrap{min-width:0;width:100%;}
body.page-id-15 #project-gallery #wp-we_content-wrap .mce-toolbar .mce-flow-layout{white-space:normal!important;}
body.page-id-15 #project-gallery #wp-we_content-wrap .mce-btn-group{max-width:100%;}
body.page-id-15 #project-gallery #wp-we_content-wrap .mce-btn button{min-height:30px;padding:4px 6px!important;background:transparent!important;color:#333!important;box-shadow:none;}
body.page-id-15 #project-gallery #wp-we_content-wrap .wp-editor-tabs button{color:#333!important;background:#f0f0f1!important;min-height:30px;padding:4px 10px;}
body.page-id-15 #project-gallery #insert-media-button{background:#087f99!important;color:white!important;padding:8px 12px;min-height:36px;border:1px solid #087f99;}
body.page-id-15 #project-gallery #insert-media-button .wp-media-buttons-icon:before{color:inherit;}
body.page-id-15 #project-gallery .nce-editor-help{line-height:1.7;border-radius:8px;}
body.page-id-15 #project-gallery.is-writing #wp-we_content-wrap #we_content_ifr,body.page-id-15 #project-gallery.is-writing #wp-we_content-wrap textarea#we_content{height:720px!important;min-height:500px!important;}
body.page-id-15 #project-gallery .gallery-title{white-space:normal!important;overflow-wrap:anywhere;}
body.page-id-15 #project-gallery .gallery-title a{min-width:0;white-space:normal!important;overflow-wrap:anywhere;}
body.page-id-15 #project-gallery .gallery-title input[type=checkbox]{flex:0 0 auto;margin-right:6px;}
body.page-id-15 #project-gallery .list-search{max-width:100%;display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
body.page-id-15 #project-gallery .list-search input.search-text{min-width:0;flex:1 1 80px;max-width:100%;}
body.page-id-15 #project-gallery .list-search .btn{flex:0 0 auto;}
@media(max-width:600px){
 body.page-id-15 #project-gallery .table-write tr{grid-template-columns:65px minmax(0,1fr);}
 body.page-id-15 #project-gallery .table-write th,body.page-id-15 #project-gallery .table-write td{padding:10px 6px!important;}
 body.page-id-15 #project-gallery .btn-box{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;}
 body.page-id-15 #project-gallery .gallery-item-box{max-width:100%;min-width:0;}
 body.page-id-15 #project-gallery.is-writing #wp-we_content-wrap .mce-top-part{position:static!important;}
 body.page-id-15 #project-gallery .nce-editor-help{font-size:12px;}
 body.page-id-15 #project-gallery .wp-media-buttons{float:none;margin-bottom:8px;}
 body.page-id-15 #project-gallery .wp-editor-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;}
}
