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

main::after {
  content: none;
}

.bl_content {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.bl_column {
  width: 100%;
  padding-inline: var(--col-1);
  display: flex;
}

.bl_column a {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--col-8);
  width: 100%;
  font-size: 16px;
}

.bl_column a .bl_columnThumb {
  aspect-ratio: 250 / 160;
  overflow: hidden;
}

.bl_column a .bl_columnThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bl_column a .bl_columnMeta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  align-items: center;
}

.bl_column a:hover {
  text-decoration: underline;
}

.bl_column a:hover .bl_columnThumb img {
  transform: scale(1.1);
}

.bl_column .bl_columnCategory {
  font-size: 12px;
  padding: 4px 8px;
  color: #fff;
  background-color: var(--color-azuki);
}

.bl_column:nth-child(even) {
  justify-content: flex-end;
}

.bl_noContent {
  text-align: center;
  font-size: 18px;
  padding: 80px 0;
}

@media screen and (min-width: 768px) {
  .ly_archive {
    padding-inline: calc(var(--col-1) * 2);
  }

  .bl_content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 21px;
  }

  .bl_column {
    padding: 0;
  }
}

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