.blog-posts {
  padding: 0 20px;
}
.blog-posts__container {
  max-width: 1200px;
  margin: 0 auto;
}
.blog-posts__sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 40px;
}
@media screen and (max-width: 1280px) {
  .blog-posts__sort {
    flex-wrap: wrap;
  }
}
.blog-posts__sort label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1;
}
@media screen and (max-width: 500px) {
  .blog-posts__sort label {
    flex: 100%;
  }
}
.blog-posts__sort label:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  display: block;
  width: 24px;
  height: 24px;
  padding: 4px;
  transform: translateY(-50%);
  background-color: #205F2F;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m36 16.8-3-3-12.9 12.6v-24.9h-4.2v24.9l-12.9-12.6-3 3 18 17.7z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center center;
  background-repeat: no-repeat;
}
.blog-posts__sort label select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 0;
  border: 1px solid #C4C4C4;
  max-width: 485px;
  width: 100%;
  height: 34px;
  padding: 0 40px 0 10px;
}
.blog-posts__list {
  display: grid;
  grid-column-gap: 20px;
  grid-row-gap: 40px;
  grid-template-columns: repeat(4, 1fr);
}
@media screen and (max-width: 1024px) {
  .blog-posts__list {
    grid-column-gap: 40px;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 500px) {
  .blog-posts__list {
    grid-template-columns: 1fr;
  }
}
.blog-posts__item div.image img {
  display: block;
  aspect-ratio: 19/12;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.blog-posts__item p {
  margin-bottom: 0;
}
.blog-posts__item p.date {
  padding: 10px 0;
}
.blog-posts__item p.title {
  min-height: 2lh;
}
.blog-posts__item p.title, .blog-posts__item p.excerpt {
  margin-bottom: 15px;
}
.blog-posts__item p.excerpt {
  align-self: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* number of lines to show */
  line-clamp: 1;
  -webkit-box-orient: vertical;
}
