document.addEventListener("DOMContentLoaded", function () {
if (window.location.hash === "#video") {
let unlockAttempts = 0;
let unlockScroll = setInterval(function () {
// Force scroll to top is allowed
document.body.style.overflow = "auto";
document.documentElement.style.overflow = "auto";
document.body.classList.remove("no-scroll", "scroll-lock", "locked", "elementor-hidden-overflow");
// Also ensure position and height are reset
document.body.style.position = "relative";
document.body.style.height = "auto";
unlockAttempts++;
if (unlockAttempts > 40) { // ~12 seconds
clearInterval(unlockScroll);
}
}, 300);
}
});