:root {
  --full-size-width: 1920px;
  --text-size-80: 80px;
  /*100pt*/
  --text-size-45: 45px;
  --text-size-35: 35px;
  --text-size-20: 20px;
  --color-main: #78a5c5;
  --color-reserve-main: #6b94b1;
  --font-weight-300: 300;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: gray;
  display: flex;
  color: #fff;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* ฟอนต์สำหรับ h1, h2, h3, h4 */
h1,
h2,
h3,
h4 {
  font-family: 'Kanit', sans-serif;
  font-weight: 100;
  /* ExtraLight */
}

/* ฟอนต์สำหรับ p, span, div, a, li */
p,
span,
div,
a,
li {
  font-family: 'Kanit', sans-serif;
  font-weight: 100;
  /* Light */
}

 #nav {
  width: var(--full-size-width);
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav_row2 {
  background-color: #6894B1;
}
.nav_row2.fixed {
  background-color: #6894B1;
}

#hamburgerMenu,
#closeMenu {
  display: none;
}

#section1 {
  background-color: rgb(255, 255, 255);
  width: var(--full-size-width);
  height: auto;
}

.container_sec1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.container_headtext {
  display: flex;
  justify-content: center;
  margin: 40px;
}

.container_imgsec1 {
  display: flex;
  flex-direction: column;
}

.headtext_sec1 {
  font-size: var(--text-size-80);
  font-weight: var(--font-weight-300);
  color: #78A5C5;
}

.container_imgsec1_1,
.container_imgsec1_2 {
  display: flex;
  justify-content: center;
  gap: 20px;

}

.box_imgmr1,
.box_imgmr2,
.box_imgmr3,
.box_imgmr4,
.box_imgmr5,
.box_imgmr6 {
  margin: 10px;
  position: relative;
}

.imgmr {
  width: 400px;
  height: 350px;
  border-radius: 20px;
  object-fit: cover;
  cursor: pointer;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 98%;
  border-radius: 20px;
  pointer-events: none;
}

.text_show {
  position: absolute;
  top: 20px;
  /* เว้นระยะจากขอบบน */
  left: 10px;
  /* เว้นระยะจากขอบซ้าย */
  color: white;
  font-size: var(--text-size-25);
  text-align: left;
  padding: 5px 10px;
  border-radius: 5px;
  /* เพิ่มการโค้งมนให้กับพื้นหลังข้อความ */
}

.dot-container {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: none;
}



/*light box*/
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  width: 70%;
  height: auto;
  background-color: #78a5c5;
  /* margin: 250px auto; */
  padding: 10px;
  display: flex;
  justify-content: space-between;
  position: relative;
  border-radius: 20px;
  align-items: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  /* เพิ่มเงา */
}

.lightbox-left {
  width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main-image img {
  width: 100%;
  height: 390px;
}

.small-images {
  display: flex;
  justify-content: space-between;
}

.small-images img {
  width: 32%;
  cursor: pointer;
  height: 150px;
  object-fit: cover;
}

.lightbox-right {
  width: 50%;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.lightbox-main-image {
  width: 100%;
  height: 60%;
  margin-bottom: 10px;
  border-radius: 10px;
  object-fit: cover;
}

.lightbox-thumbnails {
  display: flex;
  width: 100%;
  justify-content: center;
}

.lightbox-thumbnail {
  width: 30.3%;
  height: 200px;
  cursor: pointer;
  border-radius: 10px;
  margin: 10px 10px 0px;
  object-fit: cover;
}

.lightbox-thumbnail_1 {
  width: 100%;
  height: 200px;
  cursor: pointer;
  border-radius: 10px;
  margin: 10px 10px 0px;
  object-fit: cover;
}

.lightbox-thumbnail_2 {
  width: 48%;
  height: 200px;
  cursor: pointer;
  border-radius: 10px;
  margin: 10px 10px 0px;
  object-fit: cover;
}

.lightbox-headtext1 {
  font-size: 50px;
  margin: 10px 0;
  text-align: start;
}

.lightbox-headtext2 {
  font-size: var(--text-size-45);
  margin: 20px 0 0px;
  text-align: start;
  font-weight: 300;
}

.lightbox-headtext3,
.lightbox-headtext4 {
  font-size: var(--text-size-35);
  margin: 20px 0 0px;
  text-align: start;
  font-weight: 200;
}

.lightbox-infoText1,
.lightbox-infoText2 {
  font-size: var(--text-size-25);
  width: 90%;
  margin-bottom: 10px;
  text-align: start;
}

/* button {
  color: #78a5c5;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: #ffffff;
  border: 2px solid #78a5c5;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
  color: #ffffff;
  background-color: #78a5c5;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
} */

/* .container_arrow{
  width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(300px);
} */

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  border-radius: 5px;
  /* ทำมุมของกรอบมนเล็กน้อย */
  padding: 5px;
  /* เพิ่มพื้นที่รอบๆไอคอน */
}

.close-iconmr {
  width: 30px;
  /* กำหนดขนาดของไอคอน */
  height: 30px;
  cursor: pointer;
  background-color: transparent;
  border: 2px solid rgb(255 255 255);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  padding: 5px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

}

.container_right {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  width: 100%;
  height: 10%;
}

#pagination-info {
  font-size: 30px;
  color: #fff;
}
.pagination button {
  color: #78a5c5;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: #ffffff;
  border: 2px solid #78a5c5;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination button:hover {
  color: #ffffff;
  background-color: #78a5c5;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
}

.pagination button:disabled {
  background-color: #ccc;
}

.lightbox-thumbnail {
  opacity: 0.4;
  transition: opacity 0.8s ease;
  cursor: pointer;
}


.lightbox-thumbnail.active {
  opacity: 1;
}

.lightbox-thumbnail_1 {
  opacity: 0.4;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.lightbox-thumbnail_1.active {
  opacity: 1;
}

.lightbox-thumbnail_2 {
  opacity: 0.4;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.lightbox-thumbnail_2.active {
  opacity: 1;
}


@media (min-width: 1200px) and (max-width: 1919px) {

  .nav_row1,
  .nav_row2 {
    width: 100%;
  }

  /* Media Query สำหรับหน้าจอมือถือ */
  #nav {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  #section1 {
    width: 100%;
  }



  .lightbox-headtext1 {
    font-size: 36px;
    margin: 10px 0;
    text-align: start;
  }

  .lightbox-headtext2 {
    font-size: var(--text-size-35);
    margin: 20px 0 0px;
    text-align: start;
    font-weight: 300;

  }

  .lightbox-headtext3,
  .lightbox-headtext4 {
    font-size: var(--text-size-25);
    margin: 15px 0 5px;
    text-align: start;
    font-weight: 200;
  }

  .lightbox-infoText1,
  .lightbox-infoText2 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: start;
  }

  .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    height: 10%;
  }

  .nav_col2_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 45%;
  }
}

@media (max-width: 1199px) {

  .nav_row1,
  .nav_row2 {
    width: 100%;
  }

  /* Media Query สำหรับหน้าจอมือถือ */
  #nav {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav_row1 {
    width: 100%;
    height: auto;
    justify-content: center;
    padding: 10px 20px;
    background-color: #78a5c5;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav_col1 {
    width: 0px;
  }

  .logomain {
    width: 100px;
    height: 70px;
  }

  .nav_col2 {
    width: auto;
    justify-content: flex-end;
  }

  .nav_col2_container {
    width: auto;
    display: none;
  }

  /* ซ่อน navbar โดยค่าเริ่มต้น */
  .nav_row2 {
    display: none;
    background-color: #78a5c5;
    /* สีพื้นหลังของ navbar */
    width: 100%;
  }


  .nav_row2.show {
    display: block;
    /* แสดงเมนูเมื่อถูกคลิก */
  }

  .nav_row2_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255);
    width: 100%;
  }

  .containernav1 {
    width: 90%;
    display: flex;
    flex-direction: column;
  }

  .lg1 {
    transform: translateX(-5px);
  }

  .dropdown-content {
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);

  }

  /* แสดง navbar เมื่อมีคลาส show-nav */
  .show-nav {
    display: block;
  }

  /* ปุ่ม hamburger สำหรับเปิดเมนู */
  .hamburger {
    font-size: 30px;
    cursor: pointer;
    color: white;
    display: inline-block;
    width: 20px;
    height: 20px;
  }

  /* ปุ่ม close สำหรับปิดเมนู (ซ่อนปุ่มนี้ตอนแรก) */
  .close-button {
    font-size: 30px;
    cursor: pointer;
    color: white;
    display: none;
    width: 20px;
    height: 20px;
  }

  /* แสดงปุ่ม close เมื่อเมนูถูกแสดง */
  .show-nav .close-button {
    display: inline-block;
  }

  /* ซ่อนปุ่ม hamburger เมื่อเมนูถูกแสดง */
  .show-nav .hamburger {
    display: none;
  }

  /* ขนาดและตำแหน่งของปุ่มเปิดเมนู */
  #hamburgerMenu {
    width: 20px;
    height: 20px;
    top: 40px;
    right: 5%;
    position: absolute;
    cursor: pointer;
    display: block;
  }

  /* ขนาดและตำแหน่งของปุ่มปิดเมนู (ซ่อนตอนแรก) */
  #closeMenu {
    width: 20px;
    height: 20px;
    top: 40px;
    right: 5%;
    position: absolute;
    cursor: pointer;
    display: none;
  }


  .show-nav .hamburger {
    display: none;
    /* ซ่อน hamburger เมื่อแสดงเมนู */
  }


  .container_headtext {
    margin: 20px;
  }

  .headtext_sec1 {
    font-size: 36px;
  }

  /* Calculator Icon Box */
  .calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
  }

  .calculator-container .cal {
    width: 50px;
    height: 50px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
  }

  .cal img {
    width: 30px;
    height: 30px;
  }

  .cal img {
    width: 15px;
    height: auto;
    filter: brightness(0.600);
  }

  #section1 {
    width: 100%;
    height: auto;
  }

  /* รูปแบบการซ่อนและแสดงสไลด์ */
  /* ซ่อนสไลด์ที่ไม่ active */
  .container_imgsec1_1,
  .container_imgsec1_2 {
    display: none;
  }

  .container_imgsec1_1.active,
  .container_imgsec1_2.active {
    display: flex;
  }

  /* รูปแบบ dot */
  .dot-container {
    text-align: center;
    margin-top: 10px;
  }

  .dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    border: 1px solid #78a5c5;
    /* กรอบสีฟ้า */
    background-color: transparent;
    /* ข้างในเป็นสีใส */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
  }

  .dot.active {
    background-color: #78a5c5;
    /* สีฟ้าเมื่อ active */
    border: none;
    /* เอากรอบออกเมื่อ active */
  }


  /* ทำให้แนวตั้งแบบ 3 รูป */
  .container_imgsec1_1,
  .container_imgsec1_2 {
    flex-direction: column;
    justify-content: space-between;
  }

  .box_imgmr1,
  .box_imgmr2,
  .box_imgmr3,
  .box_imgmr4,
  .box_imgmr5,
  .box_imgmr6 {
    margin-bottom: 20px;
    display: flex;
    position: relative;
    justify-content: center;
  }

  .imgmr {
    width: 90%;
    /* ทำให้รูปภาพมีความกว้างเต็มหน้าจอ */
    height: auto;
    /* ความสูงปรับอัตโนมัติให้คงสัดส่วน */
  }

  .text_show {
    position: absolute;
    top: 10px;
    /* เว้นระยะจากขอบบน */
    left: 26px;
    transform: none;
    /* ยกเลิกการแปลงที่อาจทำให้ข้อความผิดตำแหน่ง */
    width: auto;
    /* ปรับขนาดข้อความให้เหมาะสม */
    font-size: 20px;
    /* ขนาดตัวอักษรที่เล็กลงเพื่อให้เหมาะกับหน้าจอขนาดเล็ก */
  }

  .close {
    top: 5px;
    right: 5px;
  }

  .lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    height: 80%;
  }

  .lightbox-left {
    width: 100%;
    height: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .lightbox-main-image {
    width: 100%;
    height: 70%;
    margin-bottom: 3px;
    border-radius: 10px;
    object-fit: cover;
  }

  .lightbox-thumbnails {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 30%;
  }

  .lightbox-thumbnail {
    width: 31.3%;
    height: 100%;
    margin: 5px 3px 0px;
  }

  .lightbox-thumbnail_1 {
    width: 100%;
    height: 100%;
    margin: 5px 3px 0px;
  }

  .lightbox-thumbnail_2 {
    width: 48%;
    height: 100%;
    margin: 5px 3px 0px;
  }

  .lightbox-right {
    width: 100%;
    height: 50%;
    padding-left: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
  }

  .lightbox-headtext1 {
    font-size: 30px;
    margin: 20px 0px 0px;
  }

  .lightbox-headtext2 {
    font-size: 18px;
    text-align: start;
  }

  .lightbox-headtext3,
  .lightbox-headtext4 {
    font-size: 16px;
    margin: 0px 0 0px;
    text-align: start;
    font-weight: 200;

  }

  .lightbox-infoText1,
  .lightbox-infoText2 {
    font-size: 13px;
    margin-bottom: 10px;
    text-align: start;
    width: 100%;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;

  }

  .pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
    height: 100%;
    flex-direction: row;
    align-items: center;
  }

  .pagination button {
    width: 30px;
    height: 30px;
  }

  .close-iconmr {
    width: 25px;
    height: 25px;
  }

}