1import{s as n,j as e,A as g,t as b,m as u,$ as f,a0 as j,a1 as v,e as w,a2 as p,a3 as y}from"./index-DqzJfwHx.js";const i=["/logos/WhatsApp Image 2026-09-15 at 5.46.37 PM.jpeg","/logos/293A5611.jpg","/logos/293A5699.jpg","/logos/293A6159.jpg","/logos/BM6A2539.jpg","/logos/BM6A2598.jpg","/logos/BM6A2683.jpg","/logos/BM6A2712.jpg","/logos/BM6A2802.jpg","/logos/BM6A3059.jpg","/logos/BM6A3320.jpg","/logos/BM6A3703.jpg","/logos/BM6A4039.jpg","/logos/BM6A4052.jpg","/logos/BM6A4092.jpg","/logos/BM6A4098.jpg","/logos/BM6A4210.jpg","/logos/BM6A4393.jpg","/logos/BM6A4626.jpg","/logos/BM6A6045.jpg","/logos/BM6A6054.jpg","/logos/BM6A6220.jpg","/logos/BM6A6275.jpg"],N=({src:r,index:s,onClick:c})=>{const[o,d]=n.useState(!1),[a,x]=n.useState(!1),m=s%3===0?"aspect-[4/3] min-h-[220px] sm:min-h-[260px]":s%3===1?"aspect-[3/2] min-h-[200px] sm:min-h-[240px]":"aspect-[4/3] min-h-[230px] sm:min-h-[270px]";return e.jsxs(u.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.4,delay:Math.min(s*.03,.35)},onClick:c,className:`break-inside-avoid mb-4 overflow-hidden rounded-2xl bg-white border border-gold/20 shadow-sm hover:shadow-xl hover:border-gold/50 transition-all duration-300 cursor-pointer group relative ${m}`,children:[!o&&!a&&e.jsxs("div",{className:"absolute inset-0 bg-gradient-to-br from-amber-50/70 via-stone-50 to-amber-100/50 flex flex-col items-center justify-center animate-pulse z-10",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-white/80 border border-gold/20 flex items-center justify-center shadow-inner mb-2",children:e.jsx(p,{className:"w-6 h-6 text-gold/60"})}),e.jsx("span",{className:"text-[11px] font-mono uppercase tracking-widest text-[#996515]/60 font-semibold",children:"Loading..."})]}),a?e.jsxs("div",{className:"absolute inset-0 bg-stone-100 flex flex-col items-center justify-center p-4 text-center z-10",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-red-50 border border-red-200 flex items-center justify-center mb-2",children:e.jsx(p,{className:"w-5 h-5 text-red-400"})}),e.jsx("span",{className:"text-xs font-medium text-stone-500",children:"Prabasi Memory Frame"})]}):e.jsx("img",{src:r,alt:`Prabasi Archive ${s+1}`,loading:s<8?"eager":"lazy",decoding:"async",onLoad:()=>d(!0),onError:()=>x(!0),className:`w-full h-full object-cover select-none group-hover:scale-[1.03] transition-all duration-500 rounded-2xl ${o?"opacity-100":"opacity-0"}`}),e.jsx("div",{className:"absolute inset-0 border border-transparent group-hover:border-gold/40 rounded-2xl transition-colors duration-300 pointer-events-none z-20"}),e.jsx("div",{className:"absolute inset-0 bg-black/30 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center z-20",children:e.jsx("div",{className:"w-12 h-12 rounded-full bg-white/25 backdrop-blur-md text-white border border-white/30 flex items-center justify-center shadow-lg transform scale-90 group-hover:scale-100 transition-transform duration-300",children:e.jsx(y,{className:"w-5 h-5 text-gold"})})})]})},M=()=>{const[r,s]=n.useState(0),[c,o]=n.useState(!1),[d,a]=n.useState(!1),x=i[r],m=()=>{a(!1),s(t=>(t-1+i.length)%i.length)},h=()=>{a(!1),s(t=>(t+1)%i.length)};return n.useEffect(()=>{const t=l=>{c&&(l.key==="ArrowLeft"?m():l.key==="ArrowRight"?h():l.key==="Escape"&&o(!1))};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[c,r]),e.jsxs("div",{id:"gallery-page",className:"min-h-screen bg-[#FAF8F5] pb-24 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-10 left-10 w-48 h-48 opacity-[0.02] pointer-events-none select-none",children:e.jsx(g,{variant:"corner",size:192})}),e.jsx("div",{className:"absolute bottom-10 right-10 w-48 h-48 opacity-[0.02] transform rotate-180 pointer-events-none select-none",children:e.jsx(g,{variant:"corner",size:192})}),e.jsxs("div",{className:"text-center space-y-3 max-w-3xl mx-auto pt-16 px-4",children:[e.jsx("h1",{className:"font-serif text-3xl sm:text-4xl md:text-5xl font-black text-deepindigo tracking-tight",children:"Image Gallery Archive"}),e.jsx("p",{className:"text-xs sm:text-sm font-mono tracking-wider text-[#996515] uppercase font-bold",children:"Five Decades of Bengali Heritage & Celebrations in the San Francisco Bay Area"}),e.jsx("div",{className:"flex justify-center py-2 opacity-60",children:e.jsx(g,{variant:"divider"})})]}),e.jsx("div",{className:"columns-1 sm:columns-2 md:columns-3 lg:columns-4 gap-4 space-y-4 max-w-7xl xl:max-w-[85rem] 2xl:max-w-[95rem] mx-auto px-4 sm:px-6 lg:px-8 py-8",children:i.map((t,l)=>e.jsx(N,{src:t,index:l,onClick:()=>{s(l),a(!1),o(!0)}},t))}),e.jsx(b,{children:c&&e.jsxs(u.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/95 z-[9999] backdrop-blur-md flex flex-col justify-between p-4",onClick:()=>o(!1),children:[e.jsxs("div",{className:"flex items-center justify-between w-full text-white/85 z-10 px-2 sm:px-4",children:[e.jsxs("span",{className:"text-xs sm:text-sm font-mono tracking-widest text-gold font-bold",children:[r+1," / ",i.length]}),e.jsx("button",{onClick:t=>{t.stopPropagation(),o(!1)},className:"p-3 bg-white/10 hover:bg-white/20 rounded-full text-white transition-all duration-300 cursor-pointer shadow-md border border-white/15","aria-label":"Close Fullscreen View",children:e.jsx(f,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"relative flex-grow flex items-center justify-center w-full max-w-5xl mx-auto my-2",children:[e.jsx("button",{onClick:t=>{t.stopPropagation(),m()},className:"absolute left-2 sm:-left-16 p-3 bg-white/10 hover:bg-gold hover:text-black rounded-full text-white border border-white/15 hover:border-gold transition-all duration-300 cursor-pointer shadow-lg z-20 active:scale-95","aria-label":"Previous Slide",children:e.jsx(j,{className:"w-6 h-6"})}),e.jsxs("div",{className:"relative max-h-[85vh] w-full flex items-center justify-center rounded-2xl overflow-hidden min-h-[300px]",onClick:t=>t.stopPropagation(),children:[!d&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(v,{className:"w-8 h-8 text-gold animate-spin"})}),e.jsx("img",{src:x,alt:`Prabasi Memory ${r+1}`,onLoad:()=>a(!0),className:`max-h-[85vh] max-w-full object-contain rounded-xl select-none transition-opacity duration-300 ${d?"opacity-100":"opacity-0"}`},x)]}),e.jsx("button",{onClick:t=>{t.stopPropagation(),h()},className:"absolute right-2 sm:-right-16 p-3 bg-white/10 hover:bg-gold hover:text-black rounded-full text-white border border-white/15 hover:border-gold transition-all duration-300 cursor-pointer shadow-lg z-20 active:scale-95","aria-label":"Next Slide",children:e.jsx(w,{className:"w-6 h-6"})})]}),e.jsx("div",{className:"h-6"})]})})]})};export{M as GalleryArchive}; 2//# sourceMappingURL=GalleryArchive-B7FTMMav.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.