/* The uploaded artwork is never stretched or cropped. Colour fills only the
   unused space in each card without changing its size or its link. */
body.wp-theme-yamatab main #yt-hero .yt-slide>img,
body.wp-theme-yamatab main :is(#yt-pop,#yt-new) .yt-card-link>img,
body.wp-theme-yamatab #yt-content .yt-series-poster-link>img,
body.wp-theme-yamatab #yt-content .yt-post-poster>.yt-post-image,
body.wp-theme-yamatab #yt-content #yt-series .yt-series-stack>img,
body.wp-theme-yamatab #yt-content .yt-archive-cover img,
body.wp-theme-yamatab #yt-header #yt-quick-results img{
 object-fit:contain;object-position:center;
}
body.wp-theme-yamatab #yt-content #yt-series .yt-series-stack>img{
 aspect-ratio:3/4;background:#19141d;
}
body.wp-theme-yamatab main #yt-hero .yt-slide.yt-fit-bg::before,
body.wp-theme-yamatab main :is(#yt-pop,#yt-new) .yt-card-link.yt-fit-bg::before,
body.wp-theme-yamatab #yt-content .yt-series-poster-link.yt-fit-bg::before,
body.wp-theme-yamatab #yt-content .yt-post-poster.yt-fit-bg::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:var(--yt-fit-src) center/cover no-repeat;
 filter:blur(13px) brightness(.36);transform:scale(1.07);
}
body.wp-theme-yamatab main #yt-hero .yt-slide.yt-fit-bg::before{filter:blur(20px) brightness(.48)}
body.wp-theme-yamatab main :is(#yt-pop,#yt-new) .yt-card-link.yt-fit-bg::before,
body.wp-theme-yamatab #yt-content .yt-series-poster-link.yt-fit-bg::before,
body.wp-theme-yamatab #yt-content .yt-post-poster.yt-fit-bg::before{z-index:0}
body.wp-theme-yamatab main :is(#yt-pop,#yt-new) .yt-card-link>img,
body.wp-theme-yamatab #yt-content .yt-series-poster-link>img,
body.wp-theme-yamatab #yt-content .yt-post-poster>.yt-post-image{z-index:0}
body.wp-theme-yamatab #yt-content .yt-series-poster-link{overflow:hidden}
@media(min-width:761px){
 /* Keep the whole foreground below the floating header. */
 body.wp-theme-yamatab main #yt-hero .yt-slide>img{
  inset:110px 0 0;width:100%;height:calc(100% - 110px);
 }
}
@media(max-width:760px){
 body.wp-theme-yamatab main #yt-hero .yt-slide{
  --yt-mobile-media:clamp(168px,56.25vw,400px);
 }
 body.wp-theme-yamatab main #yt-hero .yt-slide.yt-fit-bg::before{
  height:var(--yt-mobile-media);bottom:auto;transform:none;
 }
}

