.food-photos{margin:16px 0 8px;padding:0;color:var(--text)}.food-photo-display{display:grid;place-items:center;min-height:112px;background:var(--surface-soft);border-radius:12px;overflow:hidden;margin-bottom:8px;color:var(--muted)}.food-photo-display img{display:block;width:100%;height:auto;max-height:320px;object-fit:cover}.food-photo-display p{margin:14px 0 0;font-size:12px}.food-photo-status,.food-photos [data-result]{font-size:14px;line-height:1.5;color:var(--muted)}.food-photos [data-photo-form]{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.food-photo-pickers{display:flex;flex-wrap:wrap;gap:12px}.food-photo-pickers label{display:grid;gap:5px;max-width:100%;font-weight:600}.food-photo-pickers input{max-width:100%;color:var(--text)}.food-photo-stars{display:flex;align-items:center;gap:12px;margin:16px 0}.food-photos input[type=checkbox]{min-width:20px;min-height:20px}.food-photos button,.food-photos select{min-height:44px;margin:4px 8px 4px 0}.food-photos [hidden]{display:none!important}
.food-photo-scope{display:flex;flex-wrap:wrap;gap:6px;font-size:13px}.food-photo-scope span{background:var(--surface-soft);padding:4px 8px;border-radius:6px}.food-photos details{margin:12px 0;color:var(--muted);font-size:13px}.food-photos summary{cursor:pointer;min-height:44px}

.food-photos button{appearance:none;border:0;border-radius:999px;padding:10px 16px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:14px;font-weight:650;cursor:pointer}.food-photo-display>[data-photo-open]{background:var(--surface);margin:0 0 12px;box-shadow:0 1px 4px #0001}.food-photos button:disabled{opacity:.5;cursor:not-allowed}.food-photos button:focus-visible,.food-photos summary:focus-visible{outline:2px solid var(--text);outline-offset:3px}.food-photo-status{margin:8px 0;font-size:12px}.food-photo-pickers input::file-selector-button{border:0;border-radius:8px;background:var(--surface-soft);color:var(--text);padding:10px;font:inherit;min-height:44px}

/* Add photo is a distinct, scrollable route inside the shared detail shell. */
#detail.food-photo-page-active > [hidden],
.food-photo-page [hidden] { display: none!important; }
#detail.food-photo-page-active { width: min(680px, calc(100vw - 64px)); max-width: 680px; }
.food-photo-page { color: var(--text); background: var(--dialog-surface, var(--surface)); }
.food-photo-page-nav {
  display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 8px 24px;
  border-bottom: 1px solid var(--line); background: var(--dialog-surface, var(--surface));
  position: sticky; top: 0; z-index: 3;
}
.food-photo-page-nav > span { display: none; } /* The page heading names this task. */
.food-photo-page button { appearance: none; font: inherit; cursor: pointer; color: var(--text); }
.food-photo-page-nav button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 14px; font-weight: 650; }
.food-photo-page-nav button span { font-size: 22px; }
.food-photo-page-body { padding: 28px 32px 32px; }
#detail.food-detail .food-photo-page h2 { font-size: 25px; letter-spacing: -.6px; line-height: 1.25; margin: 0 0 10px; }
.food-photo-intro { margin: 0 0 12px; font-size: 17px; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
.food-photo-page .food-photo-scope { display: grid; gap: 5px; padding: 0; margin: 0 0 12px; }
.food-photo-scope > div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; font-size: 12px; line-height: 1.5; }
.food-photo-scope dt { color: var(--muted); font-weight: 500; }
.food-photo-scope dd { margin: 0; overflow-wrap: anywhere; }
.food-photo-page-status { margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; }
.food-photo-preview { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; min-height: 144px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface-soft); overflow: hidden; }
.food-photo-preview [data-preview-empty] { font-size: 32px; font-weight: 300; color: var(--muted); }
.food-photo-preview p { margin: 0; font-size: 12px; color: var(--muted); }
.food-photo-preview img { display: block; width: 100%; height: 240px; object-fit: contain; }
.food-photo-page .food-photo-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.food-photo-page .food-photo-pickers label { position: relative; display: flex; justify-content: center; align-items: center; gap: 9px; padding: 11px 12px; min-height: 46px; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--text); font-size: 13px; font-weight: 650; cursor: pointer; overflow: hidden; }
.food-photo-page .food-photo-pickers label > span { font-size: 18px; line-height: 1; }
.food-photo-page .food-photo-pickers input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.food-photo-page .food-photo-pickers label:has(input:disabled) { opacity: .55; cursor: default; }
.food-photo-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.food-photo-page .food-photo-stars { display: block; border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.food-photo-stars legend { padding: 0; color: var(--text); font-size: 14px; font-weight: 650; }
.food-photo-stars legend span { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.food-photo-star-row { display: flex; align-items: center; gap: 3px; margin-top: 6px; }
.food-photo-star-row label { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; cursor: pointer; }
.food-photo-star-row label input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 44px; height: 44px; flex: 0 0 44px; cursor: pointer; }
.food-photo-star-row label span { font-size: 31px; line-height: 1; color: var(--green); }
.food-photo-star-row button { min-height: 44px; margin-left: auto; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.food-photo-credit { padding: 18px 0; border-block: 1px solid var(--line); }
.food-photo-toggle { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; cursor: pointer; font-size: 14px; font-weight: 650; }
.food-photo-toggle input { position: absolute; right: 0; width: 48px; height: 44px; margin: 0; opacity: 0; z-index: 1; cursor: pointer; }
.food-photo-switch { width: 44px; height: 26px; background: var(--muted); border-radius: 99px; position: relative; flex: 0 0 44px; }
.food-photo-switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: var(--surface); border-radius: 50%; }
.food-photo-toggle input:checked + .food-photo-switch { background: var(--green); }
.food-photo-toggle input:checked + .food-photo-switch::after { transform: translateX(18px); }
.food-photo-credit [data-name-field] { margin-top: 16px; }
.food-photo-credit [data-name-field] > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.food-photo-credit input[type=text] { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: 14px; }
.food-photo-permission { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 12px; line-height: 1.6; min-height: 44px; cursor: pointer; }
.food-photo-permission input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.food-photo-submit-row { margin-top: 20px; }
.food-photo-page [data-submit] { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--green); color: var(--canvas); font-size: 14px; font-weight: 700; }
.food-photo-page [data-submit]:disabled { opacity: .5; cursor: not-allowed; }
.food-photo-page [data-result] { margin: 12px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.food-photo-page [data-result]:empty { display: none; }
.food-photo-page :is(button,input):focus-visible,
.food-photo-page label:has(input:focus-visible),
.food-photo-page .food-photo-toggle:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.food-photo-page h2:focus { outline: none; }
@media (min-width: 768px) {
  .food-photo-page-body { max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; box-sizing: border-box; }
}
@media (max-width: 767px) {
  #detail.food-photo-page-active { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; }
  .food-photo-page-nav { padding: calc(8px + env(safe-area-inset-top, 0px)) 20px 8px; }
  .food-photo-page-body { padding: 22px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
  #detail.food-detail .food-photo-page h2 { font-size: 24px; }
  .food-photo-preview { min-height: 128px; }
  .food-photo-preview img { height: 220px; }
}
@media (max-width: 359px) {
  .food-photo-page-nav { padding-inline: 16px; }
  .food-photo-page-body { padding-inline: 16px; }
  .food-photo-star-row { gap: 0; }
  .food-photo-star-row button { padding-inline: 4px; }
}

/* Approved detail photos only. Cards retain their single cover treatment. */
.food-photo-gallery-display { display: block; overflow: visible; min-height: 0; background: transparent; }
.food-photo-gallery { width: 100%; outline: none; }
.food-photo-viewport { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--surface-soft); touch-action: pan-y pinch-zoom; }
.food-photo-media { position: absolute; inset: 0; }
.food-photo-display .food-photo-media img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.food-photos .food-photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: white; border-radius: 50%; }
.food-photo-arrow > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0006; font-size: 27px; font-weight: 400; line-height: 1; text-shadow: 0 1px 3px #0005; }
.food-photo-previous { left: 4px; }
.food-photo-next { right: 4px; }
.food-photos .food-photo-arrow:disabled { opacity: 0; pointer-events: none; }
.food-photo-credit-line { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.food-photo-dots { display: flex; justify-content: center; align-items: center; min-height: 24px; margin: 3px auto 0; }
.food-photos .food-photo-dot { display: grid; place-items: center; width: 24px; height: 24px; min-height: 24px; margin: 0; padding: 0; border: 0; background: transparent; }
.food-photo-dot > span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .36; }
.food-photo-dot[aria-current="true"] > span { background: var(--text); opacity: .85; }
.food-photo-dot.food-photo-dot-edge > span { width: 3px; height: 3px; }
.food-photo-position { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.food-photo-gallery:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 12px; }
@media (hover: none) and (pointer: coarse) { .food-photos .food-photo-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .food-photo-gallery *, .food-photo-gallery *::before, .food-photo-gallery *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }
.food-photo-display .food-photo-media img{object-fit:contain;background:var(--surface-soft)}
/* Curated staple cover credits stay folded and follow only that selected image. */
.food-photo-stock-credit{font-size:12px;color:var(--muted);line-height:1.5}
.food-photo-stock-credit[hidden]{display:none}
.food-photo-stock-credit p{font-size:12px;margin:6px 0}

/* Optional comment remains in the same guarded photo submission. */
.food-photo-comment{margin:20px 0}
.food-photo-comment>label{display:block;margin-bottom:8px;font-size:14px;font-weight:650}
.food-photo-comment>label span{margin-left:5px;color:var(--muted);font-size:12px;font-weight:400}
.food-photo-comment textarea{box-sizing:border-box;display:block;width:100%;min-height:100px;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:16px;line-height:1.5}
.food-photo-page textarea:focus-visible{outline:2px solid var(--text);outline-offset:3px}

.food-photo-consents{border:0;padding:0;margin:20px 0;min-width:0}.food-photo-consents legend{font-size:15px;font-weight:700}.food-photo-page progress{display:block;width:100%;height:8px;accent-color:var(--green,#174c37);margin:20px 0 10px}.food-photo-page [hidden],.photo-attachment-picker [hidden]{display:none!important}.food-photo-page [data-remove-photo],.food-photo-page [data-save-rating],.food-photo-page [data-reload-upload],.food-photo-page [data-attach-upload]{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--text);font:inherit;cursor:pointer}.food-photo-page :disabled{cursor:default;opacity:.55}.food-photo-page [data-save-rating]{margin-top:10px}.food-photo-page [data-attempt]{margin-top:20px;font-size:12px;overflow-wrap:anywhere}.food-photo-page [data-saved-actions]{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:20px}.food-photo-page .food-photo-pickers{flex-wrap:wrap}.food-photo-page .food-photo-permission{min-height:44px;align-items:flex-start}.food-photo-page .food-photo-permission input{flex:none;width:20px;height:20px;accent-color:var(--green,#174c37)}.photo-attachment-picker{border-top:1px solid var(--line);padding:16px 0;margin:12px 0}.photo-attachment-picker summary{font-size:14px;font-weight:650;cursor:pointer;min-height:44px;display:list-item}.photo-attachment-picker summary span{font-size:12px;font-weight:400;color:var(--muted)}.photo-attachment-picker [data-attachment-options]>div{border:1px solid var(--line);padding:12px;border-radius:12px;margin:8px 0}.photo-attachment-picker label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px}.photo-attachment-picker input{width:20px;height:20px;flex:none;accent-color:var(--green,#174c37)}.photo-attachment-picker img{display:block;width:100%;max-height:200px;object-fit:contain;border-radius:10px;margin-top:12px}.photo-attachment-picker button{min-height:44px;border:1px solid var(--line);background:var(--surface-soft);color:var(--text);font:inherit;border-radius:10px;padding:8px 12px;margin:4px}.food-photo-page a:focus-visible,.photo-attachment-picker :focus-visible{outline:3px solid var(--text);outline-offset:3px}

.food-photo-page [data-remove-photo]{grid-column:1/-1;font-size:13px;min-height:44px}.food-photo-submit-row a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0}.written-review-form .photo-attachment-picker label{display:flex;align-items:center;gap:10px;font-weight:400}.written-review-form .photo-attachment-picker input[type=radio]{width:20px;height:20px;flex:0 0 20px;margin:0}
