@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;
}

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

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

h1, h2 {
  font-family: serif;
  font-weight: normal;
  color: hsl(27, 27%, 70%);
  text-align: center;
  margin: 1rem 1rem 1rem 1rem;
}

h1 {
  font-size: 2.5rem;
}

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

.gallery {
  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;
  gap: 0.5rem;
}

figure {
  width: 49%;
  margin: 0px 0px 8px 0px;
}

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

img.fullWidth {
  position: absolute;
  left: 0;
  z-index: 2;
}

figcaption {
  font-family: Sarabun;
  text-align: center;
  color: hsl(0, 66%, 68%);
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  background: #661b6a;
}

figcaption name {
  display: block;
  color: hsl(302, 100%, 93%);
  font-size: 1.8rem;
  line-height: 3rem;
}

figcaption eng {
  font-family: sans-serif;
  display: block;
  color: #ce59d4;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

figcaption desc {
  font-family: Sarabun;
  display: block;
  color: hsl(302, 100%, 93%);
  font-size: 1.3rem;
  line-height: 2rem;
}

a {
  text-decoration: none;
}

#scrim {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, 0.7);
  z-index: 1;
}

#scrim.show {
  display: block;
}

@media (min-width: 320px) {
  figure {
    width: 32%;
  }
}
@media (min-width: 1025px) { /* big landscape tablets, laptops, and desktops */
  figure {
    width: 24%;
  }
}