{"exhibit":{"id":30,"title":"Achille Perilli \u2013 wystawa indywidualna, 24.06.1969","description":"","credits":"","featured":0,"public":1,"theme":"thedaily","theme_options":"a:1:{s:8:\"thedaily\";a:19:{s:17:\"button_background\";s:7:\"#FFFFFF\";s:11:\"button_text\";s:7:\"#000000\";s:17:\"eb_nav_background\";s:7:\"#FFFFFF\";s:11:\"eb_nav_text\";s:7:\"#000000\";s:19:\"featured_background\";s:7:\"#000000\";s:13:\"featured_text\";s:7:\"#FFFFFF\";s:21:\"home_intro_background\";s:7:\"#000000\";s:15:\"home_intro_text\";s:7:\"#FFFFFF\";s:22:\"top_nav_highlight_text\";s:7:\"#FFFFFF\";s:4:\"logo\";N;s:12:\"header_image\";N;s:16:\"header_image_alt\";s:0:\"\";s:22:\"homepage_text_position\";s:3:\"top\";s:11:\"footer_text\";s:0:\"\";s:24:\"display_footer_copyright\";s:1:\"0\";s:19:\"use_advanced_search\";s:1:\"0\";s:11:\"other_media\";s:1:\"0\";s:20:\"lightgallery_caption\";s:5:\"title\";s:17:\"navigation_scroll\";s:1:\"1\";}}","slug":"achille-perilli---wystawa-indy","added":"2026-03-18 23:14:08","modified":"2026-04-30 09:31:46","owner_id":4,"use_summary_page":1,"cover_image_file_id":1184},"item":{"id":247,"item_type_id":null,"collection_id":31,"featured":0,"public":1,"added":"2026-03-18 23:16:44","modified":"2026-05-04 19:06:45","owner_id":4}}<script>
jQuery(document).ready(function($) {
    // Sprawdzamy ścieżkę URL (np. /items/browse czy /kontakt)
    var currentPath = window.location.pathname;

    // WARUNEK: Jeśli ścieżka to "/" lub pusta, tylko wtedy odpalamy menu
    if (currentPath === "/" || currentPath === "" || currentPath.indexOf("index.php") !== -1) {
        
        // 1. Dynamicznie wstrzykujemy style blokujące krzyżyk i otwierające menu
        $("<style id='foksal-menu-styles'>")
            .prop("type", "text/css")
            .html("#nav-modal { display: block !important; opacity: 1 !important; visibility: visible !important; } #nav-modal .close-button, #nav-toggle.active { display: none !important; }")
            .appendTo("head");

        // 2. Dodajemy klasę open do struktury
        $("#nav-modal").addClass("open");

        // 3. Obsługa bezpiecznego zamykania przy kliknięciu
        $("#nav-modal .navigation a").on("click", function(e) {
            var url = $(this).attr("href");
            
            if (url && url !== "#" && !url.startsWith("#")) {
                e.preventDefault();

                // Natychmiast usuwamy style i ukrywamy menu przed przejściem dalej
                $("#foksal-menu-styles").remove();
                $("#nav-modal").css({
                    "display": "none",
                    "opacity": "0",
                    "visibility": "hidden"
                }).removeClass("open");
                
                $("#nav-toggle").removeClass("active").attr("aria-expanded", "false");

                setTimeout(function() {
                    window.location.href = url;
                }, 10);
            }
        });
    }
});
</script>