/* ---------------------------------------------------------------
   Videos page: thumbnails linking out to the YouTube channel.
   --------------------------------------------------------------- */

.videos__actions {
  margin-top: 26px;
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px 24px;
  margin-top: 46px;
}

.video {
  display: block;
  color: inherit;
  transition: transform var(--med);
}

.video:hover {
  color: inherit;
  transform: translateY(-3px);
}

.video__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  transition: border-color var(--med), box-shadow var(--med);
}

.video:hover .video__frame {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow);
}

.video__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--med), transform 700ms var(--ease);
}

.video__frame img.is-loaded {
  opacity: 1;
}

.video:hover .video__frame img {
  transform: scale(1.04);
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #05070e00 40%, #05070e8c 100%);
  opacity: 0;
  transition: opacity var(--med);
}

.video:hover .video__play {
  opacity: 1;
}

.video__play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #05070ecc;
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  transform: scale(0.9);
  transition: transform var(--med);
}

.video:hover .video__play span {
  transform: scale(1);
}

.video__play svg {
  width: 17px;
  height: 17px;
  fill: var(--gold);
  margin-left: 3px;
}

.video__length {
  position: absolute;
  right: 9px;
  bottom: 9px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #05070ee0;
  color: var(--text);
  border: 1px solid var(--line);
}

.video__title {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  margin: 14px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--fast);
}

.video:hover .video__title {
  color: var(--gold-bright);
}
