{"id":83,"date":"2026-05-08T15:48:21","date_gmt":"2026-05-08T12:48:21","guid":{"rendered":"https:\/\/kiropract.ro\/test\/?page_id=83"},"modified":"2026-05-08T15:49:10","modified_gmt":"2026-05-08T12:49:10","slug":"imagini","status":"publish","type":"page","link":"https:\/\/kiropract.ro\/test\/imagini\/","title":{"rendered":"Imagini"},"content":{"rendered":"<div><div class='gallery' id=gallery-1 >\n\t\t<a href='https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiropract2-main.png'>\n\t\t    <img loading=\"lazy\" decoding=\"async\" width=\"1264\" height=\"842\" src=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiropract2-main.png\" class=\"attachment-medium-large size-medium-large\" alt=\"\" srcset=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiropract2-main.png 1264w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiropract2-main-300x200.png 300w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiropract2-main-1024x682.png 1024w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiropract2-main-768x512.png 768w\" sizes=\"auto, (max-width: 1264px) 100vw, 1264px\" \/>\n\t\t<\/a>\n\n\t\t<a href='https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/servicii-chiropractica-cluj.jpg'>\n\t\t    <img loading=\"lazy\" decoding=\"async\" width=\"1238\" height=\"822\" src=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/servicii-chiropractica-cluj.jpg\" class=\"attachment-medium-large size-medium-large\" alt=\"\" srcset=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/servicii-chiropractica-cluj.jpg 1238w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/servicii-chiropractica-cluj-300x199.jpg 300w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/servicii-chiropractica-cluj-1024x680.jpg 1024w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/servicii-chiropractica-cluj-768x510.jpg 768w\" sizes=\"auto, (max-width: 1238px) 100vw, 1238px\" \/>\n\t\t<\/a>\n\n\t\t<a href='https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/gkhaus-back-4916984-scaled.jpg'>\n\t\t    <img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1707\" src=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/gkhaus-back-4916984-scaled.jpg\" class=\"attachment-medium-large size-medium-large\" alt=\"\" srcset=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/gkhaus-back-4916984-scaled.jpg 2560w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/gkhaus-back-4916984-300x200.jpg 300w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/gkhaus-back-4916984-1024x683.jpg 1024w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/gkhaus-back-4916984-768x512.jpg 768w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/gkhaus-back-4916984-1536x1024.jpg 1536w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/gkhaus-back-4916984-2048x1365.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/>\n\t\t<\/a>\n\n\t\t<a href='https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiro1.png'>\n\t\t    <img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"1024\" src=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiro1.png\" class=\"attachment-medium-large size-medium-large\" alt=\"\" srcset=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiro1.png 1536w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiro1-300x200.png 300w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiro1-1024x683.png 1024w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/04\/kiro1-768x512.png 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/>\n\t\t<\/a>\n\n\t\t<a href='https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/03\/succo-first-aid-850489-scaled.jpg'>\n\t\t    <img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1920\" src=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/03\/succo-first-aid-850489-scaled.jpg\" class=\"attachment-medium-large size-medium-large\" alt=\"\" srcset=\"https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/03\/succo-first-aid-850489-scaled.jpg 2560w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/03\/succo-first-aid-850489-300x225.jpg 300w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/03\/succo-first-aid-850489-1024x768.jpg 1024w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/03\/succo-first-aid-850489-768x576.jpg 768w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/03\/succo-first-aid-850489-1536x1152.jpg 1536w, https:\/\/kiropract.ro\/test\/wp-content\/uploads\/2026\/03\/succo-first-aid-850489-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/>\n\t\t<\/a><script>\n(function(){\n  var ROOT = document.currentScript.parentNode.parentNode;\n  if (!ROOT) return;\n\n  var GAP = 8;\n  var TARGET_ROW_HEIGHT = 220;\n  var MAX_ROW_DEVIATION = 0.25;\n\n  function isImageHref(href){ return \/\\.(jpe?g|png|gif|webp|avif|bmp|svg)(\\?.*)?$\/i.test(href || ''); }\n\n  function getImgMeta(img){\n    return new Promise(function(resolve){\n      var aw = parseInt(img.getAttribute('width'),10);\n      var ah = parseInt(img.getAttribute('height'),10);\n      if(!isNaN(aw)&&!isNaN(ah)&&aw>0&&ah>0){ resolve({w:aw,h:ah}); return; }\n      if(img.complete && img.naturalWidth){ resolve({w:img.naturalWidth,h:img.naturalHeight}); }\n      else{\n        img.addEventListener('load', function(){ resolve({w:img.naturalWidth||1,h:img.naturalHeight||1}); }, {once:true});\n        img.addEventListener('error', function(){ resolve({w:1,h:1}); }, {once:true});\n      }\n    });\n  }\n\n  \/\/ Fix hrefs and set captions\/group id\n  function prepareAnchors(container, groupId){\n    var imgs = container.querySelectorAll('a[href] > img');\n    var anchors = [];\n    for (var i=0;i<imgs.length;i++){\n      var img = imgs[i];\n      var a = img.closest('a'); if(!a) continue;\n\n      var href = a.getAttribute('href') || '';\n      if (!isImageHref(href)) {\n        var fullSrc = img.getAttribute('data-full') || img.currentSrc || img.src;\n        if (fullSrc) a.setAttribute('href', fullSrc);\n      }\n\n      var caption = '';\n      var fig = a.closest('figure');\n      var capEl = fig ? fig.querySelector('figcaption') : null;\n      if (capEl && capEl.textContent) caption = capEl.textContent.trim();\n      if (!caption && img.alt) caption = (img.alt || '').trim();\n      if (caption && !a.hasAttribute('data-title')) a.setAttribute('data-title', caption);\n\n      a.classList.add('jg-item');\n      a.setAttribute('data-gallery', 'glb-' + groupId);\n      anchors.push(a);\n    }\n    return anchors;\n  }\n\n  function justifyClassicGallery(galleryEl, groupId){\n    return new Promise(function(resolve){\n      var imgs = galleryEl.querySelectorAll('.gallery-item .gallery-icon a[href] > img, .gallery-item a[href] > img, a[href] > img');\n      if (!imgs.length) { resolve(false); return; }\n\n      var anchors = prepareAnchors(galleryEl, groupId);\n      if (!anchors.length) { resolve(false); return; }\n\n      var stage = document.createElement('div');\n      stage.className = 'jg-stage';\n\n      var frag = document.createDocumentFragment();\n      for (var k=0;k<anchors.length;k++){ frag.appendChild(anchors[k]); }\n\n      while (galleryEl.firstChild) galleryEl.removeChild(galleryEl.firstChild);\n      galleryEl.appendChild(stage);\n\n      Promise.all(anchors.map(function(a){ return getImgMeta(a.querySelector('img')); }))\n      .then(function(metas){\n        var rect = galleryEl.getBoundingClientRect();\n        var cw = Math.floor(galleryEl.clientWidth || stage.clientWidth || rect.width || 0);\n        if (cw <= 0) { requestAnimationFrame(function(){ justifyClassicGallery(galleryEl, groupId).then(resolve); }); return; }\n\n        var row = [], sumAr = 0;\n\n        function flush(finalRow){\n          if (!row.length) return;\n          var rowEl = document.createElement('div');\n          rowEl.className = 'jg-row';\n\n          var gaps = GAP * (row.length - 1);\n          var available = cw - gaps;\n          var rh = Math.floor(available \/ sumAr);\n\n          if (finalRow){\n            var low = TARGET_ROW_HEIGHT * (1 - MAX_ROW_DEVIATION);\n            var high = TARGET_ROW_HEIGHT * (1 + MAX_ROW_DEVIATION);\n            rh = Math.max(low, Math.min(high, rh));\n          }\n\n          for (var r=0;r<row.length;r++){\n            var it = row[r];\n            var w = Math.round(rh * it.ar);\n            it.el.style.width = w + 'px';\n            it.el.style.height = rh + 'px';\n            rowEl.appendChild(it.el);\n          }\n          \/\/ append to stage\n          stage.appendChild(rowEl);\n          row = []; sumAr = 0;\n        }\n\n        for (var i=0;i<anchors.length;i++){\n          var el = anchors[i];\n          var m = metas[i] || {w:1,h:1};\n          var ar = Math.max(0.1, m.w \/ Math.max(1, m.h));\n          row.push({ el: el, ar: ar });\n          sumAr += ar;\n\n          var predicted = Math.floor((cw - GAP * (row.length - 1)) \/ sumAr);\n          if (predicted <= TARGET_ROW_HEIGHT) flush(false);\n        }\n        flush(true);\n        resolve(true);\n      })\n      .catch(function(){ resolve(false); });\n    });\n  }\n\n  function init(){\n    \/\/ Only inside #kepeksajat\n    var galleries = ROOT.querySelectorAll('#gallery-1, .gallery');\n    if (!galleries.length) return;\n\n    var jobs = [];\n    for (var i=0;i<galleries.length;i++){ jobs.push( justifyClassicGallery(galleries[i], i+1) ); }\n\n    \/\/ Relayout on resize\n    var raf;\n    window.addEventListener('resize', function(){\n      if (raf) cancelAnimationFrame(raf);\n      raf = requestAnimationFrame(function(){\n        for (var i=0;i<galleries.length;i++){\n          var g = galleries[i];\n          var anchors = g.querySelectorAll('a.jg-item');\n          if (!anchors.length) continue;\n          var temp = document.createDocumentFragment();\n          for (var a=0;a<anchors.length;a++){\n            var an = anchors[a];\n            an.style.width = '';\n            an.style.height = '';\n            temp.appendChild(an);\n          }\n          var stage = g.querySelector('.jg-stage'); if (stage) stage.remove();\n          g.appendChild(temp);\n          justifyClassicGallery(g, i+1);\n        }\n      });\n    }, { passive: true });\n  }\n\n  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init);\n  else init();\n})();\n<\/script>\n<script type=module src=\"https:\/\/kiropract.ro\/test\/wp-content\/plugins\/gallery-lightbox\/glightbox-3.3.1\/dist\/js\/glightbox.min.js\"><\/script>\n<script type=module>\nimport 'https:\/\/kiropract.ro\/test\/wp-content\/plugins\/gallery-lightbox\/glightbox-3.3.1\/dist\/js\/glightbox.min.js';\nconst lightbox=GLightbox({selector: '#gallery-1 img'});\n<\/script><\/div><style>\n@scope{\n    .gallery {\n\twidth: 100%;\n\t.galery-item, .gallery-icon{\n\t    float: none !important;\n\t    width: auto !important;\n\t}\n\tbr[style*=\"clear\"] {\n\t    display: none !important; \n\t}\n\t.jg-row { \n\t    display:flex;\n\t    gap:8px;\n\t    margin-bottom:8px; \n\t}\n\t.jg-item {\n\t    display:block;\n\t    overflow:hidden;\n\t    border-radius:0px;\n\t    position:relative;\n\t    img {\n\t\tdisplay:block;\n\t\twidth:100%;\n\t\theight:100%;\n\t\tobject-fit:cover;\n\t\tvertical-align:middle;\n\t    }\n\t}\n}\n<\/style>\n\n<style>@import \"https:\/\/kiropract.ro\/test\/wp-content\/plugins\/gallery-lightbox\/glightbox-3.3.1\/dist\/css\/glightbox.min.css\"<\/style><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-83","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kiropract.ro\/test\/wp-json\/wp\/v2\/pages\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kiropract.ro\/test\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kiropract.ro\/test\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kiropract.ro\/test\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kiropract.ro\/test\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":2,"href":"https:\/\/kiropract.ro\/test\/wp-json\/wp\/v2\/pages\/83\/revisions"}],"predecessor-version":[{"id":85,"href":"https:\/\/kiropract.ro\/test\/wp-json\/wp\/v2\/pages\/83\/revisions\/85"}],"wp:attachment":[{"href":"https:\/\/kiropract.ro\/test\/wp-json\/wp\/v2\/media?parent=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}