/* Local, licensed visual fallbacks keep the same reserved card slot as demos. */
.representative-food-photo{margin:0;width:108px;flex:0 0 108px;order:1;align-self:center;color:var(--text)}
.representative-photo-image{position:relative;overflow:hidden;border-radius:14px;background:var(--surface-soft);aspect-ratio:1}
.representative-photo-image img{display:block;width:100%;height:100%;object-fit:cover}
.representative-photo-marker{position:absolute;bottom:0;left:0;right:0;background:#000d;color:#fff;font-size:10px;line-height:1.4;font-weight:650;text-align:center;padding:4px 3px}
.food:has(.representative-food-photo) .food-main{flex:1}.food:has(.representative-food-photo) .food-actions{order:2}
.menu-photo-rail .representative-food-photo{width:100%;flex:none;order:0}.menu-photo-rail .representative-photo-image{border-radius:16px}
.representative-detail-display{display:block;padding:12px}
.representative-detail-display .representative-food-photo{width:100%;max-width:420px;margin:0 auto;flex:none;order:0}
.representative-detail-display .representative-photo-image{aspect-ratio:4/3;border-radius:10px}
.representative-detail-display .representative-photo-image img{height:100%;max-height:none;object-fit:contain}
.representative-detail-display .representative-photo-marker{font-size:11px;padding:5px}
.representative-food-photo figcaption{font-size:12px;line-height:1.5;color:var(--muted)}
.representative-food-photo figcaption p{margin:8px 0;font-size:12px}
.representative-food-photo .representative-photo-credit{margin:4px 0;font-size:12px}
.representative-photo-credit summary{display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;font-weight:600;color:var(--text)}
.representative-photo-credit summary::before{content:'▸'}.representative-photo-credit[open] summary::before{content:'▾'}
.representative-photo-credit a{color:var(--green);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.representative-photo-credit :is(summary,a):focus-visible{outline:2px solid var(--text);outline-offset:3px;border-radius:3px}
.representative-detail-display>[data-photo-open]{display:block;margin:8px auto 0}
@media(max-width:380px){.representative-food-photo{width:80px;flex-basis:80px}.food:has(.representative-food-photo){gap:8px}.food:has(.representative-food-photo) .food-title{font-size:15px}.representative-photo-marker{font-size:9px}}
/* Match the established narrow card layout so source nutrition keeps its space. */
@media(max-width:767px){
 .food-grid .food.food-compact:has(.representative-food-photo){flex-wrap:wrap}
 .food-grid .food.food-compact:has(.representative-food-photo) .food-main{flex:1 0 100%}
 .food-grid .food.food-compact:has(.representative-food-photo) .representative-food-photo{order:0}
 .food-grid .food.food-compact:has(.representative-food-photo) .food-actions{position:absolute;top:12px;right:0}
}

/* Photo-quality pass: preserve the full subject without padded double framing. */
.food-photos .representative-detail-display{padding:0;background:transparent;border-radius:0;overflow:visible;min-height:0}
.representative-detail-display .representative-food-photo{max-width:100%;margin:0}
.representative-detail-display .representative-photo-image{aspect-ratio:auto;border-radius:12px;overflow:hidden}
.representative-detail-display .representative-photo-image img{width:100%;height:auto;max-height:360px;object-fit:contain;display:block}
.food-photos .representative-photo-credit{margin:0;font-size:11px;font-weight:400}
.food-photos .representative-photo-credit summary{min-height:44px;font-size:11px;font-weight:400;color:var(--muted)}
.food-photos > [data-photo-open]{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:13px}
.food-photos .food-photo-status{margin:0 0 8px;font-size:11px;color:var(--muted)}
