document.addEventListener('DOMContentLoaded', function () { // --- Featured image wrap (existing) --- const existing = document.querySelector('.featured-image-wrap'); if (existing) existing.remove(); const wrap = document.createElement('div'); wrap.className = 'featured-image-wrap'; wrap.style.cssText = 'background-image: url(https://snowbowlsteamboat.com/wp-content/uploads/2022/05/music-banner-1.jpg)'; wrap.innerHTML = '<div class="wrap"><h1>Events</1></div>'; const header = document.querySelector('.site-header'); if (header) { header.insertAdjacentElement('afterend', wrap); } // --- Intro section (new) --- const existingIntro = document.querySelector('.events-intro'); if (existingIntro) existingIntro.remove(); const introEl = document.createElement('div'); introEl.innerHTML = "<div class=\"events-intro\"><div class=\"wrap\"><h2 class=\"events-intro__secondary-title\">CELEBRATE YOUR NEXT EVENT AT SNOW BOWL<\/h2><p class=\"events-intro__small-title\">BIRTHDAY PARTIES, HOLIDAY CELEBRATIONS, PRIVATE RECEPTIONS, CONCERTS - We can do it all!<\/p><p class=\"events-intro__description\">If you\u2019re interested in hosting an event at Snow Bowl Steamboat, please click the link below and provide us with the details. We'll be in touch with you shortly!<\/p><div class=\"events-intro__buttons\"><a href=\"mailto:info@snowbowlsteamboat.com\" class=\"events-intro__btn\"><button>Book an Event<\/button><\/a><a href=\"\/wp-content\/uploads\/2024\/12\/Party-Menu.pdf\" class=\"events-intro__btn\"><button>Download our Summer Party Menu<\/button><\/a><\/div><p class=\"events-intro__text-section\">Check out what's happening at Snow Bowl below!<\/p><\/div><\/div>"; const introSection = introEl.firstElementChild; const featuredWrap = document.querySelector('.featured-image-wrap'); if (featuredWrap) { featuredWrap.insertAdjacentElement('afterend', introSection); } else if (header) { header.insertAdjacentElement('afterend', introSection); } });