/**
 * Layout saigonchess9 — "Lưới 6 cột"
 *
 * Cùng một khuôn với saigonchess4/8, chỉ đổi số cột. Sáu cột thì mỗi thẻ chỉ
 * còn khoảng 1/6 bề ngang khối, nên chữ nhỏ thêm một nấc nữa so với lưới 5 cột
 * và phần tóm tắt được giấu đi — ở bề ngang này nó chỉ còn là một vệt xám.
 */

.saigonchess9 .saigonchess9__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gutter-width, 32px);
  margin: 0;
}

.saigonchess9 .jacl-row.small-gutters.saigonchess9__grid { gap: var(--gutter-small, 3px); }
.saigonchess9 .jacl-row.large-gutters.saigonchess9__grid { gap: var(--gutter-large, 36px); }
.saigonchess9 .jacl-row.extra-large-gutters.saigonchess9__grid { gap: var(--gutter-extra-large, 36px); }
.saigonchess9 .jacl-row.no-gutters.saigonchess9__grid { gap: 0; }

.saigonchess9 .saigonchess9__grid > [class*="jacl-col"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  min-width: 0;
}

.saigonchess9 .jacl-item,
.saigonchess9 .jacl-item__inner {
  height: 100%;
}

.saigonchess9 .jacl-item__media,
.saigonchess9 .jacl-item__media a {
  aspect-ratio: 4 / 3;
  height: auto;
  padding-bottom: 0;
}

.saigonchess9 .jacl-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saigonchess9 .jacl-item__title {
  font-size: .82rem;
  line-height: 1.3;
}

.saigonchess9 .jacl-item__title a {
  -webkit-line-clamp: 3;
}

.saigonchess9 .jacl-item__body {
  padding: 10px 10px 9px;
}

/* Ở 1/6 bề ngang, tóm tắt cắt còn một dòng rưỡi thì đọc không ra nghĩa gì —
   bỏ hẳn cho gọn. Ai vẫn muốn hiện thì xoá quy tắc này. */
.saigonchess9 .jacl-item__introtext {
  display: none;
}

.saigonchess9 .jacl-item__meta ul {
  font-size: 10px;
}

/* Ngưỡng bám theo bề ngang CỦA KHỐI, không phải cửa sổ — module hay nằm trong
   một cột của bố cục lưới. */
.saigonchess9 {
  container-type: inline-size;
}

@container (max-width: 1100px) {
  .saigonchess9 .saigonchess9__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@container (max-width: 760px) {
  .saigonchess9 .saigonchess9__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@container (max-width: 520px) {
  .saigonchess9 .saigonchess9__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 1199px) {
    .saigonchess9 .saigonchess9__grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  @media (max-width: 991px) {
    .saigonchess9 .saigonchess9__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 575px) {
    .saigonchess9 .saigonchess9__grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}
