/* Photos remain visible without JavaScript or IntersectionObserver support. */
.menu-photo,.story-image,.sauce-photo,.signature-step-photo,.dish-photo,.dish-card,.catering>img,.catering-hero>img,.location-hero>img {
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.photo-reveal-pending { opacity: 0; transform: translateY(18px); }
.photo-zoom { display: block; position: relative; width: 100%; cursor: zoom-in; }
.photo-zoom:focus-visible { outline-offset: -4px; border-radius: 5px; }
.menu-photo>.photo-zoom { height: 100%; }
.photo-zoom .photo-zoom-hint {
  position: absolute; left: auto; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 8px 12px; border-radius: 3px; background: var(--ink);
  color: var(--cream); font-size: 11px; font-weight: 700; pointer-events: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.menu-photo>span { pointer-events: none; }
.menu-photo .photo-zoom-hint { top: 12px; bottom: auto; }
.dish-card-link { display: inline-block; font-size: 11px; font-weight: 800; }
.dish-card h3 a:hover,.dish-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
body.photo-viewer-open { overflow: hidden; }
dialog.photo-viewer {
  width: min(1100px,calc(100% - 24px)); max-width: none;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  padding: 0; background: var(--ink); color: var(--cream); overflow: auto;
  border-radius: 8px;
}
.photo-viewer[open] { animation: photo-open .22s ease-out; }
.photo-viewer::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.photo-viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; }
.photo-viewer-heading h2 { margin: 0; max-width: 850px; font-size: 18px; line-height: 1.4; letter-spacing: -.01em; }
.photo-viewer-close {
  flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #76766b;
  border-radius: 50%; background: transparent; color: var(--cream);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.photo-viewer-close:hover { background: #34342c; }
.photo-viewer figure { margin: 0; padding: 0 22px 18px; }
.photo-viewer figure img {
  width: 100%; height: auto; max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px); object-fit: contain;
  border-radius: 5px; background: var(--cream);
}
.photo-viewer figcaption { padding-top: 10px; font-size: 11px; color: #c6c6bb; }
@keyframes photo-open {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
@media(max-width:760px) {
  .photo-viewer-heading { gap: 12px; padding: 12px; }
  .photo-viewer-heading h2 { font-size: 14px; }
  .photo-viewer figure { padding: 0 12px 14px; }
  .photo-zoom .photo-zoom-hint { right: 8px; bottom: 8px; padding: 7px 9px; font-size: 10px; }
  .menu-photo .photo-zoom-hint { top: 8px; bottom: auto; }
}
@media(prefers-reduced-motion:reduce) {
  .photo-reveal-pending { opacity: 1; transform: none; }
  .photo-viewer[open] { animation: none; }
  .menu-photo,.story-image,.sauce-photo,.signature-step-photo,.dish-photo,.dish-card,.catering>img,.catering-hero>img,.location-hero>img { transition: none; }
}
@media print {
  .photo-reveal-pending { opacity: 1; transform: none; }
  .photo-zoom-hint { display: none!important; }
  body.photo-viewer-open { overflow: visible; }
}
