Basrah University of Oil and Gas

Photo Gallery

Home Photo Gallery
🔍
// would otherwise close the block early and let the rest run as markup. const images = [{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/4wokrLLXcyHqFVKWW1tMHMZxJ6IBV5PRoSeOaeZw.jpg","title":"training","category":"training","cat_label":"Field Oil Training"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/To933C9fDVG721D7IyjbMEmfWYNbwJ4sAo7iLfbM.jpg","title":"The College of Petroleum and Gas Engineering is organizing a scientific poster exhibition on petroleum and gas engineering.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/biF7LUBtEWMXEEtAzARpj5mmKJ3teelUEKnLPqhm.jpg","title":"The College of Industrial Management for Oil and Gas is organizing its second annual evaluation conference.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/d4sfYTtUclwdEqPe2GdP2g4pD9UcHzH8jhVXgx92.jpg","title":"Basra University for Oil and Gas organizes a vigil to commemorate the victims of the tragic Speicher massacre.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/kTNjDjTeEIX2KDWBKxTIXser328kTEskokujRVUR.jpg","title":"The College of Petroleum and Gas Engineering is organizing its seventh annual conference to discuss the graduation projects of fourth-year students.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/GneRb9uCFI5o6ZZsXu4BCzFRHn3M7qwWtRNUfr2N.jpg","title":"The College of Petroleum and Gas Engineering organizes a volunteer visit to Basra Specialized Children\u0027s Hospital","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/jkp294Mlb7iFuRoOfYu2g3JBCCTcVna5u6o31waP.jpg","title":"The College of Industrial Management for Oil and Gas holds its sixth annual conference to discuss its students\u0027 graduation research.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/tjncamAIehWE7Y7tTPWwLHKjAqhQxSdfuThT0TvG.jpg","title":"The College of Petroleum and Gas Engineering is organizing job interviews for graduates and fourth-year students.","category":"graduation","cat_label":"Graduation Ceremonies"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/8T6KHfTixAI142uvhudSSpZzys5RBdpn2KjCs1VO.jpg","title":"The College of Industrial Management for Oil and Gas is organizing its sixth annual cultural festival under the slogan (Creativity Without Limits).","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/eAFtNGTV0iwrtQAIbb1KQcFwW7hnGoWCOKNZgHwG.jpg","title":"The College of Industrial Management for Oil and Gas is organizing the second edition of the scientific debate competition among students of the scientific departments.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/JsdudXuKRNJwoJ2H41pmKemaTapnlQppW2Hnfyg9.jpg","title":"The College of Petroleum and Gas Engineering organizes an awareness seminar under the slogan \u0022With science and knowledge we fight drugs\u0022.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/eyOXcVriLpjI5GCBGZQYCK2nMc7emGPWzVQ4JXbV.jpg","title":"The Professors\u0027 Team wins the Dean\u0027s Cup Futsal Championship after a hard-fought victory over the Employees\u0027 Team.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/lI1BAA329DiqUYvF9sINaZIZAqfgDnbqlbU4Bjxf.jpg","title":"As part of its efforts to promote public safety, the University of Basra for Oil and Gas is organizing an awareness workshop on crisis management and public safety.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/6NpfF2HVusoXp7qiKGElsDemB9CJpJfvepjFjWYX.jpg","title":"The College of Petroleum and Gas Engineering is organizing a scientific event to showcase student projects in the field of renewable energy.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/MprJ4WZTQJWuSJpsr2PR1XpfwtZzWclfGNtbiw2f.jpg","title":"The College of Industrial Management for Oil and Gas is organizing a scientific workshop entitled: (The Journey of Data in the Oil and Gas Industry)","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/F5KjGGV23hR8WMMYicpJiDQWAVmkGWw9wg7iDWaG.jpg","title":"Amidst the Ramadan atmosphere, the College of Petroleum and Gas Engineering launched a volunteer initiative to visit a nursing home.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/VR63yPeMzUguDs2f1p8Tn4seVoZonQoMItiOtYGj.jpg","title":"The College of Industrial Management for Oil and Gas, in cooperation with Basra Gas Company, honors its top graduates for the academic year 2024-2025.","category":"graduation","cat_label":"Graduation Ceremonies"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/AMcCgUv7ARlTDYXb4KdGuM5XDqC6LwUNIAG6mPGQ.jpg","title":"The College of Industrial Management for Oil and Gas is organizing its first international scientific conference on developments in the oil and gas industry.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/MBWUVMFuZMZ72Bj4reFm9lymyG17ycFQpt6vlVUg.jpg","title":"The College of Petroleum and Gas Engineering at Basra University for Oil and Gas is organizing a workshop entitled: \u0022How to Pass Job Interviews in the Private Sector in the Oil Industry\u0022","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/oZzf8TLs9aggmQzNtyULqGU9i3qz2I8EiLVlyStM.jpg","title":"The College of Petroleum and Gas Engineering organizes a scientific visit to Basra Gas Company for students of the Department of Gas and Petrochemical Process Engineering","category":"training","cat_label":"Field Oil Training"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/FezuD2qKpQTEKVEvvWdGQHFboSF8WIORJ5cSfAwQ.jpg","title":"The College of Industrial Management for Oil and Gas is organizing its first annual energy forum with broad participation from oil companies.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/k7patrYDJGFjHGD4iQuM9HMHphV2y5nIfXmPimVL.jpg","title":"Basra University for Oil and Gas participates in the central graduation ceremony for university students in the holy city of Karbala","category":"graduation","cat_label":"Graduation Ceremonies"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/eK2cQjQhVq813Zl8acjh2YMLXHCsStwTGnfAuIXe.jpg","title":"The College of Petroleum and Gas Engineering organizes a five-a-side football tournament for students.","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/Df2DHnxXC7VJyUH5CgNyJ4mZLlRVDAbh4QRTaK8P.jpg","title":"The College of Petroleum and Gas Engineering organizes a scientific visit to the South Refineries Company for students of the Department of Gas and Petrochemical Process Engineering.","category":"training","cat_label":"Field Oil Training"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/KwrK5cVpWEchLpynLLjjJwZ3KsMy9prxXXxALkKh.jpg","title":"The global oil company Schlumberger is conducting interviews with graduates of the College of Petroleum and Gas Engineering.","category":"graduation","cat_label":"Graduation Ceremonies"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/MrxXQLaOmfZReXLhZxJwftVk1l3G4hicGScTaCbc.jpg","title":"Closing ceremony of the College of Petroleum and Gas Engineering Table Tennis Championship","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/hR5CS8ipfUHu22XsrzTJv7y3XwsI3HYJzn44bhPy.jpg","title":"The College of Petroleum and Gas Engineering organizes a scientific visit to the Rumaila oil field to visit the Core Museum.","category":"training","cat_label":"Field Oil Training"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/DhWrUm5xhJTiECRwwClnmNd01ApgM9OKdsjk75UC.jpg","title":"Basra University for Oil and Gas organizes a workshop entitled: \u0022Drugs are a scourge that destroys societies\u0022","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/tuOZ1ArlQtuKP2OlQzOndhlXfyOPQ91ad3IFQdxJ.jpg","title":"The College of Petroleum and Gas Engineering organizes a volunteer visit to Dar Al-Zuhur Orphanage","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/TnNDertzyIWlZjbnLSNn82CuRmd0uXPVO35kt7UY.jpg","title":"Basra University for Oil and Gas celebrates the graduation of a new batch of its graduates for the academic year 2024-2025, the \u0022Excellence and Creativity\u0022 session.","category":"graduation","cat_label":"Graduation Ceremonies"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/mCwv84RQsbfSh3kpjzGV98Pvin0OW1TI5lthhcLR.jpg","title":"The College of Petroleum and Gas Engineering is organizing a workshop on \u0022The Role of Technology Incubators and the Ecosystem in Iraqi Universities\u0022","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/QjrNSUpQGWvShhps7wfOpVysgG4FBbpgq2baJ8PG.jpg","title":"The College of Petroleum and Gas Engineering is organizing a scientific competition entitled Future Engineers 2025","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/sZroPcXxFVHowXFc7A5dsuSNxPQ01MaugpGUrwBC.jpg","title":"University Presidency","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/l1QUPQu7indEf9PxBjVXDniSOmaoO3m1tRAArm4k.jpg","title":"The College of Petroleum and Gas Engineering is organizing a workshop entitled \u0022Numerical Simulation of High-Frequency Dispersion Emitted by Military Submarines\u0022","category":"events","cat_label":"Conferences \u0026 Workshops"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/XjR2uXM8HxUGHkY29GeAoRpS0qioRn9QaugStozg.jpg","title":"University Presidency","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/Q57fzv50OggRaRN5229xTIu6BfDY6tjuVJg8eWGE.jpg","title":"University Presidency","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/p5ao7fUZ6PaHhDg84LdKCi7dHUfd8RrLUc7czjeP.jpg","title":"College of Petroleum and Gas Engineering","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/t0d9sUfvZj4pSqza6NtGjSysFE1FrPr81ZYEVQ31.jpg","title":"College of Petroleum and Gas Engineering","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/Oxod7eqqnb2LfmUqVRzeM5vnWaqLReBKwlVUiGAa.jpg","title":"College of Industrial Management for Oil and Gas","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/sQRRTqGS5YXysan31xYoxpiNwttoHaOIqvzt4Ydn.jpg","title":"College of Industrial Management for Oil and Gas","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/5xbcvdypDnz5ORSh2wH91wYspGW4qziytQRUxxVs.jpg","title":"College of Industrial Management for Oil and Gas","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/58fK04x1UuYSC99wVHMtfgZp1qEyrJ0QTZKquX8l.jpg","title":"College of Industrial Management Laboratory for Oil and Gas","category":"campus","cat_label":"University Campus"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/lIhcuEiSDZggCjxoni0ecJtrGFfGGQRNY1u6t0Pf.jpg","title":"Graduates of the College of Industrial Management for Oil and Gas","category":"graduation","cat_label":"Graduation Ceremonies"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/924xEuwtO9hrmp1LOKf9qhQNlhTa2S4NshhGyfZi.jpg","title":"Graduates of the College of Industrial Management for Oil and Gas","category":"graduation","cat_label":"Graduation Ceremonies"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/GJVymjxabZfsLK7vDTRfrkjCr0VYHX0PyvNL0zDR.jpg","title":"Graduates of the College of Industrial Management for Oil and Gas","category":"graduation","cat_label":"Graduation Ceremonies"},{"image_url":"https:\/\/dev.buog.edu.iq\/storage\/gallery\/OzgEL2Ov5HPugAgm7WO2QJnYtBtW0ongHmDw41XT.jpg","title":"Graduates of the College of Industrial Management for Oil and Gas","category":"graduation","cat_label":"Graduation Ceremonies"}]; let currentActiveIndex = 0; let currentFilteredIndices = [...Array(images.length).keys()]; let activeCategory = "all"; // Slideshow states let slideshowInterval = null; let slideshowProgressInterval = null; let slideshowProgressVal = 0; document.addEventListener("DOMContentLoaded", () => { // Attach premium coordinate origin magnifying zoom lens to the Lightbox Image const imgElement = document.getElementById('lightbox-img'); imgElement.addEventListener('mousemove', function(e) { const rect = e.target.getBoundingClientRect(); const x = ((e.clientX - rect.left) / rect.width) * 100; const y = ((e.clientY - rect.top) / rect.height) * 100; imgElement.style.transformOrigin = `${x}% ${y}%`; imgElement.style.transform = 'scale(1.75)'; }); imgElement.addEventListener('mouseleave', function() { imgElement.style.transform = 'scale(1)'; imgElement.style.transformOrigin = 'center center'; }); // Swipe gesture support for mobile let touchstartX = 0; let touchendX = 0; imgElement.addEventListener('touchstart', e => { touchstartX = e.changedTouches[0].screenX; }, { passive: true }); imgElement.addEventListener('touchend', e => { touchendX = e.changedTouches[0].screenX; handleSwipeGesture(); }, { passive: true }); function handleSwipeGesture() { const threshold = 50; // Minimum swipe distance in pixels const isRtl = "" === "1"; if (touchendX < touchstartX - threshold) { // Swiped Left if (isRtl) prevImage(); else nextImage(); } if (touchendX > touchstartX + threshold) { // Swiped Right if (isRtl) nextImage(); else prevImage(); } } }); /** * Filter the gallery display combining search query and active category */ function applyCombinedGalleryFilter() { const searchVal = document.getElementById('gallery-search').value.toLowerCase().trim(); const gridItems = document.querySelectorAll('.gallery-item'); currentFilteredIndices = []; gridItems.forEach(item => { const itemCat = item.getAttribute('data-category'); const itemTitle = item.getAttribute('data-title'); const globalIdx = parseInt(item.getAttribute('data-global-index')); const matchCategory = activeCategory === 'all' || itemCat === activeCategory; const matchSearch = itemTitle.includes(searchVal); if (matchCategory && matchSearch) { item.classList.remove('hidden'); currentFilteredIndices.push(globalIdx); } else { item.classList.add('hidden'); } }); // Manage empty state representation const emptyState = document.getElementById('search-empty-state'); if (currentFilteredIndices.length === 0) { emptyState.classList.remove('hidden'); } else { emptyState.classList.add('hidden'); } } /** * Triggered when selected category changes */ function filterGalleryByCategory(category) { activeCategory = category; const filterButtons = document.querySelectorAll('#filter-bar button'); // Clear active states on all buttons filterButtons.forEach(btn => { btn.className = "snap-start shrink-0 px-4 py-2.5 rounded-xl text-[10px] font-bold transition-all duration-300 border shadow-2xs cursor-pointer bg-white border-slate-200 text-slate-600 hover:border-amber-500/30 hover:text-slate-900"; }); // Set active state on clicked button const activeBtn = document.getElementById('btn-filter-' + category); if (activeBtn) { activeBtn.className = "snap-start shrink-0 px-4 py-2.5 rounded-xl text-[10px] font-bold transition-all duration-300 border shadow-2xs cursor-pointer bg-black border-black text-white hover:bg-slate-900"; } applyCombinedGalleryFilter(); } /** * Triggered on search input keystrokes */ function filterGallerySearch() { applyCombinedGalleryFilter(); } /** * Open Lightbox overlay at a specific image index */ function openLightbox(globalIndex) { currentActiveIndex = currentFilteredIndices.indexOf(globalIndex); if (currentActiveIndex === -1) currentActiveIndex = 0; const lightbox = document.getElementById('gallery-lightbox'); lightbox.classList.remove('hidden'); document.body.classList.add('overflow-hidden'); // Lock page scroll updateLightboxContent(); } /** * Close Lightbox overlay */ function closeLightbox() { const lightbox = document.getElementById('gallery-lightbox'); lightbox.classList.add('hidden'); document.body.classList.remove('overflow-hidden'); // Unlock page scroll // Exit Fullscreen if active if (document.fullscreenElement) { document.exitFullscreen().catch(err => console.log(err)); } // Stop slideshow if running if (slideshowInterval) { toggleSlideshow(); } } /** * Update Lightbox image and metadata with fading animations */ function updateLightboxContent() { if (currentFilteredIndices.length === 0) return; const globalIndex = currentFilteredIndices[currentActiveIndex]; const imgData = images[globalIndex]; const imgElement = document.getElementById('lightbox-img'); const titleElement = document.getElementById('lightbox-title'); const catElement = document.getElementById('lightbox-category'); const counterElement = document.getElementById('lightbox-counter'); const downloadBtn = document.getElementById('lightbox-download-btn'); // Reset zoom transform origin imgElement.style.transform = 'scale(1)'; imgElement.style.transformOrigin = 'center center'; // Fade out current image imgElement.classList.add('opacity-0'); setTimeout(() => { imgElement.src = imgData.image_url; imgElement.alt = imgData.title; titleElement.innerText = imgData.title; catElement.innerText = imgData.cat_label; counterElement.innerText = `IMAGE ${currentActiveIndex + 1} OF ${currentFilteredIndices.length}`; // Configure direct download link downloadBtn.href = imgData.image_url; downloadBtn.download = imgData.title + '.png'; // Fade in new image once loaded imgElement.onload = () => { imgElement.classList.remove('opacity-0'); }; }, 150); } /** * Toggle Slideshow Play/Pause state and dynamic progress bar timeline */ function toggleSlideshow() { const label = document.getElementById('btn-slideshow-label'); const btn = document.getElementById('btn-slideshow'); const progressBar = document.getElementById('slideshow-progress'); if (slideshowInterval) { // Pause active slideshow clearInterval(slideshowInterval); clearInterval(slideshowProgressInterval); slideshowInterval = null; slideshowProgressInterval = null; progressBar.style.width = "0%"; label.innerText = "Play Slideshow"; btn.innerHTML = `▶️ ${label.innerText}`; } else { // Start slideshow label.innerText = "Pause"; btn.innerHTML = `⏸️ ${label.innerText}`; slideshowProgressVal = 0; slideshowProgressInterval = setInterval(() => { slideshowProgressVal += 2.5; // Every 100ms, increase progress by 2.5% (total 4000ms) progressBar.style.width = slideshowProgressVal + "%"; if (slideshowProgressVal >= 100) { slideshowProgressVal = 0; } }, 100); slideshowInterval = setInterval(() => { nextImage(); }, 4000); } } /** * Toggle Fullscreen Mode utilizing browser Fullscreen API */ function toggleLightboxFullscreen() { const lightbox = document.getElementById('gallery-lightbox'); const label = document.getElementById('btn-fullscreen-label'); const btn = document.getElementById('btn-fullscreen'); if (!document.fullscreenElement) { lightbox.requestFullscreen().then(() => { label.innerText = "Exit Fullscreen"; btn.innerHTML = `🖥️ ${label.innerText}`; }).catch(err => { console.error('Error enabling fullscreen: ', err); }); } else { document.exitFullscreen().then(() => { label.innerText = "Fullscreen"; btn.innerHTML = `🖥️ ${label.innerText}`; }); } } // Exiting fullscreen using ESC key listener to reset state document.addEventListener('fullscreenchange', () => { if (!document.fullscreenElement) { const label = document.getElementById('btn-fullscreen-label'); const btn = document.getElementById('btn-fullscreen'); if (label && btn) { label.innerText = "Fullscreen"; btn.innerHTML = `🖥️ ${label.innerText}`; } } }); /** * Copy direct link to the image to clipboard securely */ function copyDirectLink() { const globalIndex = currentFilteredIndices[currentActiveIndex]; const imgData = images[globalIndex]; const link = imgData.image_url; navigator.clipboard.writeText(link).then(() => { const label = document.getElementById('btn-copy-label'); const originalText = label.innerText; label.innerText = "Copied!"; setTimeout(() => { label.innerText = originalText; }, 2000); }).catch(err => { console.error('Could not copy text: ', err); }); } /** * Navigate to next image */ function nextImage() { if (currentFilteredIndices.length === 0) return; currentActiveIndex = (currentActiveIndex + 1) % currentFilteredIndices.length; // Reset slideshow progress bar upon slide shift slideshowProgressVal = 0; updateLightboxContent(); } /** * Navigate to previous image */ function prevImage() { if (currentFilteredIndices.length === 0) return; currentActiveIndex = (currentActiveIndex - 1 + currentFilteredIndices.length) % currentFilteredIndices.length; // Reset slideshow progress bar upon slide shift slideshowProgressVal = 0; updateLightboxContent(); } // Keyboard navigation listener for lightbox document.addEventListener('keydown', function(event) { const lightbox = document.getElementById('gallery-lightbox'); if (!lightbox.classList.contains('hidden')) { if (event.key === 'Escape') { closeLightbox(); } else if (event.key === 'ArrowRight') { if ("" === "1") prevImage(); else nextImage(); } else if (event.key === 'ArrowLeft') { if ("" === "1") nextImage(); else prevImage(); } } });