import{c as t}from"./2e4f433f.js";import{r as d,a as o,j as c}from"./index.1ec44e23.js";function x({presentation:l}){var i;const[a,n]=d.exports.useState(!1),[s,h]=d.exports.useState(),r=e=>{n(!a),h(e)};return o("div",{className:t("grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5 px-10",!((i=l==null?void 0:l.iconography)!=null&&i.caption)&&"mb-[83px]"),children:[a&&o("div",{className:"fixed inset-0 z-[9999] h-screen w-screen bg-white overflow-y-scroll",onClick:()=>r(s),children:[c("img",{className:"relative w-full cursor-zoom-out",src:s==null?void 0:s.url,alt:l.main.title}),(s==null?void 0:s.description)&&c("div",{className:"fixed bottom-5 px-5",children:c("div",{className:"bg-highlight px-5",children:s.description})})]}),l.iconography.images.map((e,m)=>o("div",{className:"relative group/image",children:[c("img",{className:"aspect-presentation h-full w-full object-cover cursor-zoom-in",src:e.url,alt:l.main.title,onClick:()=>r(e)},m),(e==null?void 0:e.description)&&c("div",{className:t("absolute bottom-5 left-5 truncate w-[calc(calc(100vw-75px)/4)]","hidden group-hover/image:block"),children:c("span",{className:"bg-highlight px-5",children:e.description})})]}))]})}export{x as default}; //# sourceMappingURL=d88c309d.js.map