window.onload = function() { const videoImagePairs = document.querySelectorAll('.feature-grid video + img');
videoImagePairs.forEach(img => { const video = img.previousElementSibling; if (video && video.tagName.toLowerCase() === 'video') { video.setAttribute('poster', img.src); } });
console.log('Video posters have been set.'); };