.lazy-video-container { z-index: z("base"); position: relative; display: block; height: 0; padding: 0 0 56.25% 0; background-color: #000; margin-bottom: 12px; .video-thumbnail { cursor: pointer; overflow: hidden; height: 0; padding: 0 0 56.25% 0; img { object-fit: cover; width: 100%; pointer-events: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-height: 100%; } &:hover, &:focus { .icon { transform: translate(-50%, -50%) scale(1.1); } } &:focus { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; } &:active { outline: 0px; } } .title-container { position: absolute; display: flex; align-items: center; top: 0; width: 100%; height: 60px; overflow: hidden; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(255, 0, 0, 0)); .title-wrapper { overflow: hidden; padding-inline: 20px; padding-block: 10px; .title-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; text-decoration: none; font-size: 18px; font-family: Arial, sans-serif; &:hover { text-decoration: underline; } } } } iframe { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; } .icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: 150ms; background-repeat: no-repeat; background-position: center; max-width: 30%; // Default play button background-image: svg-uri( "" ); width: 60px; height: 60px; &.youtube-icon { width: 68px; height: 48px; background-image: svg-uri( "" ); } &.vimeo-icon { width: 77px; height: 44px; background-image: svg-uri( "" ); } &.tiktok-icon { width: 58px; height: 64px; background-image: svg-uri( " " ); } } } // TikTok iframe isn't fluid .lazy-video-container.tiktok-onebox { width: 332px; height: 745px; padding: 0; .video-thumbnail.tiktok img { height: 745px; } iframe { min-width: 332px; height: 742px; background-color: #fff; border-top: 3px solid #fff; border-radius: 9px; } } // Overrides core onebox height: auto; that can cause a conflict .lazy-video-wrapper .lazy-video-container.youtube-onebox { height: 0; }