/* ============================================================
   CHILIMOSA — Instagram carousel
   Populated from assets/instagram/feed.json by instagram.js.

   Deliberately a separate file, not an append to brand.css:
   Caddy serves CSS with max-age=2592000 (30 days) and the site
   references brand.css with no version string, so returning
   visitors would keep a stale copy for up to a month and see
   this section render completely unstyled. A new URL is fetched
   fresh, so the CSS and the JS always arrive together.
   ============================================================ */

.ig-feed { max-width: 1200px; margin: 0 auto; padding: 76px 5vw 84px; }
.ig-head { text-align: center; margin-bottom: 34px; }
.ig-head .eyebrow { color: var(--c-orange); }
.ig-head h2 { font-size: clamp(28px, 3vw, 40px); color: var(--c-ink); margin: 10px 0 0; }
.ig-sub { font-family: var(--font-body); font-size: 16px; color: var(--c-ink-muted); margin: 12px 0 0; }
.ig-handle { display: inline-block; margin-top: 10px; font-family: var(--font-ui); font-weight: 800; font-size: 15px; color: var(--c-green); text-decoration: none; }
.ig-handle:hover { text-decoration: underline; }
.ig-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 250px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; }
.ig-card { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: var(--c-beige); box-shadow: 0 10px 30px rgba(52,42,42,0.12); display: block; }
.ig-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.ig-card:hover img { transform: scale(1.05); }
.ig-card:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; }
.ig-card-icon { position: absolute; top: 12px; right: 12px; color: #fff; opacity: 0.92; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55)); pointer-events: none; }

@media (max-width: 900px) {
  .ig-feed { padding: 56px 5vw 64px; }
  .ig-track { grid-auto-columns: 72vw; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-card img { transition: none; }
  .ig-card:hover img { transform: none; }
}
