/* Scoped to meal stories; existing salad styles stay unchanged. */
.meal-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;}.meal-story-card{border:1px solid var(--line-strong);border-radius:1.1rem;overflow:hidden;background:var(--surface-2);color:var(--text);}.meal-story-card[hidden]{display:none;}.meal-story-card>img{width:100%;height:auto;aspect-ratio:var(--preview-ratio,4/3);object-fit:contain;background:#080808;}.meal-story-card--portrait{display:grid;grid-template-columns:clamp(88px,32%,128px) minmax(0,1fr);align-items:start;align-self:start;}
.meal-story-card.meal-story-card--portrait>img{grid-column:1;grid-row:1;width:100%;height:auto;aspect-ratio:var(--preview-ratio);align-self:start;}
.meal-story-card--portrait .meal-story-card-body{grid-column:2;grid-row:1;min-width:0;padding:.8rem .9rem;border-inline-start:1px solid var(--line);overflow-wrap:anywhere;}
.meal-story-card--portrait .meal-story-metrics{gap:.5rem .8rem;margin:.7rem 0;}
.meal-story-card--portrait>.meal-story-fallback{grid-column:1/-1;grid-row:2;min-width:0;margin:0;padding:.75rem .9rem;border-top:1px solid var(--line);}
.meal-story-card-body{padding:1.25rem;}.meal-story-card h3{font-size:1.4rem;line-height:1.25;margin:.6rem 0;}.meal-story-category{color:var(--text-2);font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;}.meal-story-basis,.meal-story-note{font-size:.85rem;line-height:1.5;}.meal-story-card .meal-story-basis{color:var(--text-2);}.meal-story-card a,.meal-story-dialog a{color:var(--text);text-decoration:underline;text-underline-offset:.2em;}.meal-story-metrics{display:flex;flex-wrap:wrap;gap:1.5rem;margin:1.1rem 0;}.meal-story-metrics div{display:flex;flex-direction:column-reverse;}.meal-story-metrics dt{font-size:.75rem;opacity:1;}.meal-story-metrics dd{margin:0;font-size:1.5rem;font-weight:750;}.meal-story-filters{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.25rem 0;}.meal-story-filters[hidden]{display:none;}.meal-story-filters button{border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);border-radius:2rem;padding:.65rem 1rem;cursor:pointer;font:inherit;min-height:44px;}.meal-story-filters button[aria-pressed=true]{background:var(--accent-strong);color:var(--accent-ink);}.meal-story-card--preview{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:start;}.meal-story-card--preview>img{height:120px;max-width:100%;}.meal-story-card--preview .meal-story-card-body{padding:.8rem;}.meal-story-card--preview h3{font-size:1.1rem;margin:.4rem 0;}.meal-story-card--preview .meal-story-fallback{grid-column:1/-1;}.meal-story-card--preview .meal-story-category{letter-spacing:0;}.meal-story-card--preview .meal-story-basis{font-size:.8rem;}.meal-story-dialog{color:var(--text);background:var(--surface-2);border:1px solid var(--line-strong);border-radius:1.25rem;width:min(1050px,94vw);max-width:94vw;height:94dvh;max-height:94dvh;padding:0;overflow:hidden;}.meal-story-dialog[open]{display:flex;flex-direction:column}.meal-story-view-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:10px 16px;background:var(--viewer-head);color:#ffffff;border-bottom:2px solid #dba56b}.meal-story-view-content{flex:1;min-height:0;overflow:auto;padding:18px}.meal-story-dialog::backdrop{background:#000000dd;}.meal-story-dialog h2{font-size:1.8rem;line-height:1.2;}.meal-story-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;}.meal-story-detail-grid img{width:100%;max-height:440px;object-fit:contain;background:var(--surface-2);border-radius:.8rem;}.meal-story-close{flex:none;min-width:88px;min-height:44px;padding:6px 12px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);font-size:14px;cursor:pointer;}.meal-story-dialog li{margin:.5rem 0;}.meal-story-links{display:flex;flex-wrap:wrap;gap:1rem;margin:1rem 0;}.meal-story-check{border-left:2px solid var(--line-strong);padding-left:.8rem;font-size:.85rem;}.meal-story-player{margin-top:1rem;}.meal-story-player iframe{width:100%;aspect-ratio:9/16;max-height:440px;border:0;}.meal-story-play{padding:.7rem 1rem;min-height:44px;border:1px solid var(--line-strong);background:var(--accent-strong);color:var(--accent-ink);border-radius:2rem;cursor:pointer;font:inherit;}.meal-story-card a:focus-visible,.meal-story-dialog a:focus-visible,.meal-story-filters button:focus-visible,.meal-story-play:focus-visible,.meal-story-close:focus-visible{outline:3px solid var(--focus);outline-offset:4px;}@media(max-width:1000px){.meal-story-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:620px){.meal-story-grid,.meal-story-detail-grid{grid-template-columns:1fr;}.meal-story-dialog{padding:1rem;}}

.meal-story-detail-grid video{width:100%;max-height:440px;background:#080808;border-radius:.8rem;}.meal-photo-journal{margin-top:2rem;}.meal-photo-journal details{margin:1rem 0;}.meal-photo-journal summary{cursor:pointer;min-height:44px;padding:.7rem;}.meal-photo-journal figure{margin:0;}.meal-photo-journal img{width:100%;height:230px;object-fit:contain;}.meal-photo-journal figcaption{font-size:.8rem;line-height:1.4;}


.meal-carousel-window{overflow-x:auto!important;overscroll-behavior-x:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;cursor:grab;}.meal-carousel-window:active{cursor:grabbing;}.meal-carousel-window:focus-visible{outline:3px solid var(--focus);outline-offset:3px;}.meal-carousel-window::-webkit-scrollbar{display:none;}.meal-carousel-track{animation:none!important;transform:none!important;will-change:auto;}.meal-carousel-group[aria-hidden=true]{display:flex!important;}.meal-carousel-photo,.meal-carousel-photo img{-webkit-user-drag:none;user-select:none;}.meal-photo-controls [data-photo-close]{font-size:1.5rem;min-width:44px;padding:.35rem .8rem;}
/* Continuous photo ribbons, isolated from recipes and Mega Salads. */
.meal-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0;}.meal-gallery-head h3{margin:0;}.meal-gallery-pause,.meal-photo-controls button{min-height:44px;border:1px solid var(--line-strong);border-radius:2rem;padding:.65rem 1rem;background:var(--surface);color:var(--text);cursor:pointer;font:inherit;}.meal-gallery-pause[hidden]{display:none;}.meal-carousel{margin:1rem 0;min-width:0;}.meal-carousel h4{margin:0 0 .8rem;font-size:1rem;}.meal-carousel-window{overflow-x:auto;border-radius:1rem;background:var(--surface-2);scrollbar-width:thin;}.meal-carousel-track{display:flex;width:max-content;}.meal-carousel-group{display:flex;gap:14px;padding-right:14px;}.meal-carousel-photo{display:block;flex:0 0 clamp(200px,22vw,250px);width:clamp(200px,22vw,250px);height:160px;overflow:hidden;border-radius:1rem;position:relative;background:#080808;}.meal-photo-journal .meal-carousel-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s;}.meal-carousel-photo:hover img{transform:scale(1.04);}.meal-carousel-photo:focus-visible{outline:3px solid var(--focus);outline-offset:-4px;}.meal-carousel.is-animated .meal-carousel-window{overflow:hidden;}.meal-carousel.is-animated .meal-carousel-track{animation:meal-photo-drift var(--meal-drift,60s) linear infinite;will-change:transform;}.meal-carousel:nth-of-type(even) .meal-carousel-track{animation-direction:reverse;animation-duration:var(--meal-drift,60s);}.meal-carousel:hover .meal-carousel-track,.meal-carousel:focus-within .meal-carousel-track,.meal-photo-journal.is-paused .meal-carousel-track,html[data-motion="paused"] .meal-carousel-track{animation-play-state:paused;}.meal-photo-journal.is-paused .meal-carousel-window{overflow-x:auto;}@keyframes meal-photo-drift{to{transform:translateX(-50%)}}.meal-photo-viewer{width:min(1200px,96vw);max-width:96vw;height:94dvh;max-height:94dvh;padding:0;overflow:hidden;border:1px solid var(--line-strong);border-radius:1.25rem;background:#080808;color:#ffffff;}.meal-photo-viewer[open]{display:flex;flex-direction:column}.meal-photo-viewer .meal-photo-controls{flex:none;margin:0;padding:10px;background:var(--viewer-head);border-bottom:2px solid #dba56b}.meal-photo-viewer .meal-photo-stage{flex:1;min-height:0}.meal-photo-viewer::backdrop{background:#000000dd;}.meal-photo-viewer>img{display:block;width:100%;height:min(72dvh,850px);object-fit:contain;}.meal-photo-controls{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem;margin-bottom:.75rem;}.meal-photo-controls button:focus-visible,.meal-gallery-pause:focus-visible{outline:3px solid var(--focus);outline-offset:3px;}@media(max-width:620px){.meal-carousel-photo{width:200px;flex-basis:200px;height:140px;}.meal-gallery-head{align-items:flex-start;}.meal-gallery-pause{font-size:.8rem;}.meal-photo-viewer{padding:0;}.meal-photo-viewer>img{height:70dvh;}}

/* Orient the displayed photos without changing their originals. */
.meal-carousel-photo{container-type:size;}.meal-photo-journal .meal-carousel-photo img[data-turn="180"]{transform:rotate(180deg);}.meal-photo-journal .meal-carousel-photo img[data-turn="-90"]{position:absolute;left:50%;top:50%;width:100cqh;height:100cqw;max-width:none;transform:translate(-50%,-50%) rotate(-90deg);}.meal-photo-stage{position:relative;container-type:size;width:100%;height:min(72dvh,850px);overflow:hidden;touch-action:pan-y pinch-zoom;}.meal-photo-stage>img{position:absolute;left:50%;top:50%;width:100%;height:100%;max-width:none;object-fit:contain;transform:translate(-50%,-50%);user-select:none;-webkit-user-drag:none;}.meal-photo-stage>img[data-turn="180"]{transform:translate(-50%,-50%) rotate(180deg);}.meal-photo-stage>img[data-turn="-90"]{width:100cqh;height:100cqw;transform:translate(-50%,-50%) rotate(-90deg);}@media(max-width:620px){.meal-photo-stage{height:70dvh;}}

/* Keep failed photo sources reachable with an explicit, readable state. */
.meal-photo-journal .meal-carousel-photo img[hidden]{display:none;}.meal-photo-status{display:flex;align-items:center;justify-content:center;min-height:100%;padding:1rem;text-align:center;color:var(--text);background:var(--surface-2);font-size:.95rem;font-style:normal;}.meal-gallery-pause{flex-shrink:0;}

@media(prefers-reduced-motion:reduce){.meal-carousel.is-animated .meal-carousel-track{animation:none;transform:none}.meal-carousel-photo img{transition:none}}
