@font-face {
  font-family: "Sarabun";
  src: url(../../../../../../fonts/Sarabun/Sarabun-Regular.ttf);
}
@font-face {
  font-family: "Kanit";
  src: url(../../../../../../fonts/Kanit/Kanit-Light.ttf);
}
@font-face {
  font-family: "Prompt";
  src: url(../../../../../../fonts/Prompt/Prompt-Regular.ttf);
}
@font-face {
  font-family: "PlexSans";
  src: url(../../../../../../fonts/IBM_Plex_Sans_Thai/IBMPlexSansThai-Medium.ttf);
}
@font-face {
  font-family: "NotoSansThai";
  src: url(../../../../../../fonts/NotoSansThai/NotoSansThai-Light.ttf);
}
@font-face {
  font-family: "Fraunces";
  src: url(../../../../../../fonts/Fraunces_72pt/Fraunces_72pt-SemiBold.ttf);
}
:root {
  font-family: Sarabun;
  font-weight: normal;
  font-size: 16px;
  --def-undr: #70f5ff;
  --def-bgnd: #006970;
  --def-text: #a3f9ff;
}

*, *:before, *:after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

*, *:before, *:after {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: #61a5aa;
  overflow-x: clip;
}

h1, h2 {
  font-family: Kanit;
  font-weight: normal;
}

h1, h2 {
  font-size: 4rem;
  text-align: center;
  color: hsl(46deg, 100%, 79%);
  margin: 0 0 0 0;
  padding: 0;
}

h2 {
  font-size: 3rem;
}

ul {
  list-style: none;
  counter-reset: counter;
}

figure {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin: 1rem 2rem 2rem 2rem;
  border: 3px solid #52f3ff;
  border-radius: 11px;
  background-color: #0098a3;
  counter-increment: counter;
}

figure:after {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 1rem;
  line-height: 1.6rem;
  width: 2rem;
  height: 2rem;
  text-align: center;
  display: block;
  content: counter(counter);
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  border-radius: 10rem;
  border: 2px solid #52f3ff;
  background-color: hsl(184deg, 100%, 32%);
  color: white;
}

figure img {
  width: 100%;
  border-radius: 7px 7px 0px 0px;
}

figcaption {
  font-family: sans;
  font-size: 2rem;
  line-height: 2.4rem;
  text-align: center;
  padding: 2rem 2rem 2rem 2rem;
  color: white;
  border-top: 2px solid #52f3ff;
}

figcaption span {
  display: block;
  font-weight: bold;
  color: hsl(310deg, 100%, 79%);
}

figcaption p:nth-of-type(n+2) {
  border-top: 1px dotted;
}

figcaption.thai {
  font-family: Sarabun;
  font-size: 2.8rem;
  line-height: 4.4rem;
  background-color: hsl(175deg, 100%, 93%);
  color: hsl(184deg, 100%, 32%);
}

figcaption.english {
  font-family: Fraunces;
  background-color: hsl(52deg, 100%, 91%);
  color: hsl(184deg, 100%, 32%);
}

u {
  border-color: #007a83;
}

i {
  font-style: normal;
  color: hsl(246deg, 88%, 72%);
}

u i {
  color: #004c52;
  background-color: #a7ebef;
}

u i:after {
  border-color: transparent transparent #a7ebef transparent;
}

#fcFromUBtn {
  color: hsl(46deg, 100%, 79%);
  background-color: #008993;
}

@media (min-width: 1000px) {
  div.figures {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 2vw;
  }
  figure {
    margin: 0 0 3vw 0;
    max-width: 46vw;
  }
}