/* Video Cards (content-video-cards.php). Colors assume a dark background. */

.video-cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.video-cards-row-4 {
  grid-template-columns: repeat(4, 1fr);
}
.video-cards-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-card video,
.video-card-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  overflow: hidden;
  background-color: #000000;
  border: 1px solid #2e2b27;
  border-radius: 3px;
}
.video-cards-wide .video-card video,
.video-cards-wide .video-card-link {
  aspect-ratio: 16 / 9;
}
.video-card-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background-color: rgba(242, 238, 230, 0.94);
}
.video-card-play:before {
  content: "";
  position: absolute;
  left: 21px;
  top: 17px;
  border-left: 16px solid #100f0e;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.video-card b {
  display: block;
  font-family: "Charpentier", "Garamond Fill", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
}
.video-card span {
  font-size: 13px;
  color: rgba(242, 238, 230, 0.6);
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .video-cards-row,
  .video-cards-row-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .video-cards-row,
  .video-cards-row-4,
  .video-cards-row-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
