@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');
:root {
  --css-white: #FFFFFF;
  --css-grey: #707070;
  --css-black: #000000;
  --css-darkgrey: #3F4756;
  --css-lightgrey: #d3d3d3;
  --css-blue: #5aa0ea;
  --css-darkblue: #5a7386;
  --css-orange: #89631c;
}
html {
  border: 0;
  outline: 0;
  scroll-behavior: smooth;
  /* height: 100vh;*/
  overflow-x: hidden;
  color: var(--css-white);
}
body {
  font-family: "IBM Plex Sans Thai", "DM Serif Text", serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 22px;
  color: #383838;
  font-weight: 400;
  overflow-x: hidden;
  background-size: cover;
  background-image: url(../images/bgtext3.jpg);
  background-position: top center;
  background-repeat: repeat-x;
}
::-webkit-selection {
  color: var(--css-white);
  background: var(--css-blue);
}
::-moz-selection {
  color: var(--css-white);
  background: var(--css-blue);
}
::selection {
  color: var(--css-white);
  background: var(--css-blue);
}
a {
  color: var(--css-blue);
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  text-decoration: none;
  outline: none;
}
a:hover, a:active, a:focus {
  outline: none;
  text-decoration: none;
  cursor: pointer;
  filter: grayscale(80%);
  color: var(--css-blue);
}
*:focus {
  outline: none;
}
strong {
  font-weight: 600;
}
input:focus {
  outline: none;
}
.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}
img a:hover, img a:active, img a:focus {
  opacity: .7;
}
.mobile {
  display: none;
}
.desktop {
  display: block;
}
.webname {
  width: 130px;
  display: inline-flex;
  margin-left: 10px;
}
.selectpicker {
  -webkit-appearance: none;
  border: 0px;
  color: #6B6B6B;
  z-index: 1;
  position: relative;
  margin-right: 10px;
  border-radius: 0px;
  font-family: "IBM Plex Sans Thai", "DM Serif Text", serif;
  font-size: 12px;
  font-weight: 600;
}
#startcontents {
  margin-top: 78px;
}
#contents img {
  padding: 10px;
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
}
.spacebottom {
  padding-bottom: 90px;
}
.goldline {
  background-image: url(../images/bgspark1.png);
  background-position: top center;
  background-repeat: no-repeat;
}
.maintopimage {
  width: 100%;
  max-width: 2048px;
  max-height: 95vh;
  margin-left: auto;
  margin-right: auto;
  padding-top: 70px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap; /* Allows thumbnails to wrap to the next line */
  justify-content: space-around; /* Distributes space around items */
  align-items: flex-start; /* Aligns items to the start of the cross-axis */
}
.maintopimage .img-fluid {
  width: 100%;
  max-width: 2048px;
  flex: 0 0 auto; /* Prevents items from growing or shrinking, maintains natural size */
  /* Add other styling for your thumbnail items (e.g., width, height, border) */
}
.returnnews {
  position: absolute;
  width: 60px;
  margin-top: -50px;
  margin-left: 10px;
}
.returnphoto {
  width: 30px;
  margin-bottom: 20px;
}
.photo {
  border: 2px solid var(--css-white);
  border-radius: 12px;
  box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
  margin-bottom: 20px;
}
hr.line {
  border-top: 1px dashed var(--css-white);
  width: 100%;
  height: 1px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
}
hr.lineblack {
  border-top: 1px dashed var(--css-black);
  width: 100%;
  height: 1px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
}
.linelimit {
  font-size: .85rem;
  line-height: 1.2rem;
  padding-top: 3px;
  display: block;
  display: -webkit-box;
  height: 59px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swiper-container-horizontal > .swiper-pagination {
  position: absolute;
  bottom: 0;
}
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 100%;
  background: var(--css-blue);
  opacity: 0.4;
  border: 1px solid rgba(255, 255, 255, .5);
}
.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--css-white);
  width: 20px;
  height: 20px;
}
.crop-text-1 {
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.crop-text-3 {
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.hero {
  height: 80vh;
  width: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
#news img {
  padding: 0px;
  margin-bottom: 10px;
  border-radius: 12px;
}
#gallery {
  margin: 5px;
  margin-top: 40px;
  padding: 10px;
  padding-top: 20px;
}
#gallery .img-fluid {
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 1);
}
.visit {
  width: 90px;
  margin-top: 10px;
}
@media (max-width:1024px) {
  .linelimit {
    height: 60px;
  }
}
@media (max-width:768px) {
  .mobile {
    display: block;
  }
  .desktop {
    display: none;
  }
}
@media (max-width:512px) {
  body {
    font-size: 16px;
    line-height: 22px;
  }
  a:hover, a:active, a:focus {
    opacity: 1;
  }
  .mobile {
    display: block;
  }
  .desktop {
    display: none;
  }
  .webname {
    width: 100px;
    margin-left: 3px;
  }
  #startcontents {
    margin-top: 80px;
  }
  .visit {
    width: 60px;
    margin-top: 1px;
    float: right;
    margin-right: 10px;
  }
  .swiper-button-prev, .swiper-button-next {
    position: absolute;
    top: 60%;
    margin-top: 22px;
    opacity: .4;
    width: 15px;
    height: 24px;
    background-size: 15px 24px;
  }
  #news img {
    padding: 0px;
    border-radius: 3px;
  }
  .crop-text-3 {
    padding-left: 0px;
  }
  .returnnews {
    width: 30px;
    margin-top: -20px;
  }
  .returnphoto {
    width: 20px;
  }
  #gallery {
    padding: 5px;
  }
  #gallery .img-fluid {
    margin-bottom: 20px;
    border-radius: 6px;
  }
}
@media (max-width:214px) {
  .linelimit {
    font-size: .7rem;
    line-height: 1rem;
    height: 50px;
  }
}
/**************************** color ****************************/
.white {
  color: var(--css-white);
}
.grey {
  color: var(--css-grey);
}
.black {
  color: var(--css-black);
}
.darkgrey {
  color: var(--css-darkgrey);
}
.lightgrey {
  color: var(--css-lightgrey);
}
.blue {
  color: var(--css-blue);
}
.orange {
  color: var(--css-orange);
}
.bgblue {
  background-image: linear-gradient(to right top, #469cd6, #4693cf, #468bc9, #4782c1, #487aba);
  color: var(--css-white);
}
.bgwhite {
  background-color: var(--css-white);
}
.bgorange {
  background-image: linear-gradient(to left top, #d08d37, #c88132, #c0752e, #b8692a, #af5e26);
  color: var(--css-white);
}
.bggold {
  background-image: linear-gradient(to top, #9b7c14, #ad9231, #bea94b, #d0c065, #e2d77f);
  box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
  color: #000000;
  border: 1px solid #efe9b2;
}
/**************************** font ****************************/
.title {
  font-family: "Cinzel", serif;
  font-size: 80px;
  line-height: 64px;
  font-weight: 500;
}
.header {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-size: 32px;
  line-height: 36px;
  font-weight: 600;
}
.subheader {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-size: 22px;
  line-height: 24px;
  font-weight: 600;
}
.title2 {
  font-family: "Cinzel", serif;
  font-size: 80px;
  line-height: 64px;
  font-weight: 500;
}
.header2 {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-size: 32px;
  line-height: 36px;
  font-weight: 600;
}
.subheader2 {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-size: 22px;
  line-height: 24px;
  font-weight: 600;
}
.small {
  font-size: 11px;
  line-height: 11px;
  font-weight: 600;
}
.copy {
  font-size: 11px;
  line-height: 12px;
}
#footer {
  padding-bottom: 60px;
}
#footer .title {
  font-size: 16px;
  line-height: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
#footer {
  font-size: 12px;
  line-height: 16px;
}
#footer .small {
  font-size: 10px;
  line-height: 14px;
}
#footer li {
  color: var(--css-blue);
  padding-bottom: 10px;
  list-style: none;
  margin-left: -30px;
}
#footer li > a:hover {
  color: var(--css-white);
}
#footer li.active a {
  color: var(--css-blue);
}
#footer a {
  color: var(--css-blue);
  background-color: transparent;
  text-decoration: none;
  border: none;
}
#footer a:hover, a:active, a:focus {
  color: var(--css-black);
  text-decoration: none;
  background-color: transparent;
  border: none;
}
/**************************** element ****************************/
.logo {
  width: 50px;
  margin-top: 3px;
  margin-bottom: 3px;
}
.icon {
  width: 50px;
  margin-top: 10px;
  margin-left: 10px;
}
.modal-backdrop {
  background-color: var(--css-white);
}
.textcount {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.linelimit {
  padding-top: 3px;
  display: block;
  display: -webkit-box;
  height: 59px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineleft2 {
  border: 1px;
  border-bottom: 0px;
  border-right-style: none;
  border-left-style: dotted;
  padding: 0px;
  padding-left: 15px;
  border-color: #5b3a1d;
  height: auto;
}
.round {
  border-radius: 12px;
}
.thumbnails {
  border-radius: 6px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  overflow: hidden;
  margin-left: 12px;
}
.thumbnails .img-fluid {
  border-radius: 6px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}
.box {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, .2);
  text-decoration: none;
  border-radius: 6px;
  text-align: left;
  padding: 10px;
  padding-bottom: 30px;
}
.box img {
  margin-bottom: 20px;
}
.boxoutline {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid #ffffff;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.6);
}
.boxtext {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid #ffffff;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 10px;
}
.pointer {
  cursor: pointer;
}
.shadow {
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}
.list-group-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 90%;
}
.list-group {
  margin-left: 20px;
}
.list-group li {
  margin-bottom: 10px;
}
video {
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/**************************** button ****************************/
.enter {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "IBM Plex Sans Thai", "DM Serif Text", serif;
  padding: 4px;
  padding-bottom: 4px;
  font-size: 11px;
  line-height: 12px;
  font-weight: 400;
  text-align: center;
  border: 1px solid var(--css-blue);
  border-radius: 24px;
  color: var(--css-blue);
  text-decoration: none;
  margin-top: 10px;
  width: auto;
}
.enter:hover {
  color: var(--css-white);
  text-decoration: none;
  background-color: var(--css-blue);
}
.enter:active {
  color: var(--css-white);
  text-decoration: none;
  background-color: var(--css-blue);
}
.enter:hover {
  text-decoration: none;
}
.enter:focus {
  text-decoration: none;
}
.enteroutline {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 4px;
  padding-bottom: 4px;
  font-size: 11px;
  line-height: 12px;
  font-weight: 400;
  text-align: center;
  border: 1px solid var(--css-orange);
  border-radius: 12px;
  background-color: transparent;
  color: var(--css-orange);
  text-decoration: none;
  margin-top: 4px;
  margin-left: auto;
  margin-right: auto;
}
.enteroutline:hover {
  color: var(--css-white);
  text-decoration: none;
  background-color: var(--css-orange);
}
.enteroutline:active {
  color: var(--css-white);
  text-decoration: none;
  background-color: var(--css-orange);
}
.icons {
  width: 30px;
  margin-right: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}
/**************************** others ****************************/
.zoom {
  transform: scale(1, 1);
  transition: transform .2s; /* Animation */
}
.zoom:hover {
  transform: scale(1.09); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
  moz-transform: scale(1.09);
  -webkit-transform: scale(1.09);
  -o-transform: scale(1.09);
  -ms-transform: scale(1.09);
  transform: scale(1.09);
}
.zoomin {
  transform: scale(1, 1);
  transition: transform .2s; /* Animation */
}
.zoomin:hover {
  opacity: .5;
  border: 2px solid var(--css-white);
  cursor: pointer;
}
.fadeIn {
  transition: transform .9s; /* Animation */
}
.fadeOut {
  transition: transform .4s; /* Animation */
}
.fadeOut:hover {
  transition: transform .4s; /* Animation */
}
.pagination > li > a, .pagination > li > span {
  border: 1px solid white;
  width: 30px;
  height: 30px;
  border-radius: 50% !important;
  margin: 0 5px;
  font-size: 12px;
  line-height: 15px;
}
.page-item {
  margin-right: 10px;
}
.pagination > li > a, .pagination > li > span {
  border: 1px solid white;
}
.pagination li.active a {
  background-color: red;
  color: white;
}
.pagination li:hover:not(.active) a {
  background-color: #ddd;
}
.spacetop {
  margin-top: 60px;
}
/**************************** tablet  ****************************/
@media (max-width:1366px) {
  .title {
    font-size: 58px;
    line-height: 62px;
  }
}
/**************************** mobile  ****************************/
@media (max-width:768px) {
  .logo {
    width: 40px;
    margin-bottom: 5px;
    margin-top: 10px;
    margin-left: 10px;
  }
  .icon {
    width: 50px;
  }
  .box {
    height: auto;
    margin-bottom: 30px;
  }
}
@media (max-width:512px) {
  .header {
    font-size: 30px;
    line-height: 34px;
    margin-bottom: 10px;
  }
  .subheader {
    font-size: 22px;
    line-height: 28px;
  }
  .header2 {
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 10px;
  }
  .subheader2 {
    font-size: 14px;
    line-height: 16px;
  }
  .title2 {
    font-size: 36px;
    line-height: 34px;
  }
  .title {
    font-size: 42px;
    line-height: 42px;
  }
  .box {
    padding: 5px;
    padding-top: 20px;
    padding-bottom: 40px;
  }
  .spacetop {
    margin-top: 40px;
  }
}
@media (max-width:390px) {}
/**************************** small mobile  ****************************/
@media (max-width:214px) {
  .header {
    font-size: 20px;
    line-height: 24px;
  }
  .subheader {
    font-size: 24px;
    line-height: 26px;
  }
}
/* Make video cover full width */
.video-container {
  position: relative;
  width: 100%;
  height: 90vh;
  /*   Full viewport height */
  overflow: hidden;
}
.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.welcometext {
  padding: 20px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, .3);
  text-decoration: none;
  border-radius: 6px;
  margin-top: 20px;
  margin-bottom: 40px;
}
.flag {
  width: 30px;
  margin-top: 10px;
}
/**************************** small mobile  ****************************/
@media (max-width:512px) {
  .video-container {
    margin-top: 0px;
  }
  .welcometext {
    width: 95%;
    padding-top: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }
}
.bgimage {
  background-size: cover;
  background-image: url(../images/bgtext.jpg);
  background-position: center center;
  background-repeat: repeat-x;
}
.bgimage2 {
  background-size: cover;
  background-image: url(../images/bgtext3.jpg);
  background-position: top center;
  background-repeat: repeat-x;
}
.bgimage3 {
  background-size: cover;
  background-image: url(../images/bgtext2.jpg);
  background-position: top center;
  background-repeat: repeat-x;
}
.bgimage4 {
  width: 100%;
  background-image: url(../images/bgbigfront.png);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}
.textwrap {
  font-family: "Cinzel", serif;
  margin-left: auto;
  margin-right: auto;
  /*  margin-top: 50px; */
  margin-bottom: 40px;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.2);
  font-weight: 600;
}
.textwrap .title {
  font-size: 55px;
  line-height: 45px;
}
.textwrap .text {
  color: rgba(255, 255, 255, 0.1);
  font-size: 28px;
  line-height: 32px;
  text-transform: uppercase;
  background-repeat: repeat;
  background-image: url(../images/bgtext.jpg);
  background-position: center center;
  -webkit-background-clip: text;
  animation: background-text-animation 60s linear infinite
}
@keyframes background-text-animation {
  0% {
    background-position: top 0px bottom 50%;
  }
  50% {
    background-position: top 443px bottom 50%;
  }
  100% {
    background-position: top 0px bottom 50%;
  }
}
.textwrap2 {
  font-family: "Cinzel", serif;
  margin-left: auto;
  margin-right: auto;
  /*  margin-top: 50px; */
  margin-bottom: 60px;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.1);
  font-weight: 600;
}
.textwrap2 .title {
  font-size: 55px;
  line-height: 50px;
}
.textwrap2 .text {
  color: rgba(255, 255, 255, 0.1);
  font-size: 28px;
  line-height: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-repeat: repeat;
  background-image: url(../images/bgtext4.png);
  background-position: top center;
  -webkit-background-clip: text;
  animation: background-text-animation 60s linear infinite
}
@keyframes background-text-animation {
  0% {
    background-position: top 0px bottom 50%;
  }
  50% {
    background-position: top 443px bottom 50%;
  }
  100% {
    background-position: top 0px bottom 50%;
  }
}
@media (max-width:512px) {
  .textwrap {
    margin-top: 0px;
    margin-bottom: 40px;
  }
  .textwrap .title {
    font-size: 55px;
    line-height: 58px;
  }
  .textwrap .text {
    font-size: 18px;
    line-height: 20px;
  }
  .textwrap2 {
    margin-top: 0px;
    margin-bottom: 40px;
  }
  .textwrap2 .title {
    font-size: 40px;
    line-height: 45px;
  }
  .textwrap2 .text {
    font-size: 18px;
    line-height: 20px;
  }
  .bgimage4 {
    background-image: url(../images/bgbigfrontmobile.png);
    background-position: top center;
  }
}
/* slide member*/
.team {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
}
.teamimage {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
  position: relative;
  border-radius: 12px;
}
.team:hover .teamimage {
  opacity: 0;
}
.team:hover .overlay {
  opacity: 1;
  background-image: url(../images/bgtext.jpg);
  background-position: center center;
  border-radius: 12px;
  box-shadow: rgba(99, 99, 99, .8) 0px 2px 8px 0px;
}
.textin {
  color: #000000;
  font-family: "Cinzel", serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  padding: 5px 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-image: linear-gradient(to right top, #469cd6, #4693cf, #468bc9, #4782c1, #487aba);
}
.swiper-scrollbar {
  position: absolute;
}
.swipeposition {
  font-family: "Cinzel", serif;
  font-size: 14px;
  line-height: 15px;
  font-weight: 600;
  position: absolute;
  z-index: 1;
  top: auto;
  bottom: 20px;
  left: 20px;
  right: auto;
  color: #FFFFFF;
  transition: opacity 0.3s ease; /* smooth fade */
}
.sponsor {
  width: 70px;
  margin-right: 15px;
}
@media (max-width:512px) {
  .textin {
    font-size: 11px;
    line-height: 12px;
    padding: 0px;
  }
  .swipeposition {
    font-size: 12px;
    line-height: 14px;
    bottom: 10px;
    left: 10px;
  }
  .sponsor {
    width: 35px;
    margin-right: 5px;
  }
}