.ytgrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: clamp(3rem, 3.8vw, 4.25rem);
  column-gap: clamp(1.8rem, 2.5vw, 2.5rem);
  margin-top: 2.5rem;
}

.ytcard {
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.ytcard:hover,
.ytcard:focus-visible {
  transform: translateY(-2px);
}

.ytcard:hover .ytthumb,
.ytcard:focus-visible .ytthumb {
  box-shadow: 0 14px 38px #0004;
  outline: 1px solid var(--g);
}

.ytthumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #0c1727;
  border-radius: 2px;
  overflow: hidden;
}

.ytthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ytthumb .play {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.ytmeta {
  padding: 0.7rem 0 0;
}

.ytmeta h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
}

.ytchannel {
  display: none;
}

.ytmeta span {
  display: none;
}

.video-separator {
  height: 1px;
  margin: 5rem 0;
  background: #ffffff30;
}

@media (max-width: 1050px) {
  .ytgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ytgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.75rem;
    column-gap: 1.4rem;
  }
}

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