/* Shared cover format: landscape on desktop, portrait on mobile. */
body .home-video-section .home-video-waterfall,
body.video-list-page .feed {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  columns: auto !important;
  gap: 28px 22px !important;
  align-items: start
}

body .home-video-section .home-video-waterfall .video-tile,
body.video-list-page .feed .note {
  display: block !important;
  width: 100% !important;
  min-width: 0;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important
}

body.video-list-page .feed .note[hidden] {
  display: none !important
}

body .home-video-section .home-video-waterfall .video-tile .cover,
body.video-list-page .feed .note .cover {
  display: block !important;
  position: relative;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  margin: 0 !important;
  border-radius: 8px !important;
  background: #e7eaed !important;
  overflow: hidden;
  box-shadow: none !important
}

body .home-video-section .home-video-waterfall .cover:before {
  content: none !important
}

body .home-video-section .home-video-waterfall .cover picture,
body.video-list-page .feed .cover picture {
  position: absolute;
  inset: 0;
  display: block
}

body .home-video-section .home-video-waterfall .cover picture img,
body.video-list-page .feed .cover picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease
}

body .home-video-section .video-tile:hover .cover picture img,
body.video-list-page .note:hover .cover picture img {
  transform: scale(1.025)
}

body .home-video-section .home-video-waterfall .video-tile h3,
body.video-list-page .feed .note h3 {
  display: block !important;
  margin: 10px 0 0 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important
}

body .home-video-section .video-tile p {
  margin: 4px 0 0 !important
}

@media(min-width:761px) and (max-width:1100px) {

  body .home-video-section .home-video-waterfall,
  body.video-list-page .feed {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 16px !important
  }
}

@media(max-width:760px) {

  body .home-video-section .home-video-waterfall,
  body.video-list-page .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 12px !important
  }

  body .home-video-section .home-video-waterfall .video-tile .cover,
  body.video-list-page .feed .note .cover {
    aspect-ratio: 3/4 !important
  }

  body .home-video-section .home-video-waterfall .video-tile h3,
  body.video-list-page .feed .note h3 {
    margin-top: 8px !important
  }
}

@media(prefers-reduced-motion:reduce) {

  body .home-video-section .cover picture img,
  body.video-list-page .feed .cover picture img {
    transition: none !important;
    transform: none !important
  }
}
