/* short video fix desktop only V2 */
/* fix lazy load mobile overlap */
/* move portrait word to top left of portrait videos */
document.addEventListener('DOMContentLoaded', function () {
// Find portrait video wrappers (MotifCreatives already adds .is-portrait)
var wrappers = document.querySelectorAll('.mwpfv-video-thumb-wrapper.is-portrait');
wrappers.forEach(function (wrapper) {
// Avoid duplicates
if (!wrapper.querySelector('.fs-portrait-badge')) {
var badge = document.createElement('span');
badge.className = 'fs-portrait-badge';
badge.textContent = 'Portrait';
wrapper.appendChild(badge);
}
});
});
/* stop flash of second video player on popup load and add to cart */
/* lazy load video thumbs */