@font-face {
  font-family: "THSarabunNew";
  src: url("fonts/thsarabunnew-webfont.eot");
  src: url("fonts/thsarabunnew-webfont.eot?#iefix") format("embedded-opentype"),
    url("fonts/thsarabunnew-webfont.woff") format("woff"),
    url("fonts/thsarabunnew-webfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "THSarabunNew";
  src: url("fonts/thsarabunnew_bolditalic-webfont.eot");
  src: url("fonts/thsarabunnew_bolditalic-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("fonts/thsarabunnew_bolditalic-webfont.woff") format("woff"),
    url("fonts/thsarabunnew_bolditalic-webfont.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "THSarabunNew";
  src: url("fonts/thsarabunnew_italic-webfont.eot");
  src: url("fonts/thsarabunnew_italic-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("fonts/thsarabunnew_italic-webfont.woff") format("woff"),
    url("fonts/thsarabunnew_italic-webfont.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "THSarabunNew";
  src: url("fonts/thsarabunnew_bold-webfont.eot");
  src: url("fonts/thsarabunnew_bold-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("fonts/thsarabunnew_bold-webfont.woff") format("woff"),
    url("fonts/thsarabunnew_bold-webfont.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

.primary {
  background-color: #ffffff;
  width: 99%;
  box-shadow: 6px 7px lightslategrey;
  border: 1px solid #f1f0f0;
  border-top: inherit;
  vertical-align: middle;
  margin: 40px auto;
  overflow: auto;
}

hr.hi {
  border-top: 3px solid #8c8b8b;
  width: 90%;
  margin: 0 auto;
}

.promo h1 {
  margin: 50px 90px;
  font-size: 55px;
  color: rgb(35, 137, 145);
  text-align: center;
}

.youtubevid {
  width: 95%;
  padding-bottom: 53.4%;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
  position: relative;
}

.youtubevid iframe {
  width: 100%;
  height: 100%;
  position: absolute;
}

.admissionImg {
  max-width: 900px;
  max-height: 100%;
  margin: 0 auto;
}

.Allcontent {
  width: 95%;
  margin: 0 auto;
}

.Allcontent img {
  width: 100%;
  height: 100%;
}

.Allcontent h1 {
  color: rgb(23, 99, 102);
  font-family: "Century Gothic", sans-serif;
  text-decoration: underline;
  margin-left: 10px;
  font-size: 50px;
  text-align: center;
}

.Allcontent h2 {
  color: rgb(70, 118, 158);
  margin: 20px 30px;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
}

.content {
  background-color: white;
  margin: 30px;
}

.contentctn {
  width: 700px;
  margin: 0 auto;
}

.image {
  position: relative;
  width: 700px;
  height: 394.33px;
  margin: 0 auto;
  margin-bottom: 10px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  font-family: "Quicksand", sans-serif;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}

.overlay > * {
  transform: translateY(20px);
  transition: transform 0.25s;
}

.overlay:hover {
  opacity: 1;
}

.overlay:hover > * {
  transform: translateY(0);
}

.imageTitle {
  font-size: 2em;
  font-weight: bold;
}

.overlay p {
  font-size: 1.75em;
  margin-top: 1.25em;
}

.achievecontent h2 {
  text-align: center;
}

.achievecontent .contenttext {
  width: 35%;
  margin-right: 20px;
}
.thai {
  font-family: "THSarabunNew";
}
.special {
  height: 100%;
  width: 100%;
}
@media screen and (max-width: 860px) {
  .Allcontent img {
    width: 100%;
    height: 100%;
  }

  .image {
    width: 100%;
    height: 50.26%;
  }

  .contentctn {
    width: 80%;
  }

  .primary {
    width: 99.9%;
  }
  .imageTitle {
    font-size: 25px;
  }
  .overlay p {
    font-size: 1.25em;
  }
}
