/* SlotNewsUpdate: homepage article-card sizes. Desktop and handheld settings stay independent. */
.post-list.snu-sized-cards {
  --snu-home-card-height:190px;
  --snu-home-image-width:200px;
  --snu-home-mobile-height:140px;
  --snu-home-mobile-image-width:112px;
  --snu-home-image-fit:cover;
  gap:14px;
  min-width:0;
}
.post-list.snu-sized-cards > .post-card {
  min-height:0;
  overflow:hidden;
  align-items:stretch;
}
.post-list.snu-sized-cards > .post-card > .post-image {
  display:block;
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  min-width:0;
  overflow:hidden;
  align-self:stretch;
  flex-shrink:0;
}
.post-list.snu-sized-cards > .post-card > .post-image > img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  object-fit:var(--snu-home-image-fit);
  object-position:center;
}
.post-list.snu-sized-cards > .post-card > .post-info {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  overflow:hidden;
}
.post-list.snu-sized-cards .post-info h2 {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
  flex:none;
}
.post-list.snu-sized-cards .post-info p {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
}
.post-list.snu-sized-cards .post-info .read-link {
  margin-top:auto;
  align-self:flex-start;
  flex-shrink:0;
}

/* DESKTOP, starting at 981px: only these rules read desktop size variables. */
@media (min-width:981px) {
  .post-list.snu-sized-cards:not(.snu-grid-cards) > .post-card {
    display:grid;
    grid-template-columns:minmax(0,var(--snu-home-image-width)) minmax(0,1fr);
    height:var(--snu-home-card-height);
  }
  /* Two-column cards requested in the visual editor remain cards on desktop. */
  .post-list.snu-sized-cards.snu-grid-cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
  }
  .post-list.snu-sized-cards.snu-grid-cards > .post-card {
    display:flex;
    flex-direction:column;
    height:calc(var(--snu-home-card-height) + 160px);
    min-height:0;
  }
  .post-list.snu-sized-cards.snu-grid-cards > .post-card > .post-image {
    height:var(--snu-home-card-height);
    flex:0 0 var(--snu-home-card-height);
  }
  .post-list.snu-sized-cards.snu-grid-cards > .post-card > .post-info {
    flex:1;
    padding:11px 2px 2px;
  }
}

/* MOBILE / TABLET, 980px or less: desktop size variables are not used. */
@media (max-width:980px) {
  /* Override the visual editor's grid mode at tablet/landscape breakpoints. */
  .post-list.snu-sized-cards,
  .post-list.snu-sized-cards.snu-grid-cards {
    grid-template-columns:minmax(0,1fr);
  }
  .post-list.snu-sized-cards > .post-card,
  .post-list.snu-sized-cards.snu-grid-cards > .post-card {
    display:grid;
    grid-template-columns:minmax(0,var(--snu-home-mobile-image-width)) minmax(0,1fr);
    height:var(--snu-home-mobile-height);
    min-height:0;
    gap:12px;
    padding:10px;
    align-items:stretch;
    overflow:hidden;
  }
  .post-list.snu-sized-cards > .post-card > .post-image {
    height:100%;
    min-height:0;
  }
  .post-list.snu-sized-cards > .post-card > .post-info {padding:2px 1px 2px 0}
  .post-list.snu-sized-cards .post-info h2 {
    -webkit-line-clamp:3;
    line-clamp:3;
    font-size:14px;
    line-height:1.32;
    margin:5px 0 6px;
  }
  .post-list.snu-sized-cards .post-info p {display:none}
  .post-list.snu-sized-cards .post-date {font-size:10px}
  .post-list.snu-sized-cards .read-link {font-size:11px}
}
