@font-face {
  font-family: "Sarabun";
  src: url(../../../../../fonts/Sarabun/Sarabun-Regular.ttf);
}
@font-face {
  font-family: "Kanit";
  src: url(../../../../../fonts/Kanit/Kanit-Regular.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-Regular.ttf);
}
@font-face {
  font-family: "Fraunces";
  src: url(../../../../../fonts/Fraunces_72pt/Fraunces_72pt-Regular.ttf);
}
:root {
  margin: 0;
  font-family: Sarabun;
}

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

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

body {
  margin: 0;
  padding: 0;
  background-color: #3c2f37;
  overflow-x: clip;
}

h1, h2 {
  font-family: serif;
  font-weight: normal;
  color: #95788a;
  text-align: center;
  margin: 1rem 1rem 1rem 1rem;
}

h1 {
  font-size: 3.5rem;
  padding-bottom: 5rem;
}

h2 {
  font-size: 2rem;
  margin: 1rem 1rem 0.5rem 1rem;
}

.gallery {
  position: relative;
  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;
  margin-bottom: 7rem;
  counter-reset: rank;
  gap: 1rem;
}

.galleryTitle {
  position: absolute;
  bottom: 100%;
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  font-size: 2.5rem;
  padding: 0.5rem 1rem 0.25rem 1rem;
  text-align: center;
  color: hsl(10, 100%, 82%);
  background-color: hsl(334, 53%, 28%);
  border-radius: 19px 19px 0 0;
  white-space: nowrap;
}

figure {
  counter-increment: rank;
  content: "help";
  -ms-flex-preferred-size: calc(33.3333333333% - 1rem);
      flex-basis: calc(33.3333333333% - 1rem);
  margin: 0px 0px 0px 0px;
  position: relative;
}

img {
  width: 100%;
  display: block;
}

figure::before {
  content: "#" counter(rank);
  font-family: sans-serif;
  font-size: 1rem;
  position: absolute;
  color: hsl(10, 100%, 82%);
  background: hsl(334, 53%, 28%);
  padding: 0.25rem 0.5rem;
  border-radius: 0 0 9px 0;
}

figcaption {
  font-size: clamp(1.25rem, 2.5vw, 3rem);
  line-height: 120%;
  text-align: center;
  color: hsl(10, 100%, 82%);
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  background: hsl(334, 53%, 28%);
  border-radius: 0 0 19px 19px;
}