/* Static video previews. All playback takes place on YouTube. */
.lfd-youtube-card {
  display: block;
  width: 100%;
  max-width: var(--lfd-video-width, 760px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
}
.lfd-youtube-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #181818;
  color: #fff;
  font-family: Arial, sans-serif;
}
.lfd-youtube-visual img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.lfd-youtube-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 14%, 110px);
  aspect-ratio: 1.43;
  border-radius: 24% / 30%;
  background: #ff0033;
  box-shadow: 0 2px 12px rgb(0 0 0 / 15%);
  transition: background-color .2s, scale .2s;
}
.lfd-youtube-play::after {
  content: '';
  position: absolute;
  left: 41%;
  top: 28%;
  width: 29%;
  height: 44%;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.lfd-youtube-watch {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px 0 0 0;
  background: rgb(0 0 0 / 68%);
  color: #fff;
  font-size: clamp(12px, 1.3vw, 18px);
  line-height: 1.4;
}
.lfd-youtube-wordmark { font-weight: 700; letter-spacing: -.6px; }
.lfd-youtube-link:hover .lfd-youtube-play { background: #e00024; scale: 1.06; }
.lfd-youtube-link:focus-visible { outline: 3px solid #1268e5; outline-offset: 4px; }
/* Portfolio hover captions must not cover the preview or intercept the link. */
.album-item > .lfd-youtube-link { display: block; }
.album-item > .lfd-youtube-link .album-item__overlay { pointer-events: none; }
.album-item > .lfd-youtube-link .album-item__img { height: auto; aspect-ratio: 16 / 9; }
.album-item > .lfd-youtube-link .lfd-youtube-visual { height: 100%; }
@media (prefers-reduced-motion: reduce) { .lfd-youtube-play { transition: none; } }
