<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://iainandjane.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://iainandjane.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://iainandjane.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://iainandjane.com/wp-sitemap-posts-screening-1.xml</loc></sitemap><sitemap><loc>https://iainandjane.com/wp-sitemap-posts-shop_item-1.xml</loc></sitemap><sitemap><loc>https://iainandjane.com/wp-sitemap-posts-portfolio-item-1.xml</loc></sitemap><sitemap><loc>https://iainandjane.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://iainandjane.com/wp-sitemap-taxonomies-post_format-1.xml</loc></sitemap><sitemap><loc>https://iainandjane.com/wp-sitemap-taxonomies-practice-area-1.xml</loc></sitemap></sitemapindex>
			<script>document.documentElement.style.setProperty('--scrollbar-offset', window.innerWidth - document.documentElement.clientWidth + 'px' );</script>
			<script type="speculationrules">
{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/kadence/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}
</script>

<script>
	(function () {
		  function getFullSizeUrl(img) {
			      var srcset = img.getAttribute('srcset');
			      if (!srcset) return img.getAttribute('src');
			      var candidates = srcset.split(',').map(function (part) {
					        var bits = part.trim().split(/\s+/);
					        return { url: bits[0], width: parseInt(bits[1], 10) || 0 };
				  });
			      candidates.sort(function (a, b) { return b.width - a.width; });
			      return (candidates[0] && candidates[0].url) || img.getAttribute('src');
		  }
		
		  var galleries = document.querySelectorAll('.pbc-gallery-grid');
		  if (galleries.length) {
			  
			    var overlay = document.createElement('div');
			    overlay.className = 'pbc-lightbox-overlay';
			    overlay.innerHTML =
					    '<button type="button" class="pbc-lightbox-close" aria-label="Close">&times;</button>' +
					    '<button type="button" class="pbc-lightbox-prev" aria-label="Previous">&#8249;</button>' +
					    '<img class="pbc-lightbox-img" src="" alt="">' +
					    '<button type="button" class="pbc-lightbox-next" aria-label="Next">&#8250;</button>';
			    document.body.appendChild(overlay);
			  
			    var imgEl = overlay.querySelector('.pbc-lightbox-img');
			    var closeBtn = overlay.querySelector('.pbc-lightbox-close');
			    var prevBtn = overlay.querySelector('.pbc-lightbox-prev');
			    var nextBtn = overlay.querySelector('.pbc-lightbox-next');
			  
			    var currentUrls = [];
			    var currentIndex = 0;
			  
			    function showCurrent() { imgEl.src = currentUrls[currentIndex]; }
			    function openLightbox(urls, index) {
					    currentUrls = urls;
					    currentIndex = index;
					    showCurrent();
					    overlay.classList.add('is-open');
					    document.body.style.overflow = 'hidden';
				}
			    function closeLightbox() {
					    overlay.classList.remove('is-open');
					    imgEl.src = '';
					    document.body.style.overflow = '';
				}
			    function showNext() {
					    currentIndex = (currentIndex + 1) % currentUrls.length;
					    showCurrent();
				}
			    function showPrev() {
					    currentIndex = (currentIndex - 1 + currentUrls.length) % currentUrls.length;
					    showCurrent();
				}
			  
			    galleries.forEach(function (grid) {
					    var imgs = Array.prototype.slice.call(grid.querySelectorAll('img'));
					    var urls = imgs.map(getFullSizeUrl);
					    imgs.forEach(function (img, i) {
							      img.style.cursor = 'zoom-in';
							      img.addEventListener('click', function () { openLightbox(urls, i); });
						});
				});
			  
			    closeBtn.addEventListener('click', closeLightbox);
			    nextBtn.addEventListener('click', showNext);
			    prevBtn.addEventListener('click', showPrev);
			    overlay.addEventListener('click', function (e) {
					    if (e.target === overlay) closeLightbox();
				});
			    document.addEventListener('keydown', function (e) {
					    if (!overlay.classList.contains('is-open')) return;
					    if (e.key === 'Escape') closeLightbox();
					    if (e.key === 'ArrowRight') showNext();
					    if (e.key === 'ArrowLeft') showPrev();
				});
			  
			    var touchStartX = null;
			    overlay.addEventListener('touchstart', function (e) {
					    touchStartX = e.changedTouches[0].clientX;
				});
			    overlay.addEventListener('touchend', function (e) {
					    if (touchStartX === null) return;
					    var dx = e.changedTouches[0].clientX - touchStartX;
					    if (Math.abs(dx) > 40) { if (dx < 0) { showNext(); } else { showPrev(); } }
					    touchStartX = null;
				});
			  
		  }
	})();
</script>
<!-- Instagram Feed JS -->
<script type="text/javascript">
var sbiajaxurl = "https://iainandjane.com/wp-admin/admin-ajax.php";
</script>

<!-- font handler -->
    