{"id":2991,"date":"2026-11-09T18:01:24","date_gmt":"2026-11-09T18:01:24","guid":{"rendered":"http:\/\/mirafloresgolf.org\/?page_id=2991"},"modified":"2026-11-11T20:20:06","modified_gmt":"2026-11-11T20:20:06","slug":"video-gallery","status":"publish","type":"page","link":"https:\/\/mirafloresgolf.es\/es\/video-gallery\/","title":{"rendered":"Video Gallery"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Explore Miraflores Golf Club through our collection of videos.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls playsinline preload=\"none\" src=\"https:\/\/mirafloresgolf.es\/wp-content\/uploads\/2026\/10\/movil.mp4\"><\/video><figcaption class=\"wp-element-caption\">Miraflores Golf Club \u2014 vertical video<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video controls playsinline preload=\"none\" src=\"https:\/\/mirafloresgolf.es\/wp-content\/uploads\/2026\/10\/pc.mp4\"><\/video><figcaption class=\"wp-element-caption\">Miraflores Golf Club \u2014 course film<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video controls playsinline preload=\"none\" src=\"https:\/\/mirafloresgolf.es\/wp-content\/uploads\/2025\/11\/mp1-1-1.mp4\"><\/video><figcaption class=\"wp-element-caption\">Miraflores Golf Club \u2014 archive video 1<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video controls playsinline preload=\"none\" src=\"https:\/\/mirafloresgolf.es\/wp-content\/uploads\/2025\/11\/mp1-1.mp4\"><\/video><figcaption class=\"wp-element-caption\">Miraflores Golf Club \u2014 archive video 2<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video controls playsinline preload=\"none\" src=\"https:\/\/mirafloresgolf.es\/wp-content\/uploads\/2025\/11\/mp3.mp4\"><\/video><figcaption class=\"wp-element-caption\">Miraflores Golf Club \u2014 archive video 3<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video controls playsinline preload=\"none\" src=\"https:\/\/mirafloresgolf.es\/wp-content\/uploads\/2025\/11\/mp1.mp4\"><\/video><figcaption class=\"wp-element-caption\">Miraflores Golf Club \u2014 archive video 4<\/figcaption><\/figure>\n\n\n\n<style>\n.mgf-video-preview{position:relative;background:#10261a}\n.mgf-video-preview video{display:block;width:100%}\n.mgf-video-preview:not(.mgf-frame-ready) video{visibility:hidden;aspect-ratio:16\/9}\n.mgf-video-preview:has(video[src$=\"\/movil.mp4\"]){max-width:380px;margin-inline:auto}\n.mgf-video-preview:not(.mgf-frame-ready) video[src$=\"\/movil.mp4\"]{aspect-ratio:9\/16}\n.mgf-video-play{position:absolute;inset:0;display:grid;place-items:center;width:100%;border:0;background:transparent;cursor:pointer}\n.mgf-video-play:hover,.mgf-video-play:focus{background:transparent}\n.mgf-video-play[hidden]{display:none}\n.mgf-video-play span{display:grid;place-items:center;width:64px;height:64px;border:1px solid #fff;border-radius:50%;background:rgba(7,20,15,.78)}\n.mgf-video-play span::before{content:\"\";margin-left:4px;border-block:10px solid transparent;border-left:16px solid #fff}\n.mgf-video-play:focus-visible span{outline:3px solid #fff;outline-offset:4px}\n<\/style>\n<script>\n(() => {\n  const queue = 'IntersectionObserver' in window ? new IntersectionObserver((entries, observer) => {\n    for (const entry of entries) {\n      if (!entry.isIntersecting) continue;\n      const video = entry.target;\n      observer.unobserve(video);\n      if (video.preload === 'none') {\n        video.preload = 'auto';\n        if (video.networkState === HTMLMediaElement.NETWORK_EMPTY || video.networkState === HTMLMediaElement.NETWORK_IDLE) video.load();\n      }\n    }\n  }, {rootMargin:'240px'}) : null;\n\n  for (const video of document.querySelectorAll('main .wp-block-video > video')) {\n    const figure = video.parentElement;\n    const preview = document.createElement('div');\n    preview.className = 'mgf-video-preview';\n    video.before(preview);\n    preview.append(video);\n\n    const play = document.createElement('button');\n    const caption = figure.querySelector('figcaption')?.textContent.trim();\n    play.type = 'button';\n    play.className = 'mgf-video-play';\n    play.setAttribute('aria-label', caption ? 'Play ' + caption : 'Play video');\n    const icon = document.createElement('span');\n    icon.setAttribute('aria-hidden', 'true');\n    play.append(icon);\n    preview.append(play);\n    video.controls = false;\n\n    const showFrame = () => preview.classList.add('mgf-frame-ready');\n    video.addEventListener('loadeddata', showFrame, {once:true});\n    if (video.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA) showFrame();\n    video.addEventListener('error', () => {\n      showFrame();\n      video.controls = true;\n      play.hidden = true;\n    }, {once:true});\n    play.addEventListener('click', () => {\n      queue?.unobserve(video);\n      video.preload = 'auto';\n      video.controls = true;\n      play.hidden = true;\n      showFrame();\n      video.play().catch(() => video.focus());\n      if (document.activeElement === play) video.focus();\n    });\n\n    if (queue) queue.observe(video);\n    else video.preload = 'auto';\n  }\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Explore Miraflores Golf Club through our collection of videos.<\/p>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2991","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/mirafloresgolf.es\/es\/wp-json\/wp\/v2\/pages\/2991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mirafloresgolf.es\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mirafloresgolf.es\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mirafloresgolf.es\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mirafloresgolf.es\/es\/wp-json\/wp\/v2\/comments?post=2991"}],"version-history":[{"count":3,"href":"https:\/\/mirafloresgolf.es\/es\/wp-json\/wp\/v2\/pages\/2991\/revisions"}],"predecessor-version":[{"id":3000,"href":"https:\/\/mirafloresgolf.es\/es\/wp-json\/wp\/v2\/pages\/2991\/revisions\/3000"}],"wp:attachment":[{"href":"https:\/\/mirafloresgolf.es\/es\/wp-json\/wp\/v2\/media?parent=2991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}