body {
  font-family: 'Adam';
  font-family: 'Prompt', sans-serif;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
}

.sticky-top{
  top: 0;
  transition: top 0.8s ease-in-out; 
  opacity: 90%;
}

.navbar {
background-color: #000000;

}

.navbar .nav-link {
color:  rgb(202, 220, 215) !important;
font-weight: 600;
font-size: 16px;

}

.navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
background-color: rgb( 15, 13, 13);
display: block;
border: none !important;
border-radius: 0;
z-index: 3000;
}

.navbar-nav .dropdown-item {
  color:  rgb(202, 220, 215) !important;
  font-weight: 600;  
}
.navbar-nav .dropdown-item:hover {
  color:  #9B1E2E  !important;
  background-color: transparent;
}
.dropdown-item.active, .dropdown-item:active {
  color: #9B1E2E  !important;
  text-decoration: none;
  background-color: transparent !important;
}

.navbar-toggler {
 border: none !important;
 color: transparent !important; 
}
.nav-pills .nav-link {
  border-radius: 25px; 
  font-weight: 400;
  color: #0F0D0D;
  border: solid 1px #0F0D0D;
  margin-right: 20px;
}
.nav-pills .nav-link.active {
background-color: #0F0D0D;
}

/* hover line menu */
.hoverelement > a{
  position: relative;
  text-decoration: none;
}

.hoverelement > a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  margin-bottom: -2px;
  background-color: #9B1E2E;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.hoverelement > a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.hoverelement:hover .dropdown-menu {
  display: block;
}

/* burger */
#nav-icon3 {
  width: 30px;
  height: 30px;
  position: relative;
  margin: 10px auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}
#nav-icon3 span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 5px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon3 span:nth-child(1) {
  top: 0px;
}

#nav-icon3 span:nth-child(2),#nav-icon3 span:nth-child(3) {
  top: 10px;
}

#nav-icon3 span:nth-child(4) {
  top: 20px;
}

#nav-icon3.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

#nav-icon3.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}
/* burger */

.breadcrumb {
border: solid 1px #0F0D0D;
}

.breadcrumb-item a {
text-decoration: none; 
color: rgb( 15, 13, 13); 
}

.breadcrumb .breadcrumb-item {
color:  rgb( 15, 13, 13) !important;
text-decoration: none !important;
}

/* nav pill */
@media only screen and (max-width: 576px) {
  .nav-pills .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
  }
}



::-webkit-scrollbar { 
  display: none; 
}

#container, #works, #page, #about {
height: 100vh;
width: 100%;
position: relative;
}

#container .back-img {
width: 100%;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
position: absolute;
z-index: 1;
font-family: 'Adam';
color: #000000;
-webkit-text-stroke: 2px #000000; /* ขอบขาว */
}


#works .second-img {
width: 100%;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
position: absolute;
z-index: 1;
font-family: 'Adam';
color: #000000;
-webkit-text-stroke: 2px #000000; /* ขอบขาว */
}

#page .third-img {
width: 100%;
height: 100%;
/* // background-color: red; */
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
position: absolute;
z-index: 1;
font-family: 'Adam';
color: #000000;
-webkit-text-stroke: 2px #000000; /* ขอบขาว */
}


/* #container .title, #works .title, #page .title, #about .title {
position: relative;
z-index: 2;
width: 100%;
height: 100%;
text-align: center;
display: flex;
justify-content: center;
align-items: center;

h2 {
  color: white;
  font-family: helvetica;
  font-weight: 700;
  font-size: 70px;
  letter-spacing: 2px;
}
} */
.back-img, .second-img, .third-img, .fourth-img {
background-attachment: fixed;
}

/* welcome Text */
.hidden-text {
opacity:0;
}
.console-container {

font-size:55px;
font-weight: bold;
height:750px;
display:block;

color:rgb( 15, 13, 13) ;
z-index: 200;
}
.console-underscore {
display:inline-block;
position:relative;
left:10px;
}

/* welcome Text */

/*poster*/
.responsive-img {
  max-width: 70%; /* ปรับขนาดภาพให้ไม่เกินความกว้างของหน้าจอ */
  height: auto; /* รักษาอัตราส่วนของภาพให้เหมาะสม */
  display: block; /* ป้องกันภาพที่เป็น inline จากการมี margin ข้างใต้ */
  margin: 0 auto; /* จัดกึ่งกลางภาพ */

}

/* ถ้าต้องการให้มีขนาดเล็กลงอีก */
.image-container {
  width: 80%; /* ควบคุมขนาดภาพที่เล็กลงโดยใช้ container */
  max-width: 500px; /* จำกัดขนาดสูงสุดของภาพใน container */
  margin: 0 auto; /* จัดให้อยู่กลางหน้าจอ */
}

/* bubble */
#background-animation-container {
background-color: #fff;
height: 100%;
left: 0;
overflow: hidden;
position: absolute;
top: 0;
width: 100%;
z-index: -1000;
}
.ani-bubble {
background-color: #fff;
border-radius: 75px;
height: 10px;
position: absolute;
top: 100%;
width: 150px;

-webkit-animation: bubblemove 5s linear infinite;
-moz-animation: bubblemove 5s linear infinite;
animation: bubblemove 5s linear infinite;
}

@-webkit-keyframes bubblemove {
from { top: 100%; }
to   { top: -600px; }
}
@-moz-keyframes bubblemove {
from { top: 100%; }
to   { top: -600px; }
}
@keyframes bubblemove {
from { top: 100%; }
to   { top: -600px; } 
}
/* bubble */


/* branch */

.description {
opacity: 0;
font-size: 18px;
color: #fff;
will-change: transform;
-webkit-transform: scale(0.1);
transform: scale(0.1);
-webkit-transition: all 0.2s ease;
transition: all 0.2s ease;
}
.body-branch {
background-color: #3d3837;
}

.h2-custom {
pointer-events: none;
}

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

.card {
  position: relative;
  width: 700px;
  height: 250px;
  background-color: #fff;
  overflow: hidden;
  border-color: #3d3837;
  border-radius: 0;
  box-shadow: 6px 6px 3px rgba(0, 0, 0, 0.2);
  /* margin-bottom: 0px; */

  &:before {
    content: "";
    z-index: 99;
    position: absolute;
    top: -10px;
    left: 32px;
    display: block;
    width: 16px;
    height: 18px;
    border-radius: 16px;
    background-color: #3d3837;
  }
  &:after {
    content: "";
    z-index: 99;
    position: absolute;
    bottom: -10px;
    left: 32px;
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 16px;
    background-color: #3d3837
  }
  ul {
    z-index: 99;
    position: absolute;
    left: 39px;
    top: 5px;
    list-style-type: none;
    li {
      width: 3px;
      height: 3px;
      border-radius: 2px;
      margin: 6px 0;
      background-color: #CAD3D7;
    }
  }
  h2 {
    z-index: 99;
    font-family: "Poppins", sans-serif;
    position: absolute;
    top: 5px;
    /* bottom: 0; */
    right: 310px;
    font-size: 45px;
    font-weight: 700;
    color: #fff;
    text-shadow: 5px 5px 4px rgba(0, 0, 0, 0.5);
  }

  .fa-arrow-right {
    z-index: 100;
    position: absolute;
    right: 75px;
    bottom: 25px;
    font-size: 40px;
    cursor: pointer;
  }
  p {
    z-index: 99;
    position: absolute;
    top: 20px;
    right: 260px;
    color: #333;
    opacity: 0.7;
    font-size: 14px;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }
  .pic {
    z-index: 0;
    width: 400px;
    height: 250px;
    background-image: url("../images/branch/art1.jpg");
    background-size: 100% 100%;
    filter: grayscale(100%);
  }

  &:hover i {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 30px;
    height: 30px;
    background-color:  #000000;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    /* mix-blend-mode: hard-light; */

    i {
      font-size: 3rem;
    }
  }

  &:hover button {
    transform: scale(16.5);
  }

  &:hover p {
    color: #000000;
  }

  &:hover .pic {
    filter: grayscale(0);
  }
}

.card2 {
  .pic {
    background-image: url("../images/branch/img3.jpg");
  }
  button {
    background-color: #000000;
  }
}

.card3 {
  .pic {
    background-image: url("../images/branch/img14.jpg");
  }
  button {
    background-color: #000000;
  }
}

}
.text-branch {
  /* font-family: 'Poppins', sans-serif; */
  font-size: 80px; 
  font-weight: 550;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5); 
  color: #ffffff;
  align-items: center;
  display: flex;
}
.text-branch hr {
  margin: 0;
  flex: 1;
  height: 3px; 
  margin-left: 30px;
  opacity: 0.7;
  border: none;
  background-color: #ffffff;
}

/* branch */

/* text-video */
.body-video {
display: flex;
overflow: hidden;
padding-top: 100px;
}   

.perspective-text {
color: #9B1E2E;
/* font-family: Arial; */
font-size: 55px;
font-weight: 900;
letter-spacing: -2px;
text-transform: uppercase;
}

.perspective-line {
position: relative;
height: 50px;
overflow: hidden;
position: relative;

p {
  margin: 0;
  height: 50px;
  line-height: 50px;
  transition: all 0.5s ease-in-out;
}
}

.perspective-line:nth-child(odd) {
transform: skew(60deg, -30deg) scaleY(0.667);
}

.perspective-line:nth-child(even) {
transform: skew(0deg, -30deg) scaleY(1.55);
}

.perspective-line:hover p{
transform: translate(0, -50px);
}

.perspective-line:nth-child(1) {
left: 29px;
}

.perspective-line:nth-child(2) {
left: 58px;
}

.perspective-line:nth-child(3) {
left: 87px;
}

.perspective-line:nth-child(4) {
left: 116px;
}

.perspective-line:nth-child(5) {
left: 145px;
}
/* text-video */


/* carousel */
.carousel-item img {
height: 600px; 
object-fit: cover; 
}
/* carousel */


/* performance */
.text-title {
position: relative;
color: transparent;
font-weight: bold;
font-family: 'Adam'; 
font-size: 90px;
-webkit-text-stroke: 3px #9B1E2E;
letter-spacing: 15px;
line-height: 1.2;
margin: 3; 
z-index: 2;
display: flex;
align-items: center;
animation: colorChange 5s infinite alternate;
text-shadow: 5px 10px 4px rgba(0, 0, 0, 0.212);
}

@keyframes colorChange {
0% {
  color: #9B1E2E;
}
50% {
  color: #fff; 
}
100% {
  color: #9B1E2E;
}
}
.text-title span {
display: inline-block;
animation: colorChange 8s infinite alternate;
}

.text-title hr {
flex: 1;
height: 4px;
margin-left: 10px;
opacity: 0.7;
border: none;
background-color: #9B1E2E 
}

@media (max-width: 768px) {
.text-title {
  font-weight: 700 !important;
  font-size: 8vw; 
  letter-spacing: 5px;
  -webkit-text-stroke: 1px #9B1E2E;
}
.console-container {
  font-size:40px;
  height:720px;
}
.ani-bubble {
  border-radius: 20px;
  height: 10px;
  top: 100%;
  width: 50px;
}
.navbar p {
  font-size: 24px !important; 
}


.navbar-brand img {
  max-width: 50px !important;  
}

}
/* performance */

@media (max-width: 575.98px) { 
.btn {
font-size: 16px!important;
padding: 1.5rem!important;
}
.console-container {
font-size:30px;
height:500px;
}
.ani-bubble {
border-radius: 10px;
height: 5px;
top: 100%;
width: 50px;
}
}

@media (max-width: 576px) {
.navbar p {
  font-size: 16px !important; 
}
.nav-pills .nav-link {
 font-size: 10px !important;
}

.navbar-brand img {
  max-width: 48px !important;  
}

}

/* black and white */
.grayscale-image {
filter: grayscale(100%);
}

.grayscale-image:hover {
transition: filter 0.5s ease;
filter: none; 

}

/* GALLERY */

.textstyle1 {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 80px;
  font-weight: 550;
  letter-spacing: -11px;
  margin-bottom: 0;
  padding-left: 3rem !important;
  padding-top: 3rem !important;
  vertical-align: middle;
  color: #0F0D0D;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3); 
}

.textstyle2 {
  font-style: oblique 90deg;
  font-family: 'Adam';
  font-size: 36px;
  font-weight: bold;
  color: #0F0D0D;
  letter-spacing: 15px; 
  margin-top: -30px;
  -webkit-text-stroke: 1px;
  margin-left: 120px;
  text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.3); 
  padding-left: 3rem !important;
}

.custom-hr {
  display: inline-block;
  border: none;
  border-top: 3px solid black;
  opacity: 1;
  width: calc(50% - 10px); 
  margin-top: -10px;
  margin-bottom: 0;
}

.creativetext {
  position: fixed;
  top: 300px !important;
  left: 10%;
  width: 100%;
  transform: translateX(-50%);
  z-index: -1;
}

.artiststype {
  position: relative;
  top: 300px !important;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  background-color: #0f0d0d15;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}




@keyframes wave {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px); 
  }
  100% {
    transform: translateY(0);
  }
}

.textstyle1 {
  animation: wave 1.8s infinite;
}

.textstyle2 {
  animation: wave 1.5s infinite; 
  animation-delay: 0.5s; 
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  width: 100%;
  padding: 0 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.item {
  margin-top: 2rem;
  filter: grayscale(100%);
  transition: all 0.35s;
}

.item:hover {
  filter: none;
  transform: scale(1.10) !important;
}

.polaroid > img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: block;
}

.caption {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 2em;
}

/*  iPad */
@media (max-width: 1440px) {
  .wrapper {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 1.5rem;
  }

  .textstyle1 {
    font-size: 50px;
  }

  .textstyle2 {
    font-size: 45px;
  }

  .custom-hr {
    width: 40%;
  }
}

/*  iPhone */
@media (max-width: 768px) {
  .wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns บนมือถือ */
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .item {
    width: 100%; /* ให้เต็ม cell ของ grid */
    margin-top: 1rem;
  }

  .textstyle1 {
    display: inline-block;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -7px;
    margin-bottom: 0;
    padding: 0;
  }

  .textstyle2 {
    font-style: oblique 90deg;
    font-family: 'Adam';
    font-size: 40px;
    font-weight: bold;
    color: #0F0D0D;
    letter-spacing: 15px; 
    margin-top: -20px !important;
    margin-left: 0px !important;
  }

  .describe {
    font-size: 12px !important;
  }

  .custom-hr {
    display: inline-block; 
    border: none;
    border-top: 3px solid black; 
    opacity: 1;
    width: calc(30% - 10px); 
  }

  .creativetext {
    position: fixed;
    top: 350px !important;
    left: 0 !important;
    width: 100%;
    transform: translateX(-50%);
    z-index: -1;
  }
}



/* Artists */
.imageartists  {
    aspect-ratio: 1;
    object-fit: cover;
    width: 70%;
    max-height: 80vh;
    display: block;
    object-position: center top; /* ปรับตำแหน่งของรูปภาพให้อยู่ข้างบน */
}
.artistname {
  font-style: oblique 90deg;
  font-family: 'Adam';
  font-size: 40px ;
  font-weight: bold;
  color: #0F0D0D;
  letter-spacing: 7px;
  -webkit-text-stroke: 1px;
  text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.3); 
}
.artist-list{
  padding: 5em;
}
.artist-list a {
  display: block;
  font-size: 36px; /* เพิ่มขนาดตัวอักษรของลิงค์ */
  margin-bottom: 0.5em; /* เพิ่มช่องว่างด้านล่างของลิงค์ */ 
  font-family: 'Adam';
  font-weight: bold;
  color: #0F0D0D;
  -webkit-text-stroke: 2px;
  /* text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.3);  */
}
.artist-list p {
  font-size: 32px; /* เพิ่มขนาดตัวอักษรของลิงค์ */
  text-indent: 2em;
  color: #9B1E2E;
  font-weight: 500;
  display: none;
}
.artist-list a:hover + p {
  display: block;
}
.artwork-img {
  width: 80%;        
  height: auto;       
  display: block;
  margin: 0 auto 20px auto;
}

.text-container {
  max-height: 300px;
  overflow: hidden;
  position: relative;
  color: #0F0D0D;
  text-indent: 2.5em;
}

.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0000003e);
}

#toggleButton {
  color: #0F0D0D;
  font-weight: bold;
}

/*ipad*/
@media (max-width: 1200px) {
  .imageartists  {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  max-height: 100vh;
  display: block;
  object-position: center top; /* ปรับตำแหน่งของรูปภาพให้อยู่ข้างบน */
  }
  .artistname {
    font-style: oblique 90deg;
    font-family: 'Adam';
    font-size: 25px ;
    font-weight: bold;
    color: #0F0D0D;
    letter-spacing: 7px;
    -webkit-text-stroke: 1px;
    text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.3); 
  }
}

/*  iPhone */
@media (max-width: 768px) {
  .artistname {
    font-style: oblique 90deg;
    font-family: 'Adam';
    font-size: 20px;
    font-weight: bold;
    color: #0F0D0D;
    letter-spacing: 5px;
    -webkit-text-stroke: 1px;
    text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.3); 
  }
  .custom-hr {
    display: inline-block;
    border: none;
    border-top: 3px solid black; 
    opacity: 1;
    width: calc(50% - 10px);
    margin-left: 50px;
  }
  .firstname {

  padding-top: 30px;
   /* margin-left: 50px; */
  }
  .lastname {
    /* margin-left: 120px; */
  }
  .descripartist p {
    font-size: 16px !important;
  }

  .textstyle1 {
    display: inline-block;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -7px;
    margin-bottom: 0;
    padding: 0;
  }
  
  .textstyle2 {
    font-style: oblique 90deg;
    font-family: 'Adam';
    font-size: 25px;
    font-weight: bold;
    color: #0F0D0D;
    letter-spacing: 5px;
    margin-top: 20px !important; 
    margin-left: 0px !important;
  }
  .imageartists  {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    max-height: 100vh;
    display: block;
    object-position: center top; /* ปรับตำแหน่งของรูปภาพให้อยู่ข้างบน */
    }
    .artist-list{
      padding: 1em;
    }
    .artist-list a {
      display: block;
      font-size: 16px; /* เพิ่มขนาดตัวอักษรของลิงค์ */
      margin-bottom: 0.5em; /* เพิ่มช่องว่างด้านล่างของลิงค์ */
      font-family: 'Adam';
      font-weight: bold;
      color: #0F0D0D;
      -webkit-text-stroke: 1px;
 
    }
    .artist-list p {
      font-size: 14px; /* เพิ่มขนาดตัวอักษรของลิงค์ */
      text-indent: 2em;
      color: #9B1E2E;
      font-weight: 500;
    }
}


.descripartist p {
  font-size: 20px;
}

.creativetext2 {
  position: fixed; 
  left: 10%;
  width: 100%;
  transform: translateX(-50%);
  z-index: -1;
}

.imageartwork {
  width: 400px;
}
.artwork {
  background-color: #0f0d0d15;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* Artists End */



/* Detail Page */
.title_text{
  font-size:80px;
  font-family: 'Kanit' ,sans-serif;
  font-weight: 600;
  letter-spacing: -7px;
  margin-bottom: 0;
  padding: 0;
}
.title_text2{
  display: inline-block;
  font-size: 120px;
  font-weight: bold;
  font-style: oblique 90deg;
  font-family: 'Adam';
  letter-spacing: -7px;
  line-height: 1;
  text-align: center;
  -webkit-text-stroke: 2px #9B1E2E;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0;
  padding: 0;
}
.title_textunder{
  font-style: oblique 90deg;
  font-family: 'Adam';
  font-size: 25px;
  font-weight: bold;
  color: #0F0D0D;
  letter-spacing: 15px;
}
.grid-wrapper > div {
display: flex;
justify-content: center;
align-items: center
}
.grid-wrapper > div > img {
width: 100%;
height: 100%;
object-fit: cover;
}

.grid-wrapper {
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-auto-rows: 200px;
grid-auto-flow: dense;
}
.grid-wrapper .wide {
grid-column: span 2;


}
.grid-wrapper .tall {
grid-row: span 2;
}

@media only screen and (min-width: 1025px) {
  .img-background {
    position: absolute; 
    top: 30px; left: 0; 
    z-index: -2; width: 100%; 
    height: 100%;
  }
  .img-background2 {
    position: absolute; 
    top: 350px; right: 
    100px; z-index: -2; 
    width: 100%; 
    height: 100%; 
    object-fit: fit ; 
    opacity: 50%;
  }
}

@media only screen and (max-width: 1024px) {
  .grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 150px;
    grid-gap: 10px;
  }
  .title_text {
    font-size: 6vw; 
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    letter-spacing: -0.5vw; 
    
  }
  .title_text2 {
    display: inline-block;
    font-size: 8vw;
    font-weight: bold;
    font-style: oblique 90deg;
    font-family: 'Adam';
    letter-spacing: -0.7vw; 
    line-height: 1;
    text-align: center;
    -webkit-text-stroke: 0.2vw #9B1E2E; 
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .title_textunder {
    font-style: oblique 90deg;
    font-family: 'Adam';
    font-size: 2.5vw; 
    font-weight: bold;
    color: #0F0D0D;
    letter-spacing: 1.5vw; 
  }
  .img-background {
    position: absolute;
    top: 300px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.5;
    z-index: -1; 
  }
  .img-background2 {
    position: absolute;
    top: 350px;
    right: 50px;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: -1; 
  }
}

@media only screen and (max-width: 768px) {
  .grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-auto-rows: 100px;
    grid-gap: 5px;
  }

  .title_text {
    font-size: 5vw; 
    letter-spacing: -0.3vw;
  }

  .title_text2 {
    font-size: 7vw; 
    letter-spacing: -0.3vw; 
  }

  .title_textunder {
    font-size: 2vw; 
    letter-spacing: 1vw; 
  }
 .contentbox h4{
  font-size: 18px !important;
 }
 .contentbox a{
  font-size: 12px !important;
 }
 .contentbox p{
  font-size: 14px !important;
 }
 .smallcontent {
  font-size: 12px !important;
 }
 .img-background {
  position: absolute;
  top: 300px;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.5; /* เปลี่ยนค่า opacity ตามที่ต้องการ */
  z-index: -1; /* ย้ายระดับ z-index ไปที่ -1 เพื่อให้ส่งไปไว้หลัง */
}
.img-background2 {
  position: absolute;
  top: 350px;
  right: 50px;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  opacity: 0.5; /* เปลี่ยนค่า opacity ตามที่ต้องการ */
  z-index: -1; /* ย้ายระดับ z-index ไปที่ -2 เพื่อให้ส่งไปไว้หลัง */
}
}

@media only screen and (max-width: 414px) {
  .grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    grid-auto-rows: 60px;
    grid-gap: 2px;
  }
  .contentbox h4{
    font-size: 14px !important;
   }
   .contentbox a{
    font-size: 8px !important;
   }
   .contentbox p{
    font-size: 8px !important;
   }
   .smallcontent {
    font-size: 6px !important;
   }
   .img-background {
    position: absolute;
    top: 300px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.5; /* เปลี่ยนค่า opacity ตามที่ต้องการ */
    z-index: -1; /* ย้ายระดับ z-index ไปที่ -1 เพื่อให้ส่งไปไว้หลัง */
  }
  .img-background2 {
    position: absolute;
    top: 350px;
    right: 50px;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.5; /* เปลี่ยนค่า opacity ตามที่ต้องการ */
    z-index: -1; /* ย้ายระดับ z-index ไปที่ -2 เพื่อให้ส่งไปไว้หลัง */
  }
  
}

/* detail Animation */
@keyframes slideIn {
from {
  transform: translateX(-100%);
}
to {
  transform: translateX(0);
}
}
.tab-pane {
animation: slideIn 1s forwards;
}


/* detail Animation End */

/* main content */

@media (max-width: 768px) {
 
  .breadcrumb {
    font-size: 9px;
  }
  .custom-btn {
      width: 100%;
      margin-top: 10px;
      margin-bottom: 10px;
      }
      .detail {
        font-size: 20px;
      
      }

      .console-container {
        font-size: 30px;
      }
   
}

.d-flex {
  display: flex;
  
}
.text-container {
  /* max-width: 85%; */
  justify-items: center;
}

.image-container {
  max-width: 35%;
 
} 
.image-container:hover {
  max-width: 38%; 
}
.responsive-image {
  width: 90%;
  height: auto;
}

.custom-btn {
width: 130px;
height: 50px;
font-size: 18px;
background-color: rgb(138, 74, 56);
color: white;
transition: background-color 0.3s; 
z-index: 100;
}

.custom-btn:hover {
background-color: darkred;
color: white;
}
.registration-btn, .details-btn {
width: 130px;
height: 50px;
font-size: 18px;
background-color: rgb(138, 74, 56);
color: white;
transition: background-color 0.3s;
margin-right: 10px; 
} 
.btn-regis {
  background-color: initial;
  color: #9B1E2E;
  border: 1px solid #9B1E2E;
}
.btn-regis:hover,
.btn-regis:active {
  background-color: #9B1E2E !important;
  border: 1px solid #9B1E2E;
  color: #ffffff;
}

/* link index page */


/* map */
.map {
max-width: 60%; 
height: auto; 
border: 5px solid #ddd; 
border-radius: 10px; 
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
}



/* subtopic menu index */
.index a {
text-decoration: none;
 /* font-size: 50px; */
/* font-weight: bold;  */
color: #0F0D0D;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.cta {
position: relative;
/* margin: auto; */
padding: 19px 30px;
/* padding: 20px 25px; */
transition: all 0.2s ease;

}
.cta:before {
content: "";
position: absolute;
top: 0;
left: 0;
display: block;
border-radius: 45px;
background: #952937;
width: 90px;
height: 90px;
transition: all 0.4s ease;
z-index: 0;
}
.cta span {
position: relative;
font-size: 20px;
line-height: 23px;
font-weight: bold;
letter-spacing: 5px;
text-transform: uppercase;
vertical-align: middle;
}
.cta svg {
position: relative;
top: 0;
margin-left: 5px;
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
stroke: #111;
stroke-width: 2;
transform: translateX(-5px);
transition: all 0.3s ease;
}
.cta:hover:before {
  width: 100%;
  background-color: #9B1E2E;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cta:hover svg {
transform: translateX(0);
}
.cta:active {
transform: scale(0.96);
}

/* gototop */
.go-to-top {
display: none; 
position: fixed;
bottom: 20px;
right: 10px;
border: none;
color: #8A4A38;
cursor: pointer;
font-size: 18px;
font-weight: bold;
padding: 5px;
z-index: 1000;
transition: opacity 0.5s;
}
.go-to-top  a{ 
color: #8A4A38;
font-weight: 600;
}

/* End gototop */


/* test carousel */
.carousel-animate {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 80vh; 
  display: grid;
  place-items: center;
  overflow: hidden;
}

.item-carousel-animate {
  width: 20vw; 
  height: 15vw; 
  list-style-type: none;
  position: absolute;
  transform: translateY(0);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 2vw 3vw rgba(255, 255, 255, 0.3) inset; 
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;

  &:nth-child(1),
  &:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 95vh;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
  }

  &:nth-child(3) {
    left: 8vw; 
  }
  &:nth-child(4) {
    left: calc(29vw); 
  }
  &:nth-child(5) {
    left: calc(50vw); 
  }
  &:nth-child(6) {
    left: calc(71vw); 
  }
}

.content-carousel {
  width: min(60vw, 900px); 
  position: absolute;
  top: 38%;
  left: 15vw; 
  font: 30vw 0.85rem;
  font-family: 'Adam';
  color: white;
  text-shadow: 0 0.15em 0.3em rgba(0, 0, 0, 0.5); 
  opacity: 0;
  display: none;
  
  & .title {
    font-family: "Adam";
    -webkit-text-stroke-width: 0.05em; 
    text-transform: uppercase;
    font-size: 3vw;
  }

  & .description-carousel {
    font-size: 1.5vw; 
  }

  & button {
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    border: 0.2em solid white; 
    border-radius: 0.25em; 
    padding: 0.75em;
    cursor: pointer;
  }
}

.item-carousel-animate:nth-of-type(2) .content-carousel {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
    filter: blur(0.31em); 
    transform: translateY(calc(-50% + 0.94em)); 
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav-carousel {
  position: absolute;
  bottom: 2em; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;

  & .btn-cr {
    background-color: rgba(255, 255, 255, 0.5);
    color: rgba(0, 0, 0, 0.7);
    border: 0.2em solid rgba(0, 0, 0, 0.6); /* แก้ไขเป็นค่าที่มีหน่วยเป็น em */
    margin: 0 0.25em; /* แก้ไขเป็นค่าที่มีหน่วยเป็น em */
    padding: 0.75em;
    border-radius: 50%;
    cursor: pointer;

    &:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }
  }
}
/* test carousel */


/* schedule */        
/* h1{
  padding-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
} */

@media (max-width: 768px) {
  .text-title {
    font-weight: 700 !important;
    font-size: 8vw; 
    letter-spacing: 5px;
    -webkit-text-stroke: 1px #9B1E2E;
  }
  .console-container {
    font-size:40px;
    height:720px;
  }
  .ani-bubble {
    border-radius: 20px;
    height: 10px;
    top: 100%;
    width: 50px;
  }
  .navbar p {
    font-size: 24px !important; 
  }
 

  .navbar-brand img {
    max-width: 50px !important;  
  }
  .body-branch {
    .card {
      width: 650px;
      height: 250px;
      .pic {
        width: 380px;
        height: 100%;
  
      }
      h2{
        font-size: 40px;
        top: 5px;
        right: 280px;
      }

    }
    
  }
  .text-branch {
    font-size: 8vw; 
  }
  
 
}

@media (max-width: 575.98px) { 
.btn {
  font-size: 16px!important;
  padding: 1.5rem!important;
}
.console-container {
  font-size:30px;
  height:500px;
}
.ani-bubble {
  border-radius: 10px;
  height: 5px;
  top: 100%;
  width: 50px;
}
}

@media (max-width: 685px) {
  .body-branch {
    .card {
      width: 580px;
      height: 240px;
      .pic {
        width: 350px;
        height: 100%;
  
      }
      h2{
        font-size: 35px;
        top: 5px;
        right: 250px;
      }

    }
    
  }

}
@media (max-width: 600px) {
  .body-branch {
    .card {
      width: 550px;
      height: 220px;
      .pic {
        width: 330px;
        height: 100%;
  
      }
      h2{
        font-size: 33px;
        top: 5px;
        right: 230px;
      }

    }
    
  }
  

}
@media (max-width: 580px) {
  .body-branch {
    .card {
      width: 530px;
      height: 200px;
      .pic {
        width: 300px;
        height: 100%;
  
      }
      h2{
        font-size: 32px;
        top: 5px;
        right: 240px;
      }

    }
    
  }

}



@media (max-width: 576px) {
  .navbar p {
    font-size: 16px !important; 
  }
  .nav-pills .nav-link {
   font-size: 10px !important;
  }

  .navbar-brand img {
    max-width: 48px !important;  
  }

  .body-branch {
    .card {
      width: 500px;
      height: 230px;
      .pic {
        width: 330px;
        height: 100%;
  
      }
      h2{
        font-size: 30px;
        top: 5px;
        right: 185px;
      }

    }
    
  }

}

@media (max-width: 510px)  {
  .body-branch {
    .card {
      width: 380px;
      height: 150px;
      .pic {
        width: 220px;
        height: 100%;
  
      }
      h2{
        font-size: 23px;
        top: 7px;
        right: 170px;
      }

    }
    
  }

}



@media (max-width: 414px)  {
  .body-branch {
    .card {
      width: 320px;
      height: 140px;
      .pic {
        width: 190px;
        height: 100%;
  
      }
      h2{
        font-size: 18px;
        top: 10px;
        right: 140px;
      }


    }
    
  }

}
@media (max-width: 412px)  {
  .body-branch {
    .card {
      width: 320px;
      height: 140px;
      .pic {
        width: 190px;
        height: 100%;
  
      }
      h2{
        font-size: 18px;
        top: 10px;
        right: 140px;
      }

    }
    
  }

}
@media (max-width: 375px) {
  .body-branch {
    .card {
      width: 280px;
      height: 120px;
      .pic {
        width: 170px;
        height: 100%;
  
      }
      h2{
        font-size: 16px;
        top: 10px;
        right: 120px;
      }

    }
    
  }

}

   
@keyframes slidy {
0% { left: 0%; }
20% { left: 0%; }
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }
}
.section-slide{

body, figure { 
margin: 0; background: #101010;
font-weight: 100;
}
div#captioned-gallery { 
width: 100%; overflow: hidden; 
}
figure.slider { 
position: relative; 
width: 500%;
height: 30%;
font-size: 0; animation: 10s slidy infinite; 
}
figure.slider figure { 
width: 20%; height: auto;
display: inline-block;  position: inherit; 
}
figure.slider img { width: 100%; height: auto; }
figure.slider figure figcaption { 
position: absolute; bottom: 0;
background: rgba(0,0,0,0.4);
color: #fff; width: 100%;
font-size: 2rem; padding: .6rem; 
}
}

/* .vertical {
  border-left: 2px solid black;
  height: 500px;
  position: absolute;
  left: 50%;
} */

/* Agenda */
  .timeline {
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  padding: 20px;
  width: 100%;
}

.timeline-item {
  margin-right: 20px;
  padding: 20px;
  border: 1px solid #333;
  box-shadow: 3px 3px 6px rgba(51, 51, 51, 0.3);
  border-radius: 10px;
}
.timeline-item:hover {
  border: 1px solid #f4f3ef;
  background-color: #9B1E2E;

.timeline-icon {
  background-color: #f4f3ef;
  color: #9B1E2E;
}
.timeline-content {
  /* width: 320px; */
  
  transition: 0.2s ease-in-out;
}
h3{
color: #f4f3ef;
}
p{
    color: #f4f3ef;
}
}

.timeline-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #9B1E2E;
  color: #fff;
}
.timeline-content {
  margin-left: 20px;
  width: 300px;
  height: 200px;
}

.timeline-title {
  font-weight: bold;
}
/* Agenda */

/* schedule */

 /* Custom styles */
 .video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#ab,#schedule,#agenda,#con,#peerreview{
  font-size: 55px;
}

@media (max-width: 768px) {
  .video-container {
      padding-bottom: 75%;
  }
 
  .timeline-content {
    margin-left: 10px;
    width: 250px;
    height: 200px;
  }
  .timeline-item {
    margin-right: 10px;
    padding: 10px;
    border: 1px solid #333;
    box-shadow: 3px 3px 6px rgba(51, 51, 51, 0.3);
    border-radius: 10px;
  }
}

/* Responsive font size */
@media (max-width: 768px) {
  #about,#time1,#time1-1,#time2,#time2-2,#time-music,#time-performing
   {
      font-size: 3vw; 
  }
  #ab,#schedule,#agenda,#con,#peerreview{
      font-size: 6vw; 
  }
}

.vertical {
  border-left: 2px solid #333;
  height: 100%;
}

/* contact */
.body-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38vh;
  margin: 0;
  padding: 0;
}

.Menu {
  transform-style: preserve-3d;
  transform: perspective(60rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.Menu-list {
  font-size: 25px;
  padding: 5px 0; 
  text-transform: uppercase;
  text-align: center;
  display: flex;
  flex-direction: column;
  width: 40%;

  /* align-items: center; */
  transform: rotateX(-10deg) rotateY(20deg);
}

.Menu-list-item {
  position: relative;
  color: transparent;
  cursor: pointer;
}

.Menu-list-item::before {
  content: "";
  display: block;
  position: absolute;
  top: 49%;
  left: -10%;
  right: -10%;
  height: 4px;
  border-radius: 4px;
  margin-top: -2px;
  background: #9B1E2E;
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.16, 1.08, 0.38, 0.98);
  z-index: 1;
}

.Mask {
  display: block;
  position: absolute;
  overflow: hidden;
  color: #9B1E2E;
  top: 0;
  height: 49%;
  transition: all 0.8s cubic-bezier(0.16, 1.08, 0.38, 0.98);
}

.Mask span {
  display: block;
}
.Mask + .Mask {
  top: 48.9%;
  height: 51.1%;
}

/* .Mask + .Mask span {
  transform: translateY(-49%);
} */
a .Mask + .Mask span {
  transform: translateY(-59%);
}

.Menu-list-item:hover .Mask,
.Menu-list-item:active .Mask {
  color: #333;
  transform: skewX(12deg) translateX(5px);
}

.Menu-list-item:hover .Mask + .Mask,
.Menu-list-item:active .Mask + .Mask {
  transform: skewX(12deg) translateX(-5px);
}

.Menu-list-item:hover::before,
.Menu-list-item:active::before {
  transform: scale(1);
}

@media (max-width: 768px) {
  .Menu-list {
    font-size: 1.5rem;
  }
  .body-contact {
    height: 50vh;
  }
 #face a .Mask + .Mask span {
    transform: translateY(-78%);
  }
}

@media (max-width: 576px) {
  .Menu-list {
    font-size: 1.2rem;
  }
  .body-contact {
    height: 50vh;
  }
  #face a .Mask + .Mask span {
    transform: translateY(-55%);
  }
}

/* contact */

/* popUp poster */
            .popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .popup-content {
        background-color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 20px;
        width: 40%;
        height: 85%;
        
    }
    
    .close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 25px;
        cursor: pointer;
        z-index: 1;
    }
    /* popUp poster */