/*
* Styles for the tag archive page
*/

.tag-archive .posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px;
}

.tag-archive .post-article {
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tag-archive .post-article .entry-header {
  padding: 10px 15px;
}

body.tag-archive .entry-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-archive .post-article .entry-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.tag-archive .post-article .entry-summary {
  padding: 10px 15px;
  font-size: 0.9em;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .tag-archive .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tag-archive .posts {
    grid-template-columns: 1fr;
  }
}
