
/* HUSSEIN_LAST_CARD_V1 */

/* Center the seventh video on large screens. */
@media(min-width:951px) {
  .hl-gallery-grid[data-mode="all"]
  > .hl-gallery-card:last-child:nth-child(3n + 1),
  .hl-gallery-grid[data-mode="video"]
  > .hl-gallery-card:last-child:nth-child(3n + 1) {
    grid-column:2 !important;
  }
}

/* Center odd final cards in two-column layouts. */
@media(min-width:521px) and (max-width:950px) {
  .hl-gallery-grid[data-mode="all"]
  > .hl-gallery-card:last-child:nth-child(2n + 1),
  .hl-gallery-grid[data-mode="video"]
  > .hl-gallery-card:last-child:nth-child(2n + 1) {
    grid-column:1 / -1 !important;
    justify-self:center;
    width:calc((100% - 16px)/2) !important;
  }
}

@media(max-width:520px) {
  .hl-gallery-grid .hl-gallery-card {
    grid-column:auto !important;
    width:100% !important;
  }
}
