{"id":30421,"date":"2025-11-23T03:25:50","date_gmt":"2025-11-23T02:25:50","guid":{"rendered":"https:\/\/www.atleticaconcorezzo.it\/?page_id=30421"},"modified":"2026-01-18T22:24:41","modified_gmt":"2026-01-18T21:24:41","slug":"foto","status":"publish","type":"page","link":"https:\/\/www.atleticaconcorezzo.it\/index.php\/foto\/","title":{"rendered":"Foto"},"content":{"rendered":"\n<style>\n.parent-lightbox {\n    display: none;\n    position: fixed;\n    top: 0; left: 0; right: 0; bottom: 0;\n    background: rgba(0, 0, 0, 0.9);\n    justify-content: center;\n    align-items: center;\n    z-index: 9999;\n}\n\n.parent-lightbox.visible {\n    display: flex;\n}\n\n.parent-lightbox img {\n    max-width: 90% !important;\n    max-height: 80vh;\n}\n\n.parent-lightbox .close,\n.parent-lightbox .nav {\n    position: absolute;\n    color: white;\n    font-size: 40px;\n    cursor: pointer;\n    user-select: none;\n    text-shadow: 2px 2px black;\n}\n\n.parent-lightbox .close {\n    top: 20px;\n    right: 30px;\n}\n\n.parent-lightbox .nav.prev {\n    left: 30px;\n    top: 50%;\n    transform: translateY(-50%);\n}\n\n.parent-lightbox .nav.next {\n    right: 30px;\n    top: 50%;\n    transform: translateY(-50%);\n}\n<\/style>\n\n<!-- Lightbox container -->\n<div id=\"parent-lightbox\" class=\"parent-lightbox\">\n    <span class=\"close\" onclick=\"closeParentLightbox()\">&times;<\/span>\n    <span class=\"nav prev\" onclick=\"navigateParent(-1)\">&#10094;<\/span>\n    <img decoding=\"async\" id=\"parent-lightbox-img\" src=\"\" alt=\"Image\" \/>\n    <span class=\"nav next\" onclick=\"navigateParent(1)\">&#10095;<\/span>\n<\/div>\n\n<script>\nlet parentImages = [];\nlet parentIndex = 0;\n\nfunction closeParentLightbox() {\n    document.getElementById(\"parent-lightbox\").classList.remove(\"visible\");\n}\n\nfunction navigateParent(direction) {\n    if (parentImages.length === 0) return;\n    parentIndex += direction;\n    if (parentIndex < 0) parentIndex = parentImages.length - 1;\n    if (parentIndex >= parentImages.length) parentIndex = 0;\n    document.getElementById(\"parent-lightbox-img\").src = parentImages[parentIndex];\n}\n\nwindow.addEventListener(\"message\", function(event) {\n    if (event.data.action === 'lightbox-open') {\n        const lightbox = document.getElementById(\"parent-lightbox\");\n        const img = document.getElementById(\"parent-lightbox-img\");\n        if (!img || !lightbox) return;\n\n        parentImages = event.data.srcList || [event.data.src];\n        parentIndex = event.data.currentIndex || 0;\n\n        img.src = parentImages[parentIndex];\n        lightbox.classList.add(\"visible\");\n    }\n});\n\ndocument.addEventListener('keydown', function(e) {\n    const isVisible = document.getElementById(\"parent-lightbox\").classList.contains(\"visible\");\n    if (!isVisible) return;\n\n    if (e.key === 'ArrowLeft') navigateParent(-1);\n    else if (e.key === 'ArrowRight') navigateParent(1);\n    else if (e.key === 'Escape') closeParentLightbox();\n});\n<\/script>\n\n\n\n<div class=\"wp-block-group is-content-justification-center is-layout-constrained wp-container-core-group-is-layout-8e58b81b wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\">\n<div id=\"gallery-container\" style=\"height:71vh\"><\/div>\n\n<script>\n  \/\/ Get query param from current URL\n  const params = new URLSearchParams(window.location.search);\n  const selected = params.get(\"selected\");\n\n  \/\/ Build iframe src accordingly\nconst cacheBuster = Date.now();\n\nconst iframeSrc = selected\n  ? `\/gallery.php?selected=${encodeURIComponent(selected)}&v=${cacheBuster}`\n  : `\/gallery.php?v=${cacheBuster}`;\n\n  \/\/ Inject the iframe dynamically\n  const iframe = document.createElement(\"iframe\");\n  iframe.src = iframeSrc;\n  iframe.width = \"100%\";\n  iframe.height = \"100%\"; \n  iframe.style.border = \"none\";\n\n  document.getElementById(\"gallery-container\").appendChild(iframe);\n<\/script>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&times; &#10094; &#10095;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-30421","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.atleticaconcorezzo.it\/index.php\/wp-json\/wp\/v2\/pages\/30421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.atleticaconcorezzo.it\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.atleticaconcorezzo.it\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.atleticaconcorezzo.it\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.atleticaconcorezzo.it\/index.php\/wp-json\/wp\/v2\/comments?post=30421"}],"version-history":[{"count":8,"href":"https:\/\/www.atleticaconcorezzo.it\/index.php\/wp-json\/wp\/v2\/pages\/30421\/revisions"}],"predecessor-version":[{"id":30823,"href":"https:\/\/www.atleticaconcorezzo.it\/index.php\/wp-json\/wp\/v2\/pages\/30421\/revisions\/30823"}],"wp:attachment":[{"href":"https:\/\/www.atleticaconcorezzo.it\/index.php\/wp-json\/wp\/v2\/media?parent=30421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}