
body {
  font-size: 18px;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
}

article {
  padding: 5vh 5vw;
}

section {}

h1 {
  border-bottom: 2px solid #ffffff;
  font-size: 1.75em;
  margin-bottom: 0.5em;
  line-height: 0.8em;
}

h1 small {
  font-size: 0.5em;
  white-space: nowrap;
}

h2 {
  margin: 0;
}

figure {
  float: left;
  height: 100%;
  min-height: 270px;
  margin: 10px;
  padding: 10px;
  text-align: center;
  background-color: #ffffff22;
  transition: all 0.5s;
  border-radius: 1em;
}

figure:hover {
  background-color: #ffffff66;
}

figure img {
  width: 100%;
  max-height: 212px;
  width: auto;
  max-width: 100%;
}

figure h2 {
  text-align: center;
  padding: 72px 0;
}

figcaption {
  font-size: 0.8em;
  text-align: center;
  padding: 0.5em;
  max-height: 2.5em;
}

a {
  color: #ffffff;
  text-decoration: none;
}

a:visited,
a:hover {
  color: #ffffff;
}

/* Columns */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  figure {
    width: calc(100% - 40px);
  }

  form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  figure {
    width: calc(50% - 40px);
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  figure {
    width: calc(33% - 40px);
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  figure {
    width: calc(25% - 40px);
  }
}