/* ---------------------------------------------------------------------------
   The grid of videos, and one video card. Ends with the two media queries
   that change the column count.
   --------------------------------------------------------------------------- */

.video-grid {
  background-color: rgba(96, 97, 97, 0.05);

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 15px;
  row-gap: 30px;

  padding-top: 80px;
  padding-left: 100px;
  padding-right: 25px;
  padding-bottom: 30px;
}

.video-thumbnail-row {
  position: relative;
}

.thumbnail {
  width: 100%;
  display: block;
  margin-bottom: 12px;
  cursor: pointer;
}

.video-time {
  position: absolute;
  bottom: 16px;
  right: 4px;
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 5px;
  border-radius: 1px;
}

.video-info-grid {
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 15px;
}

.channel-image {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  object-fit: cover;
  cursor: pointer;
}

.video-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  cursor: pointer;
}

.video-author {
  font-size: 13px;
  color: #606060;
}

.video-stats {
  font-size: 13px;
  color: #606060;
  margin-top: 4px;
}

/* responsive, from chapter 11 */

@media (min-width: 1050px) {
  .video-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (max-width: 750px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}
