1import{j as e,S as h,E as d,B as g,g as p,F as y,G as m,H as u,y as b,x as w,K as f,h as x}from"./index-BqXysUwX.js";import{r as l}from"./react-ByZ_rsCM.js";import{g as k}from"./gallery-fish-risotto-DaLaLwOG.js";import{g as v,c as j}from"./gallery-lamb-shank-D2CVAcjU.js";import{g as C}from"./gallery-pie-whole-B4rws87t.js";import{r as P,a as S}from"./room-ancestry-DZpG9Eaa.js";import{a as N,g as E}from"./gallery-pie-plated-DKkDXJhz.js";import{h as T}from"./home-fish-chips-DArcZtTq.js";import"./helmet--vVJ3oZ5.js";const B="/assets/gallery-pastry-BoCMytiE.webp",I="/assets/gallery-dessert-CfyHyPJl.webp",L="/assets/gallery-desserts-platter-DSVo5S10.webp",D="/assets/gallery-lemon-tart-BWk0wZEL.webp",F="/assets/gallery-pate-ClltnOsL.webp",r=[{src:d,alt:"The Crown Inn exterior, a 16th-century country pub at Dial Post"},{src:p,alt:"Beamed pub interior with open fire and oak tables"},{src:y,alt:"Two dogs relaxing on a sofa beside the fire in the bar"},{src:m,alt:"The garden room dining space at The Crown"},{src:u,alt:"Sunny patio with a yellow Labrador relaxing by the open sage-green doors"},{src:k,alt:"Pan-fried fish on saffron risotto"},{src:v,alt:"Slow-braised Sussex lamb shank with mash"},{src:C,alt:"A whole hand-raised pub pie with golden pastry"},{src:b,alt:"Wildflower bedroom suite at The Crown"},{src:w,alt:"Safari bedroom suite, themed around Knepp's rewilding project"},{src:P,alt:"Butterfly bedroom suite with country-style furnishings"},{src:S,alt:"Ancestry bedroom suite at The Crown"},{src:N,alt:"Open pub pie revealing rich slow-cooked filling"},{src:E,alt:"Plated pie with seasonal vegetables and gravy"},{src:B,alt:"Golden butter pastry detail"},{src:I,alt:"Seasonal dessert plated in the kitchen"},{src:L,alt:"Sharing platter of mini desserts"},{src:D,alt:"Lemon tart with crème fraîche"},{src:F,alt:"House pâté with toasted sourdough and chutney"},{src:f,alt:"Hand-raised pub pie with mash, peas and rich gravy"},{src:T,alt:"Beer-battered fish and chips with mushy peas, tartar sauce and lemon"},{src:x,alt:"Sunday roast on the table with red wine, gravy boat and a pint of ale"},{src:j,alt:"Baked dish with golden cheese topping and pea shoots, served with crusty bread"}],M=()=>{const[t,o]=l.useState(null),n=l.useCallback(()=>o(null),[]),i=l.useCallback(()=>o(a=>a===null?null:(a+1)%r.length),[]),c=l.useCallback(()=>o(a=>a===null?null:(a-1+r.length)%r.length),[]);return l.useEffect(()=>{if(t===null)return;const a=s=>{s.key==="Escape"&&n(),s.key==="ArrowRight"&&i(),s.key==="ArrowLeft"&&c()};return document.body.style.overflow="hidden",window.addEventListener("keydown",a),()=>{document.body.style.overflow="",window.removeEventListener("keydown",a)}},[t,n,i,c]),e.jsxs(e.Fragment,{children:[e.jsx(h,{title:"Gallery | The Crown Inn, Dial Post â Pub, Rooms & Food",description:"A look inside The Crown Inn at Dial Post: beamed bar, garden room, bedroom suites, hand-raised pies and seasonal Sussex food, near Knepp Estate."}),e.jsxs("section",{className:"page-hero has-bg",children:[e.jsx("div",{className:"page-hero-bg",style:{backgroundImage:`url('${d}')`}}),e.jsxs("div",{className:"page-hero-inner",children:[e.jsx("p",{className:"intro-eyebrow",children:"Gallery"}),e.jsx("h1",{className:"page-hero-title",children:"Inside The Crown"})]})]}),e.jsx("div",{className:"page-shell",children:e.jsx(g,{})}),e.jsx("section",{className:"gallery-section",children:e.jsx("div",{className:"gallery-grid",children:r.map((a,s)=>e.jsx("button",{type:"button",className:"gallery-cell",onClick:()=>o(s),"aria-label":`Open photo: ${a.alt}`,style:{backgroundImage:`url('${a.src}')`,backgroundSize:"cover",backgroundPosition:"center"},children:e.jsx("img",{src:a.src,alt:a.alt,width:600,height:600,loading:s<4?"eager":"lazy",decoding:"async",style:{width:"100%",height:"100%",objectFit:"cover",display:"block",opacity:0}
1})},a.src))})}),t!==null&&e.jsxs("div",{className:"lightbox",onClick:n,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e.jsx("button",{className:"lightbox-close","aria-label":"Close",onClick:n,children:"Ã"}),e.jsx("img",{src:r[t].src,alt:r[t].alt,className:"lightbox-content",style:{objectFit:"cover"},onClick:a=>a.stopPropagation()}),e.jsxs("div",{className:"lightbox-nav",onClick:a=>a.stopPropagation(),children:[e.jsx("button",{onClick:c,"aria-label":"Previous photo",children:"â¹ Prev"}),e.jsx("button",{onClick:i,"aria-label":"Next photo",children:"Next âº"})]})]})]})};export{M as default};
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.