.tile--instagram {
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  color: var(--text);
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ig-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.ig-heading { min-width: 0; }
.ig-heading h2 { margin: 0; color: var(--text); font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.ig-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; word-break: keep-all; }
.ig-brand {
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 11px; background: radial-gradient(circle at 30% 105%, #ffd676 5%, #f7a53b 20%, #ed405c 48%, #c42bba 70%, #7046d6 95%);
}
.ig-brand img { width: 27px; height: 27px; filter: brightness(0) invert(1); }
.ig-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-height: 0; flex: 1; }
.ig-post { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; border-radius: 12px; background: var(--card); transition: transform .18s ease, box-shadow .18s ease; }
.ig-post img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ig-post:hover { transform: translateY(-3px); box-shadow: 0 6px 16px var(--shadow); }
.ig-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; font-size: 12px; line-height: 20px; }
.ig-handle { color: var(--muted); text-decoration: none; }
.ig-more { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; text-decoration: none; }
.ig-more svg { width: 16px; height: 16px; }
.ig-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.tile--instagram a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.ig-post:focus-visible { outline-offset: -3px; }
@media (max-width: 640px) {
  .tile--instagram { height: auto; padding: 20px; gap: 16px; }
  .ig-heading h2 { font-size: 20px; }
  .ig-heading p { max-width: 230px; font-size: 12px; }
  .ig-posts { display: flex; flex: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; padding-bottom: 6px; }
  .ig-post { flex: 0 0 calc((100% - 20px) / 2.25); aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .ig-post img { height: 100%; }
}
@media (max-width: 360px) {
  .tile--instagram { padding: 18px; gap: 14px; }
  .ig-heading h2 { font-size: 18px; }
  .ig-heading p { font-size: 11px; }
  .ig-brand { width: 34px; height: 34px; border-radius: 10px; }
  .ig-brand img { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ig-post { transition: none; } .ig-post:hover { transform: none; } }
