{"id":180,"date":"2026-06-24T16:39:34","date_gmt":"2026-06-24T14:39:34","guid":{"rendered":"https:\/\/cultura-travelmarocco.com\/galleria\/"},"modified":"2026-06-24T16:39:34","modified_gmt":"2026-06-24T14:39:34","slug":"galleria","status":"publish","type":"page","link":"https:\/\/cultura-travelmarocco.com\/en\/galleria\/","title":{"rendered":"Galleria"},"content":{"rendered":"    <div class=\"ctm-gallery\" style=\"--cols: 3\">\n              <a class=\"ctm-gallery__item\" href=\"https:\/\/cultura-travelmarocco.com\/wp-content\/uploads\/2026\/06\/IMG_4186-scaled.jpg\" data-lightbox=\"ctm-gallery\">\n          <img decoding=\"async\" src=\"https:\/\/cultura-travelmarocco.com\/wp-content\/uploads\/2026\/06\/IMG_4186-768x1024.jpg\" loading=\"lazy\" alt=\"img_4186\">\n        <\/a>\n              <a class=\"ctm-gallery__item\" href=\"https:\/\/cultura-travelmarocco.com\/wp-content\/uploads\/2026\/06\/IMG_4188-scaled.jpg\" data-lightbox=\"ctm-gallery\">\n          <img decoding=\"async\" src=\"https:\/\/cultura-travelmarocco.com\/wp-content\/uploads\/2026\/06\/IMG_4188-768x1024.jpg\" loading=\"lazy\" alt=\"img_4188\">\n        <\/a>\n              <a class=\"ctm-gallery__item\" href=\"https:\/\/cultura-travelmarocco.com\/wp-content\/uploads\/2026\/06\/IMG_4211-scaled.jpg\" data-lightbox=\"ctm-gallery\">\n          <img decoding=\"async\" src=\"https:\/\/cultura-travelmarocco.com\/wp-content\/uploads\/2026\/06\/IMG_4211-768x960.jpg\" loading=\"lazy\" alt=\"img_4211\">\n        <\/a>\n          <\/div>\n    <div class=\"ctm-lightbox\" hidden><img alt=\"\"><button class=\"ctm-lightbox__close\" aria-label=\"Chiudi\">&times;<\/button><\/div>\n    <style>\n      .ctm-gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 12px; max-width: 1200px; margin: 24px auto; padding: 0 16px; }\n      .ctm-gallery__item { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 4\/3; }\n      .ctm-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }\n      .ctm-gallery__item:hover img { transform: scale(1.04); }\n      .ctm-gallery-empty { text-align: center; color: #6b6b6b; padding: 48px 24px; }\n      @media (max-width: 900px) { .ctm-gallery { grid-template-columns: repeat(2, 1fr); } }\n      @media (max-width: 480px) { .ctm-gallery { grid-template-columns: 1fr; } }\n      .ctm-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px; }\n      .ctm-lightbox[hidden] { display: none; }\n      .ctm-lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; }\n      .ctm-lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.8rem; cursor: pointer; }\n      .ctm-lightbox__close:hover { background: rgba(255,255,255,0.25); }\n    <\/style>\n    <script>\n    (function(){\n      var box = document.querySelector('.ctm-lightbox');\n      if (!box) return;\n      var img = box.querySelector('img');\n      var close = box.querySelector('.ctm-lightbox__close');\n      document.querySelectorAll('.ctm-gallery__item').forEach(function(a){\n        a.addEventListener('click', function(e){\n          e.preventDefault();\n          img.src = a.getAttribute('href');\n          img.alt = a.querySelector('img').alt;\n          box.hidden = false;\n        });\n      });\n      function hide(){ box.hidden = true; img.src=''; }\n      close.addEventListener('click', hide);\n      box.addEventListener('click', function(e){ if (e.target === box) hide(); });\n      document.addEventListener('keydown', function(e){ if (e.key === 'Escape') hide(); });\n    })();\n    <\/script>\n    \n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"class_list":["post-180","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cultura-travelmarocco.com\/en\/wp-json\/wp\/v2\/pages\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cultura-travelmarocco.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cultura-travelmarocco.com\/en\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/cultura-travelmarocco.com\/en\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":0,"href":"https:\/\/cultura-travelmarocco.com\/en\/wp-json\/wp\/v2\/pages\/180\/revisions"}],"wp:attachment":[{"href":"https:\/\/cultura-travelmarocco.com\/en\/wp-json\/wp\/v2\/media?parent=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}