.trending-wrapper {
  max-width: var(--site-width);
  margin: auto;
}

.trending-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.thumbnail-list{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.layout__region {
  min-width: 0;
}

/* Style and position the counter */
.trending-wrapper .slider-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  
  /* Layout & Spacing */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  
  /* Visuals */
  /*background-color: rgba(0, 0, 0, 0.65);*/
  background-color: #ffffff;
  color: var(--color-text);
  border-radius: 20px;
  
  /* Typography */
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums; /* Prevents shifting when numbers change */
}

/* Make the current page stand out */
.trending-wrapper .slider-counter .current {
  font-weight: 700;
  color: var(--color-text);
}

/* Slightly fade the total number */
.trending-wrapper .slider-counter .total {
  color: rgba(0, 0, 0, 0.7);
}

/* Tablet */
@media (min-width:300px){
  .thumbnail-list{
    grid-template-columns:repeat(1,1fr);
  }

  .trending-grid {
    grid-template-columns: 1fr;
  }
}

@media(min-width: 768px) {
  .thumbnail-list{
    grid-template-columns:repeat(2,1fr);
  }
  .trending-grid {
    grid-template-columns: 1fr;
  }  
}

@media (min-width:1024px){
  .thumbnail-list{
    grid-template-columns:repeat(3,1fr);
  }
  .trending-grid {
    grid-template-columns: 2fr 1fr;
  }  
}