.section-recent-video{
    background-color: #191919;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.video {
    position: relative;
    overflow: hidden;
}

/* -----Thumbnail----- */
.thumbnail-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video img.thumbnail-img {
    width: 100%;
    height: auto;
    transition: filter 0.3s;
}

.youtube-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    width: 4em;
    height: auto;
    z-index: 1;
}

/* -----Hover----- */
.video-grid .video:hover .youtube-logo {
    opacity: 1;
}

.video-grid .video:hover .thumbnail-container img.thumbnail-img {
    filter: brightness(70%);
}

.video-grid .video:hover .video-title p {
    color: #1464dc;
    transition: color 0.3s ease;
}

/* -----Responsive----- */
@media only screen and (max-width: 1024px) {
    .video-grid {
      grid-template-columns: repeat(1, 1fr);
    }
  }
  @media only screen and (max-width: 768px) {
    .youtube-logo {
      opacity: 1;
    }
  }
  
  @media only screen and (min-width: 640px) {
    .video-grid {
      padding-right: 32px;
      padding-left: 32px;
    }
    .video {
      padding: 16px;
    }
  }
  
  @media only screen and (max-width: 639px) {
    .video-grid {
      padding-right: 16px;
      padding-left: 16px;
    }
    .video {
      padding: 8px;
    }
  }
  