/* Hero Section */
.hero-section { position: relative; width: 100%; height: 326px; overflow: hidden; }
.hero-section img.hero_image { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-section::after { content: ""; position: absolute; top:0; left:0; width:100%; height:100%; background-color: rgba(0,0,0,0.5); z-index:2; }
.hero-text { position: absolute; top:50%; left:50%; transform: translate(-50%, -50%); color:#fff; font-size:32px; font-weight:bold; text-align:center; z-index:3; }

.EXPERIENCES_BX_line {
  display: -webkit-box;
  -webkit-line-clamp: 6;  /* จำนวนบรรทัดสูงสุด */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6em;
  font-weight: 100 !important;
  cursor: pointer;
  white-space: normal;
}

.EXPERIENCES_BX .title {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
.EXPERIENCES_BX span{
  height: 150px;
}

.fade-in { opacity:0; transform: translateY(30px); transition: opacity 1s ease-out, transform 1s ease-out; }
.fade-in.show { opacity:1; transform: translateY(0); }

/* Fullscreen Popup แบบ 2 คอลัมน์ */
.popup-overlay {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.8);
  display:none; justify-content:center; align-items:center; z-index:99999999999999999999;
}

.popup-content {
  position: relative;
  width: 90%;
  /* max-width: 1200px; */
  height: 80%;
  display: flex;
  background-color: #fff;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.popup-content img {
  width: 50%;
  height: 100%;
  /* object-fit: contain; */
  background-color: #fff;
  transition: all 0.3s ease;
}

.popup-text {
  width: 50%;
  padding: 30px 82px 30px 30px;
  overflow-y: auto;
  color: #000;
  font-size: 18px;
  line-height: 1.6em;
  white-space: normal; /* แสดงข้อความเต็ม */
}

/* Close Button */
.popup-close {
  position: absolute; top:20px; right:30px;
  font-size:40px; cursor:pointer; color:#000; font-weight:bold; z-index:20;
}

.popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;     
  color: #000;         
  cursor: pointer;
  user-select: none;
  padding: 5px;         
  z-index: 20;
  background-color: transparent;  
  border-radius: 0;              
}
.popup-arrow.left { left: 10px; }
.popup-arrow.right { right: 10px; }
@media screen and (max-width: 1300px) {
  .EXPERIENCES_BX span{
    opacity: 1;
  }
  .EXPERIENCES{
    padding: 0 10px;
  }
  .EXPERIENCES_BX.small{
    flex: 0 0 calc(33.333% - 4px);
  }
}
@media screen and (max-width: 1100px) {
  .EXPERIENCES_BX span{
    opacity: 1;
  }
  .EXPERIENCES{
    padding: 0 10px;
  }
  .EXPERIENCES_BX.small{
    flex: 0 0 calc(33.333% - 4px);
  }

  .popup-content {
    flex-direction: column;
    height: calc(100vh - 155px); /* สูงเต็มหน้าจอ เว้นขอบบนล่าง 20px */
    max-width: 95%;
    margin: 20px auto;
    border-radius: 10px;
  }
  .popup-content img {
    width: 100%;
    height: 100%; /* ครึ่งบนของ popup */
    /* object-fit: cover; */
  }
  .popup-text {
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.5em;
    height: 88%;
  }
  .popup-arrow {
    display: none; /* ซ่อนลูกศร */
  }
  .popup-close {
    top: 10px;
    right: 10px;
    font-size: 32px;
  }
}
@media screen and (max-width: 768px) {
  .EXPERIENCES_BX.small {
        flex: 0 0 calc(101.333% - 4px);
        height: 278px;
    }
}