::-webkit-scrollbar {
  background: #f9f7f1;
}

::-webkit-scrollbar-thumb {
  background: #cfccc3;
}

body {
  font-family: "Droid Serif", serif;
  font-size: 14px;
  color: #2f2f2f;
  background-color: #f9f7f1;
}

.container {
  display: grid;
  grid-gap: 1%;
  padding-left: 1%;
  padding-right: 1%;
  grid-template-columns: repeat(5, 1fr);
  justify-content: space-evenly;
  justify-items: center;
}

.options {
  /*border-style: dashed;
  border-color: #000000;
  border-width: 10px;*/
  padding: 5px;
  text-align: center;
  min-height: 150px;
  position: relative;
}

.article {
  width: 100%;
  color: blue;
  border-color: black;
  /*border-style: dashed; */
  padding: 0.25em;
  line-height: 1.4;
  height: fit-content;
}

.article h1 {
  text-align: center;
  height: 4.5em;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  color: #2f2f2f;
  font-style: italic;
  line-height: 1.1;
}

.headline {
  color: #2f2f2f;
  text-decoration: none;
}

.headline:hover {
  color: #000000;
  text-decoration: underline;
}

.headline:visited {
  color: #453b3b;
  text-decoration: underline;
}

.article p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 35;
  line-clamp: 35;
  overflow: hidden;
  line-height: 1.4;
  font-family: "Montserrat", sans-serif;
  color: #2f2f2f;
}

.article img {
  border-radius: 0.5em;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pagination {
  text-align: center;
}

.step-links {
  display: inline-block;
  margin-right: 5px;
  font-family: "Montserrat", sans-serif;
  color: #2f2f2f;
  font-size: 23px;
  padding: 0.25em;
}

@media (max-width: 1670px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
    padding: 1%;
  }

  .article h1 {
    height: 4em;
    line-height: 1;
  }
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
    padding: 1%;
  }

  .article h1 {
    line-height: 1;
    font-size: 23px;
  }

  .options {
    margin-top: 50px;
  }
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr;
    padding: 1%;
  }

  .article h1 {
    height: 3.9em;
    font-size: 30px;
  }

  .options {
    margin-top: 200px;
  }
}
