
* {
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Prompt';
  src: url('../fonts/prompt/Prompt-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}

ol {
  padding-left: 22px;
}

ul {
  box-sizing: border-box;
  padding-left: 30px;
}

li{
  font-family: "Prompt", sans-serif;
  font-style: normal;
  font-weight: 400!important;
}


 a{
  font-family: "Kanit", sans-serif!important;
  font-style: normal;
  line-height: 1.5;
  font-weight: 400!important;
  font-size: 1rem!important;
}

p {
  font-family: "Prompt", sans-serif;
  font-weight: 100;
  font-style: normal;
  line-height: 2;
  font-weight: 400!important;
}

h1 {
  font-family: "Kanit", sans-serif!important;
  font-style: normal!important;
  line-height: 1.5;
  font-weight: 400!important;

}

 h2{ 
  font-size: 1.50rem!important;
  font-family: "Kanit", sans-serif!important;
  font-style: normal!important;
  line-height: 1.5;
  font-weight: 400!important;
}
h3{ 
  font-size: 1.25rem!important;
  font-family: "Kanit", sans-serif!important;
  font-style: normal!important;
  line-height: 1.5;
  font-weight: 400!important;
}

h4{ 
  font-size: 1.25rem!important;
  font-family: "Kanit", sans-serif!important;
  font-style: normal!important;
  line-height: 1.5;
  font-weight: 400!important;
}

h5{ 
  font-size: 1.25rem!important;
  font-family: "Kanit", sans-serif!important;
  font-style: normal!important;
  line-height: 1.5;
  font-weight: 400!important;
}

a,
button,
img,
.wp-block-group,
.wp-block-columns,
.wp-block-column {
  transition: all ease 0.23s;
}
.wp-block-image.is-style-mighty-builders-boxshadow img,
.wp-block-column.is-style-mighty-builders-boxshadow,
.wp-block-columns.is-style-mighty-builders-boxshadow,
.wp-block-group.is-style-mighty-builders-boxshadow {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}
.wp-block-image.is-style-mighty-builders-boxshadow-medium img,
.wp-block-column.is-style-mighty-builders-boxshadow-medium,
.wp-block-columns.is-style-mighty-builders-boxshadow-medium,
.wp-block-group.is-style-mighty-builders-boxshadow-medium {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}
.wp-block-image.is-style-mighty-builders-boxshadow-large img,
.wp-block-column.is-style-mighty-builders-boxshadow-large,
.wp-block-columns.is-style-mighty-builders-boxshadow-large,
.wp-block-group.is-style-mighty-builders-boxshadow-large {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}
.wp-block-image.is-style-mighty-builders-boxshadow-hover img:hover,
.wp-block-column.is-style-mighty-builders-boxshadow-hover:hover,
.wp-block-columns.is-style-mighty-builders-boxshadow-hover:hover,
.wp-block-group.is-style-mighty-builders-boxshadow-hover:hover {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}
.taxonomy-category.is-style-categories-background-with-round a {
  padding: 6px 12px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  font-size: 14px;
}
.taxonomy-category.is-style-categories-background-with-round a:before {
  background-color: var(--wp--preset--color--primary);
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  opacity: 0.089;
  transition: all ease 0.23s;
  -webkit-transition: all ease 0.23s;
  -moz-transition: all ease 0.23s;
  -o-transition: all ease 0.23s;
  border-radius: 4px;
}
.taxonomy-category.is-style-categories-background-with-round a:hover:before {
  opacity: 0.06;
}
.taxonomy-category.is-style-categories-background-with-round a {
  margin: 0 5px 5px 0;
  display: inline-block;
}
.taxonomy-category.is-style-categories-background-with-round .wp-block-post-terms__separator {
  display: none;
}

/*style list for ul*/
.is-style-list-style-no-bullet,
.is-style-hide-bullet-list-link-hover-style-primary,
.is-style-hide-bullet-list-link-hover-style-secondary {
  list-style-type: none;
}
/*image hover effect*/
figure.wp-block-image.is-style-mighty-builders-image-hover-rotate img:hover {
  transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
}
.wp-block-image.is-style-mighty-builders-image-hover-pulse img:hover {
  animation: mighty-buildersPulse 2s infinite;
  -moz-animation: mighty-buildersPulse 2s infinite;
  -o-animation: mighty-buildersPulse 2s infinite;
  -webkit-animation: mighty-buildersPulse 2s infinite;
  animation-timing-function: linear;
  -moz-animation-timing-function: linear;
  -webkit-animation-timing-function: linear;
  -o-animation-timing-function: linear;
}
.wp-block-image.is-style-mighty-builders-image-pulse img {
  animation: mighty-buildersPulse 2s infinite;
  -moz-animation: mighty-buildersPulse 2s infinite;
  -o-animation: mighty-buildersPulse 2s infinite;
  -webkit-animation: mighty-buildersPulse 2s infinite;
  animation-timing-function: linear;
  -moz-animation-timing-function: linear;
  -webkit-animation-timing-function: linear;
  -o-animation-timing-function: linear;
}
@keyframes mighty-buildersPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
.wp-block-gallery.mighty-builders-brands-logos .wp-block-image {
  align-items: center;
}
.wp-block-gallery.is-style-enable-grayscale-mode-on-image .wp-block-image img {
  filter: grayscale(1);
  -webkit-filter: grayscale(1);
  transition: all ease-in 0.23s;
  -webkit-transition: all ease-in 0.23s;
  -moz-transition: all ease-in 0.23s;
  -o-transition: all ease-in 0.23s;
}
.wp-block-gallery.is-style-enable-grayscale-mode-on-image .wp-block-image img:hover {
  filter: grayscale(0);
  -webkit-filter: grayscale(0);
}
.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}
.mighty-builders-duotone-primary {
  filter: var(--wp--preset--duotone--primary);
}
.wp-block-social-links.is-style-social-icon-border li a {
  border: 1px solid;
  border-radius: 50%;
}
.is-style-mighty-builders-page-list-bullet-hide-style.wp-block-page-list,
.wp-block-categories-list.is-style-mighty-builders-categories-bullet-hide-style {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wp-block-cover.is-style-mighty-builders-cover-round-style {
  border-radius: 7px;
  overflow: hidden;
}
figure.wp-block-image.mighty-builders-header-call,
figure.wp-block-image.mighty-builders-header-location {
  background: var(--wp--preset--color--primary);
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}


/* General styles */



nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* ให้ nav กว้างเต็มหน้าจอ */
  
}

nav ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 คอลัมน์สำหรับ PC */
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%; /* ให้ ul กว้างเต็มหน้าจอ */
  box-sizing: border-box; /* รวม border และ padding ในขนาดของ element */
  
}

nav li {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  padding: 5px !important;
  font-style: normal;
  font-weight: 600;
  text-align: center;
  white-space: nowrap; /* บังคับให้ข้อความไม่ตัดบรรทัด */
  box-sizing: border-box; /* รวม padding และ border ในขนาดของ element */
  transition: background-color 0.3s, color 0.3s; /* เพิ่ม transition effect */
  width: 100%; /* ให้ความกว้างของลิงก์เท่ากับขนาดของคอลัมน์ */
  height: 100%; /* ให้ความสูงของลิงก์เท่ากับขนาดของแถว */
}


/* Mobile styles */
@media (max-width: 1000px) {

  .wp-block-cover__background, 
  .has-background-alt-background-color, 
  .has-background-dim-0 .has-background-dim {
    display: none;
  }

  nav ul {
    line-height: 20px;
    display: flex;
    flex-wrap: wrap;          /* ให้เมนูขึ้นบรรทัดใหม่เมื่อเกินพื้นที่ */
    justify-content: space-between;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  nav ul li {
    flex: 1 1 33.33%;         /* แต่ละลิงก์กว้าง 1 ใน 3 */
    text-align: center;       /* จัดตัวหนังสือให้อยู่ตรงกลาง */
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    list-style: none;
  }

  nav ul li:nth-child(3n) {
    border-right: none;       /* เอาเส้นขอบด้านขวาออกตรงคอลัมน์สุดท้าย */
  }

  .wp-block-navigation .wp-block-page-list, 
  .wp-block-navigation__container, 
  .wp-block-navigation__responsive-close, 
  .wp-block-navigation__responsive-container, 
  .wp-block-navigation__responsive-container-content, 
  .wp-block-navigation__responsive-dialog {
    gap: 0; 
  }

  .wp-block-navigation__container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding-left: 0;
    width: 100%;
  }

  .wp-block-navigation .wp-block-page-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .wp-block-navigation .wp-block-navigation-item {
    flex: 1 1 33.33%;
    text-align: center;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
  }


  .wp-block-navigation .wp-block-navigation__submenu-icon {
    padding-right: 20px;
  }
}


@media (min-width: 1000px) {
 /*รูปหน้า Post*/
.my-custom-featured-image {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  padding-top: 15px;
}
.backgrund-bg {
margin-top: 15px !important;
margin-bottom: 15px !important;

}
.custom-title{
  border-radius: 10px 10px 0px 0px ;
}


}
.wp-block-navigation.mighty-builders-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
  line-height: 30px !important;
}

element.style {
  border-top-style: none;
  border-top-width: 0px;
  border-bottom-style: none;
  border-bottom-width: 0px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  /* padding-right: var(--wp--preset--spacing--40); */
  padding-bottom: 0;
  padding-left: 0;
}

.wp-container-core-group-is-layout-4 .wp-block-group-is-layout-constrained{
  border-top-style: none;
  border-top-width: 0px;
  border-bottom-style: none;
  border-bottom-width: 0px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  /* padding-right: var(--wp--preset--spacing--40); */
  padding-bottom: 0;
  padding-left: 0!important;
}






.custom-header{
  padding-top: 20px;
}
.is-layout-flow  {
  margin-block-start: 0;
  margin-block-end: 0;
}
.is-layout-flow > * {
  margin-block-start: 0!important;
  margin-block-end: 0;
}
.custom-nav {
  padding-top: 15px;

}
.custom-buttom a{
  font-family: 'Kanit';
  display: inline-block!important;
  padding: 2px 10px!important;
  border-radius: 5px!important;
  color: rgb(0, 0, 0);
  text-decoration: none!important;
  background: linear-gradient(180deg, #afdfff, #00ffcc);
  margin: 5px 2px!important;
  font-weight: 500!important;
}

.wp-block-post-excerpt__excerpt a, .entry-content.wp-block-post-content a {
  text-decoration: none!important;
}
.custom-buttom br {
  display: contents!important;
}


/*css Popup*/

.movie-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
  justify-items: center;
}

.movie-gallery .gallery-img {
  width: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.movie-gallery .gallery-img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


/* ===== SpreeD Heder ===== */
.my-columns{
  gap: 0px!important;
}



/* ===== Popup Overlay ===== */
#popup {
  position: fixed!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  margin: 0 !important;
  
  display: none; /* ซ่อนก่อน */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  
  /* คลุมพื้นหลัง */
  background: rgba(0,0,0,0.7);       /* ดำโปร่ง */
  backdrop-filter: blur(8px);        /* เบลอ */
  -webkit-backdrop-filter: blur(8px); /* Safari */
}

#popup .popup-inner {
  position: relative;
  width: 80%;
  max-width: 900px;
  
  background: #000;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}


#popup-content iframe {
  width: 100%;
  height: 575px;
  border: none;
  border-radius: 8px;
}

/* ปุ่มปิด */
#popup-close {
  position: absolute;
  top: -10px;
  right: -15px;
  font-size: 30px;
  background: #ff0000;
  color: #000;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#popup-close:hover {
  background: crimson;
  color: #fff;
  transform: rotate(90deg);
}


/**/
.head-cat-wrap{
  cursor: pointer;
}

/* Container ของ Columns */
.head-cat-wrap {
  display: flex !important;
  gap: 15px !important;              
  overflow-x: auto !important;        /* เลื่อนแนวนอน */
  scroll-behavior: smooth !important; 
  -webkit-overflow-scrolling: touch !important; /* smooth บน iOS */
  padding: 10px 0 !important;
  width: 100%;                        /* ต้องมี width เต็ม */
  box-sizing: border-box;
  padding: 10px 15px !important;  /* <-- เพิ่ม 15px ด้านซ้ายขวา */
  -webkit-tap-highlight-color: transparent; /* ปิดพื้นหลังตอนกดบนมือถือ */
  outline: none;  /* กันเส้นขอบโฟกัส */
  background: none; /* กัน background เด้ง */
  

}

/* ให้ scrollbar โชว์ในมือถือ */
.head-cat-wrap::-webkit-scrollbar {
  height: 10px !important;           
}
.head-cat-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #007f22, #00ed30); /* ลาย gradient */
  border-radius: 10px;
  border: 2px solid #fff; /* เงา/ช่องว่างรอบ thumb */
}




.head-cat-wrap::-webkit-scrollbar-track {
  background: #eee !important;       
}

/* คอลัมน์แต่ละอัน */
.head-cat-wrap .wp-block-column {
  flex: 0 0 calc(33.333% - 10px) !important; /* มือถือ 3 ช่อง */
  max-width: calc(33.333% - 10px) !important;
  min-width: 100px;                            /* ป้องกัน column เล็กเกินไป */
  text-align: center !important;
   border-radius: 8px;
}

/* Tablet */
@media (min-width: 768px) {
  .head-cat-wrap .wp-block-column {
    flex: 0 0 calc(20% - 10px) !important;   /* 5 ช่อง */
    max-width: calc(20% - 10px) !important;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .head-cat-wrap .wp-block-column {
    flex: 0 0 calc(10% - 10px) !important;   /* 10 ช่อง */
    max-width: calc(10% - 10px) !important;
  }
}

/* ป้องกัน Gutenberg กำหนด width 100% มาทับ */
.wp-block-columns.head-cat-wrap {
  display: flex !important;
  flex-wrap: nowrap !important;    /* บังคับไม่ให้ wrap */
  overflow-x: auto !important;
}


/*CSS สำหรับ active/focus มาทับ */
.head-cat-wrap .wp-block-column {
  
  transition: all 0.2s ease-in-out;
}


.custom-textpage {
  padding-top: 15px;
  
}
.head-cat-wrap p {
  padding-left: 0;
  padding-right: 0;

}

p{
  padding-left: 15px;
  padding-right: 15px;
}
h1,h2,h3,h4,h5,h6{
  padding-left: 15px;
  padding-right: 15px;
}


/* ครอบทุกชั้น */
.mighty-builders-navigation a,
.mighty-builders-navigation li a,
.mighty-builders-navigation span a {
  color: #ffffff !important;       /* สีปกติ */
  text-decoration: none !important; /* ปิด underline */
  transition: color 0.2s !important;
}

/* Hover */
.mighty-builders-navigation a:hover,
.mighty-builders-navigation li a:hover,
.mighty-builders-navigation span a:hover {
  color: #ff5100 !important;
}

/* Active ตาม URL */
.mighty-builders-navigation a.active,
.mighty-builders-navigation li a.active,
.mighty-builders-navigation span a.active {
  color: #ffcc00 !important;
}

/* ปิด outline/box-shadow เวลา focus */
.mighty-builders-navigation a:focus,
.mighty-builders-navigation li a:focus,
.mighty-builders-navigation span a:focus {
  outline: none !important;
  box-shadow: none !important;
  color: #ffcc00 !important;
}



/* ✅ สำหรับมือถือ */
@media (max-width: 768px) {
    .movie-gallery {
        justify-content: center; /* จัดรูปให้อยู่กลาง */
    }
}




        
.multi-gallery-tabs {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;           /* ป้องกัน wrap */
    overflow-x: auto;            /* เปิด scroll แนวนอน */
    -webkit-overflow-scrolling: touch; /* smooth บนมือถือ */
    scroll-behavior: smooth;
    padding: 10px 10px;
}

/* ปุ่มสวย มีเงา */
.multi-gallery-tabs button {
    flex: 0 0 auto;              /* ป้องกันปุ่มยืดตาม container */
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* เงา */
}

.multi-gallery-tabs button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.multi-gallery-tabs button.active {
    background: #eaff00;
    color: #000;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

/* Scrollbar สีรุ้ง */
.multi-gallery-tabs::-webkit-scrollbar {
    height: 8px;
    background: linear-gradient(45deg, #b0ad00ff, #eaff00ff); /* ลาย gradient */
}

.multi-gallery-tabs::-webkit-scrollbar-thumb {
 background: linear-gradient(45deg, #9d9800ff, #efe700ff); /* ลาย gradient */
    border-radius: 10px;
    
    
}

.multi-gallery-tabs::-webkit-scrollbar-track {
     background: #fff;
}

/* ป้องกัน Firefox scroll สีเทา */
.multi-gallery-tabs {
  /*  scrollbar-width: thin; */
    background: linear-gradient(45deg, #007f22, #00ed30); /* ลาย gradient */
}
    .movie-gallery-container { position: relative; width: 100%; min-height: 200px; }
    .movie-gallery {
        display:flex; flex-wrap:wrap; gap:15px;
        position:absolute; top:0; left:0; width:100%;
        transition: opacity 0.3s ease;
        opacity:0; pointer-events:none;
    }
    .movie-gallery.active { opacity:1; pointer-events:auto; position:relative; }
    .movie-gallery .gallery-item { width:150px; text-align:center; position:relative; overflow:hidden; border-radius:6px; }
    .movie-gallery .gallery-item img { width:100%; display:block; border-radius:6px; cursor:pointer; }

    .progress-overlay { position:absolute; bottom:-10px; left:0; width:100%; padding:2px 0 16px; text-align:center; }
    .progress-bar { width:100%; background:#eee; border-radius:3px; overflow:hidden; height:14px; }
    .progress-bar div { height:14px; }
    .progress-text { position:absolute; bottom:14px; left:0; width:100%; font-size:11px; text-align:center; font-weight:bold; }
    .progress-text.text-white { color:#fff; }
    .progress-text.text-dark { color:#111; }

    /* Popup */
    #popup { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.8); justify-content:center; align-items:center; z-index:9999; }
    #popup .popup-inner { position: relative; width:80%; max-width:900px; background:#000; padding:20px; }
    #popup-close { position:absolute; top:5px; right:10px; font-size:24px; color:#fff; cursor:pointer; }
