.videoFeatured {
  margin-bottom: 2em;
}

.videoFeatured p {
  margin-top: .5em;
}

.videos section {
  overflow: auto;
  position: relative;
}

.videos .flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.video-gallery.ws-flex {
  --ws-column-count: 3;
  --ws-gap: 1.5em;
}

.videos .flex>article {
  width: calc(33.33% - 1em);
}

.videoThumb {
  display: block;
  float: left;
  margin-bottom: 2em;
  width: 100%;
}

.videoThumb>div {
  background: no-repeat center / cover;
  display: block;
  margin-bottom: .5em;
  padding-top: 56.25%;
  position: relative;
  width: 100%;
}

.videoThumb>div::before {
  aspect-ratio: 1;
  background: #FFF;
  mask: url('/images/icons/play-circle.svg') no-repeat center/ contain;
  content: '';
  height: 36%;
  inset: 50% auto auto 50%;
  position: absolute;
  transform: translate(-50%,-50%);
  transition: all .3s ease;
}

.videoThumb:is(:hover,:focus-visible)>div::before {
  background: var(--ws-yellow);
}



/* h3 on main video page, h2 on category pages */
.videoThumb :is(h2, h3) {
  font-size: var(--ws-text-20);
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videoThumb :is(h2, h3)>span {
  font-size: .8em;
}


:is(.videoThumb, .videoFeatured) time {
  color: rgba(0,0,0,.5);
  display: block;
  font-size: .8em;
  line-height: 1.2em;
}

.videos .videoEmbed {
  overflow: hidden;
  padding-top: 56.25%;
  position: relative;
  width: 100% !important;
}

.videoEmbed>iframe,
.videoEmbed>.video-js {
  height: 100% !important;
  left: 0px;
  position: absolute;
  top: 0px;
  width: 100% !important;
}



/* 1024px */
@media (max-width: 64em) {
  .video-gallery.ws-flex {
    --ws-column-count: 2;
  }
}



/* 900px */
@media (max-width: 56.25em) {
  .videos .flex>article {
    width: calc(50% - 1em);
  }
}

/* 500px */
@media (max-width: 31.25em) {
  .videos .flex>article {
    width: 100%;
  }

  .video-gallery.ws-flex {
    --ws-column-count: 1;
  }

}


/* Desktop only */
/* 750px */
@media (min-width: 46.875em) {
  .videoThumb:is(:hover, :focus-visible) span span {
    opacity: 1;
  }
}
