{"id":502,"date":"2026-08-24T17:02:56","date_gmt":"2026-08-24T17:02:56","guid":{"rendered":"http:\/\/localhost\/ipe_africa\/wordpress\/?page_id=502"},"modified":"2026-09-08T13:07:14","modified_gmt":"2026-09-08T13:07:14","slug":"join-us","status":"publish","type":"page","link":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/join-us\/","title":{"rendered":"Join Us"},"content":{"rendered":"\n\n<style>\n    \/* .text-white is a Bootstrap utility (color: ... !important), so beating\n       it back needs !important too \u2014 nothing less will override it. *\/\n    .who-hero.joinUs h1.text-white {\n        color: var(--page-banner-font-color, #fff) !important;\n    }\n    .who-hero.joinUs h3 {\n        color: var(--page-banner-font-color, #fff);\n    }\n    .who-hero.joinUs p {\n        color: var(--page-banner-font-color, #fff);\n    }\n<\/style>\n\n<section class=\"who-hero joinUs\" style=\"background-color: #586A5E; --page-banner-font-color: #ffffff;\" aria-label=\"Join Us\">\n\n    <div class=\"page-shell\">\n\n        <div class=\"template-columns\">\n\n            <div class=\"brochureHero__content\">\n\n                                    <h1 class=\"display-title text-white\">\n                        Join Us                    <\/h1>\n                \n                                    <h3>Join us in shaping Africa&#039;s future\u00a0<\/h3>\n                \n                                    <p>If you\u2019re passionate about creating meaningful impact and advancing Africa\u2019s development priorities, we\u2019d love to hear from you.<br \/> Write to us at <a href=\"mailto:ipe@ipeafrica.com\"><u> ipe@ipeafrica.com<\/u><\/a><\/p>\n                \n            <\/div>\n\n            \n                <div class=\"brochureHero__media\">\n                    <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/join-us-banner.jpg\" alt=\"Join Us\">\n                <\/div>\n\n            \n        <\/div>\n\n    <\/div>\n\n<\/section>\n\n\n\n\n<section class=\"joinUs-section pb-0\">\n\n    <div class=\"container\">\n\n        <div class=\"row justify-content-center\">\n\n            <div class=\"col-md-12 privacy-policy__content\">\n\n                                    <h2 class=\"impact-title\">Careers at IPE Africa<\/h2>\n<p>We work on the issues that shape people&#8217;s lives across some of the most dynamic and complex contexts on the continent. That work only happens because of the people who choose to do it with us. At IPE Africa, we look for people who are as committed to rigor and evidence as they are to the communities and outcomes our work is meant to serve.<\/p>\n<h2 class=\"impact-title\">Work That Matters<\/h2>\n<p>Our projects sit at the intersection of Africa\u2019s most pressing priorities &#8211; from youth employment and climate resilience to governance and digital inclusion. Every team member, from junior researchers to senior technical leads, works on assignments with real, measurable stakes. We take pride in the fact that our staff can point to specific communities, policies, and institutions that are stronger because of the work they contributed to.<\/p>\n<h2 class=\"impact-title\">Rooted in Africa, Built on Local Expertise<\/h2>\n<p>We are proudly a team built from and rooted in the continent we work across. Our staff bring first-hand knowledge of the countries and communities we operate in, paired with the technical rigor expected of international development practice. We believe the best solutions come from people who understand context, not just theory, so we invest deliberately in local talent and leadership at every level of the organisation.<\/p>\n<h2 class=\"impact-title\">Growth Without a Ceiling<\/h2>\n<p>We don&#8217;t believe in staying in one lane. Staff at IPE Africa move across sectors, geographies, and project types as their interests and skills develop, supported by structured mentorship, technical training, and honest performance conversations. Whether someone wants to deepen expertise in a single practice area or broaden into new ones, we build room for that path.<\/p>\n<h2 class=\"impact-title\">A Team That Backs Each Other<\/h2>\n<p>Fieldwork is demanding, and deadlines are real. But we operate as a team, not a collection of individual contributors. Knowledge sharing across projects, peer review of technical work, and open debate on approaches are part of daily practice here. Getting the analysis right matters more to us than getting it out fast.<\/p>\n                \n            <\/div>\n\n        <\/div>\n\n    <\/div>\n\n<\/section>\n\n    <section class=\"galleryShell bg-transparent pt-0 pb-0\" data-animate>\n        <div class=\"page-shell galleryShell-inner text-start\">\n\n            \n        \n\n        <!-- 4 Column Mosaic Grid -->\n        <div class=\"gallery-mosaic\">\n\n            \n                <div class=\"gallery-column gallery-columnNum1\">\n\n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"0\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/1.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"4\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/5-1.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"8\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/9.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                <\/div>\n\n            \n                <div class=\"gallery-column gallery-columnNum2\">\n\n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"1\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/2.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"5\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/6.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"9\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/10.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                <\/div>\n\n            \n                <div class=\"gallery-column gallery-columnNum3\">\n\n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"2\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/3.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"6\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/7.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"10\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/11.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                <\/div>\n\n            \n                <div class=\"gallery-column gallery-columnNum4\">\n\n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"3\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/4.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"7\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/8.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                        \n                            <a href=\"javascript:void(0)\" class=\"gallery-tile gallery-trigger\" data-modal=\"customGalleryModal1\" data-index=\"11\" data-gallery-priority=\"\" data-gallery-category=\"\" data-gallery-geography=\"\" data-gallery-year=\"\" data-gallery-partner=\"\" data-gallery-search=\"\">\n                                <img src=\"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-content\/uploads\/2026\/09\/12.jpg\" alt=\"\" loading=\"lazy\">\n                                <span class=\"gallery-zoom\"><i class=\"bi bi-zoom-in\"><\/i><\/span>\n                            <\/a>\n\n                        \n                    \n                <\/div>\n\n            \n        <\/div>\n\n\n        \n\n        \n        <!-- Lightbox Modal Screen -->\n        <div class=\"modal fade custom-lightbox-modal\" id=\"customGalleryModal1\" tabindex=\"-1\" aria-hidden=\"true\">\n            <div class=\"modal-dialog modal-fullscreen\">\n                <div class=\"modal-content d-flex flex-column justify-content-between\">\n\n                    <div class=\"modal-header d-flex justify-content-between align-items-center\">\n                        <button class=\"gallery-lightbox-close\" type=\"button\" data-bs-dismiss=\"modal\" aria-label=\"Close\">\n                            <i class=\"bi bi-x-lg\" aria-hidden=\"true\"><\/i>\n                        <\/button>\n                    <\/div>\n\n                    <div class=\"lightbox-main-container\">\n                        <div class=\"lightbox_mb\">\n                            <h2 class=\"lightbox-title\" id=\"modalTitle1\">Photo Title<\/h2>\n                            <div class=\"lightbox-subtitle\" id=\"modaldescription1\">IPE Africa<\/div>\n                        <\/div>\n                        <div id=\"mediaContainer1\" class=\"position-relative w-100 text-center\">\n                            <button type=\"button\" class=\"gallery-lightbox-arrow lightbox-prev\" id=\"prevBtn1\" aria-label=\"Previous gallery item\">\n                                <i class=\"bi bi-chevron-left\" aria-hidden=\"true\"><\/i>\n                            <\/button>\n                            <!-- Dynamic Media Content loaded via JS -->\n                            <button type=\"button\" class=\"gallery-lightbox-arrow lightbox-next\" id=\"nextBtn1\" aria-label=\"Next gallery item\">\n                                <i class=\"bi bi-chevron-right\" aria-hidden=\"true\"><\/i>\n                            <\/button>\n                        <\/div>\n                    <\/div>\n\n                    <!-- Thumbnail Navigation Strip -->\n                    <div class=\"lightbox-thumbnails container\" id=\"thumbnailStrip1\">\n                        <!-- Loaded dynamically via JavaScript -->\n                    <\/div>\n\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <script>\n        (function() {\n            const suffix = \"1\";\n            const modalId = \"customGalleryModal1\";\n            const galleryData = [{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/1.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/1.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/2.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/2.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/3.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/3.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/4.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/4.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/5-1.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/5-1.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/6.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/6.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/7.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/7.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/8.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/8.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/9.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/9.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/10.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/10.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/11.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/11.jpg\",\"title\":\"\",\"description\":\"\"},{\"type\":\"image\",\"src\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/12.jpg\",\"thumb\":\"https:\\\/\\\/beta.studiobrahma.in\\\/ipe-africa-dyn\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/12.jpg\",\"title\":\"\",\"description\":\"\"}];\n            const indexMap = [0,1,2,3,4,5,6,7,8,9,10,11];\n            let visibleIndices = indexMap.slice();\n            let currentIndex = indexMap[0];\n            let isSliding = false;\n            let autoSlideInterval = null;\n            const AUTO_SLIDE_DELAY = 6500;\n\n            document.addEventListener('DOMContentLoaded', function() {\n                const modalElement = document.getElementById(modalId);\n                const galleryModal = new bootstrap.Modal(modalElement);\n                const modalTitle = document.getElementById('modalTitle' + suffix);\n                const modaldescription = document.getElementById('modaldescription' + suffix);\n                const mediaContainer = document.getElementById('mediaContainer' + suffix);\n                const thumbnailStrip = document.getElementById('thumbnailStrip' + suffix);\n                const previousButton = document.getElementById('prevBtn' + suffix);\n                const nextButton = document.getElementById('nextBtn' + suffix);\n\n                const dataByIndex = {};\n                indexMap.forEach((originalIndex, position) => {\n                    dataByIndex[originalIndex] = galleryData[position];\n                });\n\n                function refreshVisibleIndices() {\n                    const visibleTiles = Array.from(document.querySelectorAll('.gallery-trigger[data-modal=\"' + modalId + '\"]:not(.is-filtered-out)'));\n                    visibleIndices = visibleTiles\n                        .map((tile) => parseInt(tile.getAttribute('data-index'), 10))\n                        .filter((index) => !Number.isNaN(index) && dataByIndex[index]);\n\n                    if (!visibleIndices.length) {\n                        visibleIndices = indexMap.slice();\n                    }\n\n                    if (!visibleIndices.includes(currentIndex)) {\n                        currentIndex = visibleIndices[0];\n                    }\n                }\n\n                function startAutoSlide() {\n                    stopAutoSlide();\n                    const currentItem = dataByIndex[currentIndex];\n                    if (currentItem && currentItem.type === 'video') {\n                        return;\n                    }\n                    autoSlideInterval = setInterval(() => {\n                        slideGallery(1);\n                    }, AUTO_SLIDE_DELAY);\n                }\n\n                function stopAutoSlide() {\n                    if (autoSlideInterval) {\n                        clearInterval(autoSlideInterval);\n                        autoSlideInterval = null;\n                    }\n                }\n\n                function renderThumbnails() {\n                    thumbnailStrip.innerHTML = '';\n                    visibleIndices.forEach((itemIdx) => {\n                        const item = dataByIndex[itemIdx];\n\n                        const wrapper = document.createElement('div');\n                        wrapper.className = `thumb-wrapper ${itemIdx === currentIndex ? 'active' : ''}`;\n\n                        const thumbImg = document.createElement('img');\n                        thumbImg.src = item.thumb;\n                        wrapper.appendChild(thumbImg);\n\n                        if (item.type === 'video') {\n                            const playIcon = document.createElement('span');\n                            playIcon.className = 'thumb-play-icon';\n                            playIcon.innerHTML = '<i class=\"bi bi-play-fill\"><\/i>';\n                            wrapper.appendChild(playIcon);\n                        }\n\n                        wrapper.addEventListener('click', () => {\n                            updateGallery(itemIdx);\n                            startAutoSlide();\n                        });\n                        thumbnailStrip.appendChild(wrapper);\n                    });\n                }\n\n                function updateGallery(targetIndex, direction = 0) {\n                    refreshVisibleIndices();\n                    if (!visibleIndices.includes(targetIndex)) return;\n\n                    currentIndex = targetIndex;\n                    const item = dataByIndex[currentIndex];\n\n                    modalTitle.textContent = item.type === 'video' ? '' : item.title;\n                    modaldescription.textContent = item.description;\n\n                    const oldMedia = mediaContainer.querySelector('.lightbox-main-img, .lightbox-main-video, iframe');\n                    if (oldMedia) oldMedia.remove();\n\n                    if (item.type === 'image') {\n                        const img = document.createElement('img');\n                        img.src = item.src;\n                        img.className = 'lightbox-main-img';\n                        mediaContainer.appendChild(img);\n                        startAutoSlide();\n                    } else {\n                        stopAutoSlide();\n\n                        if (item.src.includes('youtube.com') || item.src.includes('youtu.be')) {\n                            const iframe = document.createElement('iframe');\n                            iframe.src = item.src;\n                            iframe.className = 'lightbox-main-video';\n                            iframe.setAttribute('allow', 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture');\n                            iframe.setAttribute('allowfullscreen', 'true');\n                            iframe.style.width = '80%';\n                            iframe.style.height = '450px';\n                            iframe.style.border = 'none';\n                            mediaContainer.appendChild(iframe);\n                        } else {\n                            const video = document.createElement('video');\n                            video.src = item.src;\n                            video.controls = true;\n                            video.autoplay = true;\n                            video.className = 'lightbox-main-video';\n                            mediaContainer.appendChild(video);\n                        }\n                    }\n\n                    const activeMedia = mediaContainer.querySelector('.lightbox-main-img, .lightbox-main-video');\n                    if (direction !== 0 && activeMedia?.animate) {\n                        const offset = direction > 0 ? 70 : -70;\n                        isSliding = true;\n                        activeMedia.animate(\n                            [\n                                { opacity: 0, transform: `translateX(${offset}px)` },\n                                { opacity: 1, transform: 'translateX(0)' }\n                            ],\n                            { duration: 320, easing: 'ease-out' }\n                        ).finished.finally(() => {\n                            isSliding = false;\n                        });\n                    }\n\n                    renderThumbnails();\n                }\n\n                function slideGallery(direction) {\n                    refreshVisibleIndices();\n                    if (isSliding || visibleIndices.length < 2) return;\n\n                    const currentPosition = Math.max(0, visibleIndices.indexOf(currentIndex));\n                    const targetPosition = (\n                        currentPosition + direction + visibleIndices.length\n                    ) % visibleIndices.length;\n\n                    updateGallery(visibleIndices[targetPosition], direction);\n                }\n\n                let touchStartX = 0;\n                let touchEndX = 0;\n                const swipeThreshold = 50;\n\n                mediaContainer.addEventListener('touchstart', (e) => {\n                    touchStartX = e.changedTouches[0].screenX;\n                    stopAutoSlide();\n                }, { passive: true });\n\n                mediaContainer.addEventListener('touchend', (e) => {\n                    touchEndX = e.changedTouches[0].screenX;\n                    handleSwipe();\n                    startAutoSlide();\n                }, { passive: true });\n\n                function handleSwipe() {\n                    const diffX = touchEndX - touchStartX;\n                    if (diffX < -swipeThreshold) {\n                        slideGallery(1);\n                    } else if (diffX > swipeThreshold) {\n                        slideGallery(-1);\n                    }\n                }\n\n                document.querySelectorAll('.gallery-trigger[data-modal=\"' + modalId + '\"]').forEach(tile => {\n                    tile.addEventListener('click', function(e) {\n                        e.preventDefault();\n                        refreshVisibleIndices();\n                        const index = parseInt(this.getAttribute('data-index'), 10);\n                        updateGallery(index);\n                        galleryModal.show();\n                    });\n                });\n\n                previousButton.addEventListener('click', () => {\n                    slideGallery(-1);\n                    startAutoSlide();\n                });\n\n                nextButton.addEventListener('click', () => {\n                    slideGallery(1);\n                    startAutoSlide();\n                });\n\n                modalElement.addEventListener('hidden.bs.modal', function () {\n                    stopAutoSlide();\n                    const activeMedia = mediaContainer.querySelector('.lightbox-main-img, .lightbox-main-video, iframe');\n                    if (activeMedia) activeMedia.remove();\n                });\n\n                document.addEventListener('keydown', (e) => {\n                    if (modalElement.classList.contains('show')) {\n                        if (e.key === 'ArrowLeft') {\n                            slideGallery(-1);\n                            startAutoSlide();\n                        } else if (e.key === 'ArrowRight') {\n                            slideGallery(1);\n                            startAutoSlide();\n                        }\n                    }\n                });\n            });\n        })();\n        <\/script>\n\n        \n        \n        <\/div>\n    <\/section>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/Other.php","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-502","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-json\/wp\/v2\/pages\/502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-json\/wp\/v2\/comments?post=502"}],"version-history":[{"count":35,"href":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-json\/wp\/v2\/pages\/502\/revisions"}],"predecessor-version":[{"id":1454,"href":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-json\/wp\/v2\/pages\/502\/revisions\/1454"}],"wp:attachment":[{"href":"https:\/\/beta.studiobrahma.in\/ipe-africa-dyn\/wp-json\/wp\/v2\/media?parent=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}