.board-gallery--legacy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.board-gallery--legacy > li {
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid #e2e2e2;
  background: #fff;
}

.board-gallery--legacy > li > a,
.board-gallery--legacy strong,
.board-gallery--legacy .board-gallery-number {
  display: block;
}

.board-gallery--legacy img {
  display: block;
  width: 100%;
  height: 200px;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
}

.board-gallery--legacy strong {
  margin: 10px 0;
  overflow: hidden;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-gallery--legacy .board-gallery-number {
  color: rgb(0 0 0 / 60%);
  font-size: 16px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.pagination-direction {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 767px) {
  .board-gallery--legacy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .board-gallery--legacy > li {
    padding: 14px;
  }

  .board-gallery--legacy img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .board-gallery--legacy strong {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .board-gallery--legacy {
    grid-template-columns: 1fr;
  }
}
