"use client"; import { useState } from "react"; import Image from "next/image"; import { motion, AnimatePresence } from "framer-motion"; const galleryImages = [ { src: "/images/hero_main.jpg", alt: "Friends walking along a sun-drenched boulevard on Istanbul's Asian side", }, { src: "/images/manifesto_coastline.jpg", alt: "Locals relaxing on the waterfront with the Marmara Sea and Princes' Islands beyond", }, { src: "/images/first_light.jpg", alt: "Traditional Turkish breakfast spread with eggs, cheese, simit, and tea", }, { src: "/images/the_other_side.jpg", alt: "Aerial view of Fenerbahçe Park, Kalamış Marina, and the Asian side coastline", }, ]; export function PhotoGallery() { const [lightboxIndex, setLightboxIndex] = useState(null); return (

Through the Lens

{galleryImages.map((img, i) => ( setLightboxIndex(i)} > {img.alt} ))}
{/* Lightbox */} {lightboxIndex !== null && ( setLightboxIndex(null)} > e.stopPropagation()} > {galleryImages[lightboxIndex].alt} )}
); }