/* MOC editorial food gallery */
.food-gallery-shell{min-width:0;max-width:100%}.food-gallery-track{display:flex;gap:clamp(12px,2vw,22px);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;padding:5px 2px 15px;scrollbar-width:thin;scrollbar-color:#8b725c transparent;-webkit-overflow-scrolling:touch}.food-gallery-card{margin:0;flex:0 0 clamp(220px,30vw,345px);min-width:0;scroll-snap-align:start}.food-gallery-photo{display:block;position:relative;width:100%;padding:0;border:0;background:#34251d;cursor:zoom-in;overflow:hidden;border-radius:4px}.food-gallery-photo img{width:100%;aspect-ratio:4/5;display:block;object-fit:cover;transition:transform .35s ease}.food-gallery-photo:hover img{transform:scale(1.035)}.food-gallery-card figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:13px 2px 4px;color:#f2e5d3}.food-gallery-number{color:#ddc09a;font-size:12px;white-space:nowrap}.food-gallery-name{font-size:15px;font-weight:600;text-align:right}.food-gallery-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px}.food-gallery-hint{color:#e0c9ae;font-size:13px}.food-gallery-buttons{display:flex;gap:10px}.food-gallery-buttons button,.food-gallery-modal button{cursor:pointer;background:#edddc7;color:#241710;border:1px solid #b59b7d;border-radius:50%;width:43px;height:43px;font-size:24px;display:grid;place-items:center}.food-gallery-buttons button:hover{background:white}.food-gallery-buttons button:disabled{opacity:.5;cursor:default}.food-gallery-lightbox{padding:0;border:0;max-width:min(96vw,1100px);max-height:96vh;background:#1b120e;color:#fff;border-radius:8px}.food-gallery-lightbox::backdrop{background:rgba(0,0,0,.88)}.food-gallery-modal{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:12px;align-items:center;padding:48px 18px 18px;position:relative}.food-gallery-modal figure{margin:0;text-align:center;min-width:0}.food-gallery-modal figure img{max-width:100%;max-height:calc(90vh - 145px);width:auto;height:auto;object-fit:contain;border-radius:3px}.food-gallery-modal figcaption{font-size:16px;font-weight:600;padding:12px;color:#fff0dd}.food-gallery-close{position:absolute;right:12px;top:9px}.food-gallery-modal button:focus-visible,.food-gallery-photo:focus-visible,.food-gallery-buttons button:focus-visible{outline:3px solid #eec893;outline-offset:3px}@media(max-width:760px){.food-gallery-card{flex-basis:82%;max-width:365px}.food-gallery-track{gap:14px}.food-gallery-modal{grid-template-columns:34px minmax(0,1fr) 34px;gap:4px;padding:52px 6px 15px}.food-gallery-modal button{width:34px;height:34px;font-size:20px}.food-gallery-close{top:10px;right:10px}.food-gallery-hint{font-size:12px}}@media(prefers-reduced-motion:reduce){.food-gallery-photo img{transition:none}.food-gallery-track{scroll-behavior:auto}}
/* Captions belong on the gallery's light editorial background, not over photos. */
.photo-story .food-gallery-card figcaption{position:static;background:transparent;color:#35251b;text-shadow:none;padding:13px 2px 4px;font-weight:600}
.photo-story .food-gallery-card .food-gallery-number{color:#63462f}
.photo-story .food-gallery-card .food-gallery-name{color:#35251b}
.photo-story .food-gallery-hint{color:#63462f}

/* Captions identify actual MOC dishes. */

/* Robust loading: first photos eager, others lazy. Keep visible error fallback. */
.food-gallery-photo img{position:relative;inset:auto;opacity:1;visibility:visible;content-visibility:visible;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;}
.food-gallery-photo.food-gallery-image-error::after{content:"Photo unavailable";position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:#34251d;font:500 14px sans-serif;}

/* Fix specificity collision: generic .photo-story figure img styles must not
   absolutely position images inside the food carousel's button. */
.photo-story .food-gallery-card{min-height:0;overflow:visible;background:transparent;}
.photo-story .food-gallery-photo{display:block;width:100%;aspect-ratio:4/5;overflow:hidden;background:#d7bfa5;}
.photo-story .food-gallery-photo img{position:static;inset:auto;display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;opacity:1;visibility:visible;}

/* Named MOC food photography gallery – stable editorial layout. */
.photo-story .food-gallery-card figcaption{display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px 2px 4px;min-height:47px;box-sizing:border-box}
.photo-story .food-gallery-card .food-gallery-name{order:0;flex:1;min-width:0;text-align:left;font-size:14px;line-height:1.4;font-weight:650;color:#3c2b20;overflow-wrap:anywhere}
.photo-story .food-gallery-card .food-gallery-number{order:1;flex:0 0 auto;white-space:nowrap;text-align:right;font-size:11px;line-height:1.6;color:#74553b;font-variant-numeric:tabular-nums}
@media(max-width:760px){.photo-story .food-gallery-card .food-gallery-name{font-size:13px}.photo-story .food-gallery-card figcaption{gap:8px}}

/* MOC 15-photo gallery: true original proportions, no stretching/cropped plates. */
.photo-story .food-gallery-photo{aspect-ratio:4/5;display:grid;place-items:center;background:#e8d5ba;}
.photo-story .food-gallery-photo img{position:static!important;inset:auto!important;display:block!important;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain!important;object-position:center;aspect-ratio:auto!important;transform:none!important;}
.food-gallery-modal figure img{max-width:100%;max-height:calc(90vh - 145px);width:auto;height:auto;object-fit:contain!important;}
.photo-story .food-gallery-card figcaption{min-height:64px;}

/* MOC 15-photo gallery: true original proportions, no stretching/cropped plates. */
.photo-story .food-gallery-photo{aspect-ratio:4/5;display:grid;place-items:center;background:#e8d5ba;}
.photo-story .food-gallery-photo img{position:static!important;inset:auto!important;display:block!important;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain!important;object-position:center;aspect-ratio:auto!important;transform:none!important;}
.food-gallery-modal figure img{max-width:100%;max-height:calc(90vh - 145px);width:auto;height:auto;object-fit:contain!important;}
.photo-story .food-gallery-card figcaption{min-height:64px;}

/* MOC V7 — photo-first editorial grid; keeps original photos fully visible. */
.photo-story .food-gallery-shell{max-width:1180px;margin:0 auto;min-width:0}
.photo-story .moc-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 24px;flex-wrap:wrap}
.photo-story .moc-gallery-filter-buttons{display:flex;flex-wrap:wrap;gap:9px}
.photo-story .moc-gallery-filter{font:inherit;font-size:12px;font-weight:600;letter-spacing:.015em;padding:10px 15px;border:1px solid #bea88e;background:transparent;color:#513b2b;border-radius:24px;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
.photo-story .moc-gallery-filter[aria-pressed="true"]{background:#3b291e;color:#f4e7d4;border-color:#3b291e}
.photo-story .moc-gallery-filter:not([aria-pressed="true"]):hover{background:#eee1d0}
.photo-story .moc-gallery-status{font-size:12px;color:#715945;white-space:nowrap;font-variant-numeric:tabular-nums}
.photo-story .food-gallery-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px;overflow:visible;scroll-snap-type:none;padding:0;min-width:0}
.photo-story .food-gallery-card{width:100%;max-width:none;min-width:0;flex:none;overflow:visible;margin:0;display:flex;flex-direction:column}
.photo-story .food-gallery-card[hidden]{display:none!important}
.photo-story .food-gallery-photo{aspect-ratio:4/5;width:100%;max-width:100%;min-height:0;display:grid;place-items:center;background:#e8d5ba;border-radius:5px;overflow:hidden;border:1px solid rgba(91,62,41,.10)}
.photo-story .food-gallery-photo img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center;transform:none!important}
.photo-story .food-gallery-card .food-gallery-name{font-size:14px;line-height:1.45;text-align:left;font-weight:650}
.photo-story .food-gallery-card figcaption{padding:11px 2px 0;min-height:0;gap:7px}
.photo-story .food-gallery-card .food-gallery-number{font-size:11px;line-height:1.5}
.photo-story .food-gallery-track.is-featured .food-gallery-card:first-child{grid-column:span 2;grid-row:span 2}
.photo-story .food-gallery-track.is-featured .food-gallery-card:first-child .food-gallery-photo{height:100%;min-height:0;flex:1;aspect-ratio:auto}
.photo-story .food-gallery-track.is-featured .food-gallery-card:first-child .food-gallery-photo img{object-fit:contain!important}
.photo-story .moc-gallery-expand-wrap{display:flex;justify-content:center;margin:28px auto 4px}
.photo-story .moc-gallery-expand{font:inherit;font-size:13px;font-weight:650;letter-spacing:.035em;background:#3c291e;color:#f5ead9;border:1px solid #3c291e;border-radius:40px;padding:14px 27px;cursor:pointer;transition:background .18s,transform .18s}
.photo-story .moc-gallery-expand:not([hidden]):hover{background:#5c3c2a;transform:translateY(-1px)}
.photo-story .moc-gallery-expand[hidden]{display:none!important}
.photo-story .food-gallery-controls{display:none!important}
.photo-story .moc-gallery-filter:focus-visible,.photo-story .moc-gallery-expand:focus-visible{outline:3px solid #a67645;outline-offset:3px}
@media(max-width:760px){
 .photo-story .food-gallery-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 .photo-story .food-gallery-track.is-featured .food-gallery-card:first-child{grid-column:span 2;grid-row:auto}
 .photo-story .food-gallery-track.is-featured .food-gallery-card:first-child .food-gallery-photo{aspect-ratio:4/3;max-height:430px}
 .photo-story .moc-gallery-toolbar{margin:13px 0 18px;gap:9px}
 .photo-story .moc-gallery-filter-buttons{gap:7px}
 .photo-story .moc-gallery-filter{font-size:11px;padding:9px 12px}
 .photo-story .food-gallery-card .food-gallery-name{font-size:12px;line-height:1.36}
 .photo-story .food-gallery-card .food-gallery-number{font-size:10px}
 .photo-story .food-gallery-card figcaption{gap:6px;flex-wrap:wrap}
}
@media(max-width:380px){.photo-story .food-gallery-track{gap:14px 9px}.photo-story .moc-gallery-filter{padding:8px 10px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.photo-story .moc-gallery-filter,.photo-story .moc-gallery-expand{transition:none}}


/* Restore the V7 horizontal filmstrip while keeping category filters. */
.photo-story .food-gallery-shell{max-width:100%;min-width:0}
.photo-story .food-gallery-track,
.photo-story .food-gallery-track.is-featured{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  gap:clamp(12px,2vw,22px)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  scroll-padding-inline:2px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#8b725c transparent;
  padding:5px 2px 15px!important;
}
.photo-story .food-gallery-card,
.photo-story .food-gallery-track.is-featured .food-gallery-card:first-child{
  flex:0 0 clamp(220px,30vw,345px)!important;
  width:clamp(220px,30vw,345px)!important;
  max-width:345px!important;
  min-width:0;
  grid-column:auto!important;
  grid-row:auto!important;
  display:flex;
  flex-direction:column;
  scroll-snap-align:start;
  margin:0!important;
}
.photo-story .food-gallery-card[hidden]{display:none!important}
.photo-story .food-gallery-photo,
.photo-story .food-gallery-track.is-featured .food-gallery-card:first-child .food-gallery-photo{
  display:grid;
  place-items:center;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  flex:none!important;
  aspect-ratio:4/5!important;
  overflow:hidden;
  background:#e8d5ba;
}
.photo-story .food-gallery-photo img,
.photo-story .food-gallery-track.is-featured .food-gallery-card:first-child .food-gallery-photo img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.photo-story .food-gallery-card figcaption{min-height:62px;padding:12px 2px 4px}
.photo-story .food-gallery-controls{display:flex!important;justify-content:space-between;align-items:center;gap:12px;margin-top:9px}
.photo-story .moc-gallery-expand-wrap{display:none!important}
.photo-story .moc-gallery-toolbar{margin-bottom:18px}
.photo-story .food-gallery-buttons button:disabled{opacity:.38;cursor:default}
@media(max-width:760px){
 .photo-story .food-gallery-track{gap:14px!important}
 .photo-story .food-gallery-card,
 .photo-story .food-gallery-track.is-featured .food-gallery-card:first-child{
   flex-basis:min(82vw,365px)!important;
   width:min(82vw,365px)!important;
   max-width:365px!important;
 }
 .photo-story .food-gallery-card figcaption{min-height:64px}
}
