/* ให้ JS คุมการเลื่อนเอง */
html{
  scroll-behavior: auto;
}

/* Section เต็มจอ */
.section{
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.video-wrap{
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* สำคัญ */
}

#myVideo{
  height: 100%;
  width: auto;      /* ให้กว้างตามสัดส่วนจริง */
  object-fit: initial; /* หรือเอาออกไปเลย */
  transform: scaleX(1.19);
}


/* cursor */
body{
  margin: 0;
  cursor: url("../img/cursor.png"), auto;
  background-color: #ffffff; /* สีเขียว */
}

a, button, input, img{
  cursor: url("../img/cursor.png") 0 0, pointer !important;
}

/* ปุ่มลอยซ้าย */
.map-point-0{
  position: fixed;
  left: 0px;
  top: 150px;
  width: 200px;
  z-index: 99999;
}
.map-point-1{
  position: fixed;
  left: 0px;
  top: 320px;
  width: 200px;
  z-index: 99999;
}

.map-point-2{
  position: fixed;
  left: 0px;
  top: 390px;
  width: 200px;
  z-index: 99999;
}
.map-point-3{
  position: fixed;
  left: 0px;
  top: 460px;
  width: 200px;
  z-index: 99999;
}
.map-point-4{
  position: fixed;
  left: 0px;
  top: 530px;
  width: 200px;
  z-index: 99999;
}
.map-point-5{
  position: fixed;
  left: 0px;
  top: 600px;
  width: 200px;
  z-index: 99999;
}
.map-point-6{
  position: fixed;
  left: 0px;
  top: 670px;
  width: 200px;
  z-index: 99999;
}


/* เอฟเฟกต์ส่ายเอียง */
@keyframes swing {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-3deg); }
  50%  { transform: rotate(3deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* ใช้กับ img ของคุณโดยตรง */
.map-point-0:hover,
.map-point-1:hover,
.map-point-2:hover,
.map-point-3:hover,
.map-point-4:hover,
.map-point-5:hover,
.map-point-6:hover {
  animation: swing 0.4s infinite;
}


/* update */
.s-update{
  display: flex;
  justify-content: center;  /* กลางแนวนอน */
  align-items: center;      /* กลางแนวตั้ง */
}

.update-img{
  width: 100%;
  height: auto;             /* สำคัญ: ไม่ต้อง 100% */
  object-fit: contain;
  display: block;
}

/* สำคัญ: ห้ามกำหนด width/height ให้ update-box */
.update-box{
  position: relative;
  display: contents; /* ตัวนี้ทำให้ div ไม่ไป “ครอบ” layout จนบีบรูป */
}

/* ต้องมีตัวอ้างอิงตำแหน่งให้ absolute (ใช้ section ได้) */
.s-update{
  position: relative;
}

/* ซ้อนทับ */
.angeling{
  position: absolute;
  top: 650px;
  left: 1530px;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

