/* Bageriet i bilder (/bageriet). Egen stilmall så att Tailwind-bygget inte behöver köras om. Färgerna är samma som sajtens (luxe). */
.feed { --cols: 2; max-width: 1240px; margin: 0 auto; padding: 0 1rem 4.5rem; }
/* Mobil: två kolumner med tätare mellanrum och mindre knappar, så att man ser fler bilder snabbare. */
@media (max-width: 639px) {
  .feed { padding-left: .5rem; padding-right: .5rem; }
  .feed-head, .feed-filters { padding-left: .5rem; padding-right: .5rem; }
  .feed-grid, .feed-col { gap: 6px; }
  .feed-actions { top: .35rem; right: .35rem; gap: .25rem; }
  .feed-actions .feed-btn { width: 36px; height: 36px; }
  .feed-actions .feed-btn svg { width: 18px; height: 18px; }
  .feed-cap { padding: 1.75rem .55rem .5rem; font-size: .78rem; line-height: 1.25; }
}
@media (min-width: 1024px) { .feed { --cols: 3; padding-bottom: 3rem; } }
@media (min-width: 1280px) { .feed { --cols: 4; } }

.feed-head { text-align: center; max-width: 46rem; margin: 0 auto 1.75rem; padding-top: .5rem; }
.feed-head h1 { margin: 0 0 .6rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 500; line-height: 1.02; color: #1E1611; }
.feed-head .lead { margin: 0 auto 1.5rem; max-width: 38rem; font-size: 1.125rem; line-height: 1.6; color: #6E5D50; }
.feed-go { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .75rem; padding: 0 1.5rem; border: 1px solid #16100C; background: #16100C; color: #F5EEE3; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.feed-go:hover { background: #2A1D15; }
.feed-go-alt { background: transparent; color: #16100C; }
.feed-go-alt:hover { background: #EBE1D2; }
.feed-go:focus-visible { outline: 3px solid #C6A15B; outline-offset: 2px; }
.feed-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.feed-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.5rem; }
.feed-filters[hidden], .feed-empty[hidden], .feed-toast[hidden] { display: none; }
.feed-chip { min-height: 44px; padding: .5rem 1rem; border: 1px solid rgba(198, 161, 91, .6); border-radius: 999px; background: #fff; color: #1E1611; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.feed-chip:hover { background: #EBE1D2; }
.feed-chip[aria-pressed="true"] { background: #16100C; border-color: #16100C; color: #F5EEE3; }

.feed-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; align-items: start; }
.feed-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feed-item { position: relative; margin: 0; overflow: hidden; border-radius: 3px; background: #EBE1D2; }
.feed-item img { display: block; width: 100%; height: auto; }
.feed-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* Texten i bildens nedre hörn, på en mörk toning så att den går att läsa mot alla bilder. */
.feed-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem .85rem .7rem; background: linear-gradient(to top, rgba(22, 16, 12, .82), rgba(22, 16, 12, 0)); color: #F5EEE3; font-size: .9rem; line-height: 1.3; text-align: left; pointer-events: none; }

.feed-actions { position: absolute; top: .5rem; right: .5rem; display: flex; gap: .4rem; }
.feed-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 16, 12, .55); color: #F5EEE3; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.feed-btn:hover { background: rgba(22, 16, 12, .8); }
.feed-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feed-btn[aria-pressed="true"] { color: #FF6B7F; }
.feed-btn[aria-pressed="true"] svg { fill: currentColor; }
.feed-btn:focus-visible, .feed-chip:focus-visible, .feed-open:focus-visible { outline: 3px solid #C6A15B; outline-offset: 2px; }

.feed-empty { max-width: 34rem; margin: 2rem auto; text-align: center; }
.feed-more { height: 1px; }
.feed-follow { margin: 2.5rem 0 0; text-align: center; }
.feed-ig { display: inline-flex; align-items: center; gap: .9rem; color: #16100C; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.feed-ig-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid #C6A15B; border-radius: 50%; color: #8B5A2B; transition: background-color .3s, color .3s; }
.feed-ig-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.feed-ig-dot { fill: currentColor; stroke: none; }
.feed-ig:hover .feed-ig-icon { background: #16100C; border-color: #16100C; color: #E6D3A3; }
.feed-ig:focus-visible { outline: 3px solid #C6A15B; outline-offset: 4px; }

/* Snabbval längst ned på mobil. */
.feed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: .5rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(22, 16, 12, .96); }
.feed-bar .feed-go { flex: 1 1 0; padding: 0 .5rem; border-color: #C6A15B; background: #C6A15B; color: #16100C; letter-spacing: .14em; }
.feed-bar .feed-go-alt { background: transparent; color: #F5EEE3; }
@media (min-width: 1024px) { .feed-bar { display: none; } }

.feed-toast { position: fixed; left: 50%; bottom: 5.5rem; z-index: 60; max-width: calc(100vw - 2rem); transform: translateX(-50%); padding: .7rem 1rem; border-radius: 3px; background: #16100C; color: #F5EEE3; font-size: .9rem; text-align: center; overflow-wrap: anywhere; }

/* Bildvisaren. */
.feed-view { width: 100%; max-width: 100vw; height: 100%; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(14, 10, 7, .97); color: #F5EEE3; }
.feed-view::backdrop { background: rgba(14, 10, 7, .9); }
.feed-view[open] { display: flex; align-items: center; justify-content: center; }
.feed-view-in { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 100%; padding: 3.5rem 3.5rem 1rem; }
.feed-view-in img { display: block; max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.feed-view-cap { margin: .75rem 0 0; max-width: 40rem; font-size: 1rem; text-align: center; }
.feed-view-tools { display: flex; gap: .5rem; margin-top: .75rem; }
.feed-view .feed-btn { background: rgba(245, 238, 227, .14); }
.feed-view .feed-btn:hover { background: rgba(245, 238, 227, .26); }
.feed-view-close { position: absolute; top: .75rem; right: .75rem; }
.feed-view-prev, .feed-view-next { position: absolute; top: 50%; transform: translateY(-50%); }
.feed-view-prev { left: .5rem; }
.feed-view-next { right: .5rem; }
@media (max-width: 639px) { .feed-view-in { padding: 3.5rem .5rem 1rem; } .feed-view-prev, .feed-view-next { top: auto; bottom: 1rem; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .feed-item img { transition: opacity .3s; } }

/* Förhandsvisningen på Sortiment. */
.feed-strip { margin: 0 0 3rem; }
.feed-strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.feed-strip-head h2 { margin: 0; }
.feed-strip-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.feed-strip-list a { position: relative; display: block; overflow: hidden; border-radius: 3px; background: #EBE1D2; }
.feed-strip-list img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.feed-strip-list a:focus-visible { outline: 3px solid #C6A15B; outline-offset: 2px; }
@media (max-width: 767px) {
  .feed-strip-list { display: flex; gap: 10px; padding-bottom: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; }
  .feed-strip-list li { flex: 0 0 42%; scroll-snap-align: start; }
}
