/* Owner-approved original photos: five compositions, one accessible gallery. */
.menu-gallery-page .menu-gallery.gallery-expanded{display:block;padding:clamp(24px,4vw,52px);margin-top:48px;border-top:1px solid currentColor}
.menu-gallery-page .gallery-expanded .gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:0 0 32px;background:none}
.menu-gallery-page .gallery-expanded .gallery-heading h2{font-size:clamp(36px,4.6vw,66px);max-width:16ch;margin:0}
.menu-gallery-page .gallery-expanded .gallery-heading p{max-width:36ch;margin:0}
.photo-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:30px 22px;min-width:0}
.photo-item{margin:0;min-width:0;break-inside:avoid;color:inherit}
.photo-open{display:block;position:relative;overflow:hidden;background:#e9e4d9;color:inherit;text-decoration:none}
.photo-open img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;transition:transform 450ms cubic-bezier(.22,1,.36,1)}
.photo-item.photo-full .photo-open img{aspect-ratio:auto;object-fit:contain}
.photo-open:after{content:'↗';position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:36px;height:36px;background:#fffdf2;color:#183e30;border-radius:50%;font:20px/1 Arial,sans-serif}
.photo-item figcaption{padding:14px 2px 4px;font:500 19px/1.35 var(--display);letter-spacing:0}
.photo-item figcaption small{display:block;font:400 12px/1.6 var(--text);margin-top:5px}
.photo-item figcaption a{display:inline-flex;align-items:center;min-height:36px;font:500 12px/1.4 var(--text);text-underline-offset:4px}
.menu-gallery-page .photo-item .photo-credit a{display:inline;overflow-wrap:anywhere}
.photo-open:focus-visible,.photo-item a:focus-visible{outline:3px solid currentColor;outline-offset:5px}
.gallery-menu-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0;font:600 14px/1.5 var(--text)}
.gallery-menu-links a{min-height:44px;display:inline-flex;align-items:center;text-underline-offset:5px}
.gallery-films{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:36px}
.gallery-film{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;border-block:1px solid currentColor;padding:24px 8px;color:inherit;text-decoration:none}
.gallery-film .film-play{display:grid;place-items:center;width:56px;height:56px;border:1px solid currentColor;border-radius:50%;font-size:24px}
.gallery-film strong{display:block;font:500 25px/1.2 var(--display)}
.gallery-film small{display:block;margin-top:9px;font:400 13px/1.5 var(--text)}
.gallery-film:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.gallery-archive-note{font:400 13px/1.65 var(--text);margin:24px 0 0;max-width:75ch}
/* Coastal: tidal columns with generous breathing room. */
.coastal .gallery-expanded .photo-collection{grid-template-columns:1.1fr 1fr 1fr;gap:36px 24px}
.coastal .gallery-expanded .photo-item:nth-child(3n+2){margin-top:52px}
.coastal .gallery-expanded .photo-item:nth-child(3n+1) .photo-open img{aspect-ratio:4/5}
.coastal .gallery-expanded .photo-item.photo-full .photo-open img{aspect-ratio:auto}
/* Hacienda: a courtyard wall, tile-colored mounts and alternating arch frames. */
.hacienda .gallery-expanded .photo-collection{gap:36px 28px}
.hacienda .gallery-expanded .photo-item{padding:10px;background:#fff8ed;border-bottom:3px double #994f3c}
.hacienda .gallery-expanded .photo-item:nth-child(3n+1):not(.photo-full) .photo-open{border-radius:46% 46% 0 0}
.hacienda .gallery-expanded .photo-item:nth-child(3n+2){margin-top:44px}
.hacienda .gallery-expanded .photo-item figcaption{text-align:center}
/* Family: a real album of shared meals, with a large opening spread. */
.family .gallery-expanded .photo-collection{grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
.family .gallery-expanded .photo-item{background:#fffaf1;padding:10px 10px 0;box-shadow:0 7px 16px #1746371a;rotate:var(--photo-angle,-.7deg)}
.family .gallery-expanded .photo-item:nth-child(even){--photo-angle:.8deg}
.family .gallery-expanded .photo-item:nth-child(-n+2){grid-column:span 2}
.family .gallery-expanded .photo-item figcaption{padding:12px 4px 6px}
/* Modern: an editorial mosaic with a wide food photograph opening the sequence. */
.modern .gallery-expanded .photo-collection{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.modern .gallery-expanded .photo-item:first-child{grid-column:span 2;grid-row:span 2}
.modern .gallery-expanded .photo-item:nth-child(6),.modern .gallery-expanded .photo-item:nth-child(11){grid-column:span 2}
.modern .gallery-expanded .photo-item figcaption{font:600 17px/1.4 var(--text);border-top:2px solid #ffffff75;padding:12px 0}
.modern .gallery-expanded .photo-open{border-radius:0}
.modern .gallery-expanded .photo-open:after{border-radius:0;background:#e6dcd0}
/* Heritage: paired pages in a culinary journal, with a slender marginal caption. */
.heritage .gallery-expanded .photo-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.heritage .gallery-expanded .photo-item{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:15px;border-top:1px solid #29375455;padding-top:18px}
.heritage .gallery-expanded .photo-item:nth-child(even){padding-top:56px}
.heritage .gallery-expanded .photo-item figcaption{font-style:italic;font-size:21px}
.heritage .gallery-expanded .photo-item figcaption small{font-style:normal}
/* Mamá and the recipe: full portrait, smaller food companion. No faces cropped. */
.story-page .story-soup.story-mama{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(28px,6vw,80px);align-items:center}
.story-page .mama-photo-pair{display:grid;grid-template-columns:minmax(0,1fr) 30%;gap:14px;align-items:end}
.story-page .story-mama .mama-portrait{grid-column:1/-1;width:100%;max-width:560px;padding:0;border:0;background:none;rotate:none}
.story-page .story-mama .mama-portrait img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.story-page .mama-soup-companion{grid-column:2;margin:0;max-width:180px;justify-self:end}
.story-page .mama-soup-companion img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center 55%;border:6px solid var(--paper)}
.story-page .mama-soup-companion figcaption{font:400 12px/1.5 var(--text);padding-top:4px}
.story-page .mama-photo-pair .mama-note{font:400 15px/1.65 var(--text);max-width:28ch;align-self:center;margin:0}
.story-page .story-mama .story-copy{text-align:left}
.story-page .story-mama .story-copy h2,.story-page .story-mama .story-copy p{margin-left:0}
.story-page .family-album{padding:56px 0;border-top:1px solid currentColor}
.story-page .album-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;padding-bottom:36px}
.story-page .album-heading h2{font:500 clamp(34px,4vw,54px)/1.1 var(--display);max-width:16ch;margin:0}
.story-page .album-heading p{font:400 16px/1.7 var(--text);max-width:42ch;margin:0}
.story-page .family-album .photo-collection{grid-template-columns:repeat(3,minmax(0,1fr))}
.story-page .family-album .photo-open img{aspect-ratio:auto;object-fit:contain}
.coastal.story-page .family-album .photo-item:nth-child(3n+2){margin-top:40px}
.hacienda.story-page .family-album .photo-item{border:4px double #994f3c;padding:12px;background:#eddbce}
.family.story-page .family-album{background:#f2ca52;padding:36px 24px}
.family.story-page .family-album .photo-item{background:#fffaf1;padding:10px;rotate:var(--photo-angle,-.7deg)}
.family.story-page .family-album .photo-item:nth-child(even){--photo-angle:.7deg}
.modern.story-page .family-album .photo-collection{grid-template-columns:repeat(4,minmax(0,1fr))}
.modern.story-page .family-album .photo-item:first-child{grid-column:span 2}
.modern.story-page .family-album .photo-item figcaption{border-top:2px solid currentColor;margin-top:10px}
.heritage.story-page .family-album .photo-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.heritage.story-page .family-album .photo-item{border-top:3px double #29375470;padding-top:16px}
.heritage.story-page .family-album .photo-item:nth-child(even){margin-top:48px}
.story-page .recognition-archive{margin-top:32px;border-top:1px solid currentColor;padding-top:8px}
.story-page .recognition-archive>summary{cursor:pointer;min-height:48px;display:list-item;padding:12px 0;font:600 15px/1.6 var(--text)}
.story-page .recognition-archive .photo-collection{max-width:720px;grid-template-columns:1fr 1fr;margin-top:20px}
.story-page .recognition-archive .photo-item{margin:0!important}
/* Full-size original viewer; dialog supplies focus containment and Escape behavior. */
.photo-dialog{width:min(1080px,94vw);max-height:94vh;max-height:94dvh;padding:20px;background:#fffaf1;color:#183e30;border:0;overflow:auto}
.photo-dialog::backdrop{background:#15231ce6}
.photo-dialog header{display:flex;justify-content:space-between;align-items:center;gap:24px}
.photo-dialog h2{font:500 clamp(22px,3vw,32px)/1.2 var(--display);margin:0}
.photo-dialog .photo-description{max-width:72ch;margin:12px 0 0;font:400 1rem/1.6 var(--text);color:inherit;text-wrap:pretty}
.photo-dialog .photo-description[hidden]{display:none}
.photo-dialog button{min-width:48px;min-height:48px;border:1px solid #183e3055;background:none;color:inherit;font:500 16px/1.3 var(--text);cursor:pointer}
.photo-dialog .photo-large{display:block;width:100%;height:min(66vh,780px);height:min(66dvh,780px);object-fit:contain;margin:16px 0;background:#ede9de}
.photo-dialog .photo-dialog-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;font:400 14px/1.6 var(--text)}
.photo-dialog .photo-dialog-bottom a{min-height:44px;display:inline-flex;align-items:center}
.photo-dialog .photo-paging{display:flex;gap:8px;align-items:center}
.photo-dialog :focus-visible{outline:3px solid #183e30;outline-offset:3px}
html.photo-dialog-open{overflow:hidden}
@media(hover:hover) and (pointer:fine){.photo-open:hover img{transform:scale(1.025)}.gallery-film:hover .film-play{background:var(--ink);color:var(--paper)}}
@media(max-width:900px){
 .family .gallery-expanded .photo-collection,.modern .gallery-expanded .photo-collection,.modern.story-page .family-album .photo-collection{grid-template-columns:repeat(2,minmax(0,1fr))}
 .modern .gallery-expanded .photo-item{grid-row:auto!important}
 .heritage .gallery-expanded .photo-item{display:block}
}
@media(max-width:650px){
 .menu-gallery-page .menu-gallery.gallery-expanded{padding:24px 12px}
 .menu-gallery-page .gallery-expanded .gallery-heading,.story-page .album-heading{display:block}
 .menu-gallery-page .gallery-expanded .gallery-heading p,.story-page .album-heading p{margin-top:16px}
 .menu-gallery-page .gallery-expanded .photo-collection,.story-page .family-album .photo-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
 .menu-gallery-page .gallery-expanded .photo-item,.story-page .family-album .photo-item{grid-column:auto!important;grid-row:auto!important;margin-top:0!important;rotate:none;padding-top:0}
 .menu-gallery-page .gallery-expanded .photo-item:first-child,.story-page .family-album .photo-item:first-child{grid-column:1/-1!important}
 .photo-item figcaption{font-size:18px}
 .gallery-films{grid-template-columns:1fr;gap:0}
 .gallery-film{padding:20px 0}
 .story-page .story-soup.story-mama{grid-template-columns:1fr;gap:28px}
 .story-page .family-album{padding:32px 12px}
 .story-page .family-album .photo-item{padding:8px}
 .story-page .recognition-archive .photo-collection{grid-template-columns:1fr}
 .photo-dialog{padding:14px;width:96vw;max-height:96dvh}
 .photo-dialog .photo-large{height:56dvh}
}
@media(max-width:380px){.menu-gallery-page .gallery-expanded .photo-collection,.story-page .family-album .photo-collection{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.photo-open img,.photo-item{transition:none!important;transform:none!important;rotate:none!important}}
.motion-off .photo-open img,.motion-off .photo-item{transition:none!important;transform:none!important;rotate:none!important}
@media print{.photo-dialog,.gallery-films{display:none!important}.photo-item{rotate:none!important;break-inside:avoid}}
