/**
 * File: archive.css
 * Usage: archive.php(投稿の一覧ページ)のスタイルを定義します。
*/

.ly_columnPosts {
  padding-inline: 20px;
}

.bl_columnPosts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px 10px;
}

.bl_columnPost a {
  display: flex;
  flex-direction: column;
}

.bl_columnPostThumb {
  overflow: hidden;
  width: 100%;
}

.bl_columnPostThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl_columnPostMeta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bl_columnPostContent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bl_columnPostTitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
}

.bl_columnPostExcerpt {
  font-size: 12px;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-pagenavi {
  display: flex;
  gap: 20px;
  font-size: 20px;
  font-weight: 700;
  justify-content: center;
  margin-top: 60px;
}

.wp-pagenavi .current {
  color: #41b3cb;
}

@media screen and (min-width: 768px) {
  .ly_columnPosts {
    padding-inline: 0;
  }

  .bl_columnPosts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 20px;
    max-width: 1000px;
    margin-inline: auto;
    justify-items: center;
  }

  .bl_columnPost a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
  }

  .bl_columnPost {
    max-width: 320px;
  }

  .bl_columnPostThumb {
    aspect-ratio: 16 / 10;
    max-width: 320px;
  }

  .bl_columnPostMeta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .bl_columnPostTitle {
    font-size: 16px;
  }
}

@media screen and (min-width: 1024px) {
  .bl_columnPosts {
    grid-template-columns: repeat(3, 1fr);
  }
}
