/* Trust block — Instagram embeds (homepage redesign).
   Real Instagram posts via embed.js. See design_handoff_homepage/README.md §5. */

.ig {
  background: var(--ig-bg, #f2efe8);
  color: #1f1f1f;
  padding: 80px 0;
}

.ig__inner {
  padding: 0 24px;
}

/* Header row */
.ig__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.ig__header-text {
  max-width: 620px;
}

.ig__eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b6357;
}

.ig__heading {
  margin: 0 0 18px;
  font-family: "Urbanist", sans-serif;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.ig__accent {
  color: #9c614a;
}

.ig__lead {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: #6b6357;
}

.ig__header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ig__followers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.ig__followers-label {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6357;
}

.ig__followers-count {
  font-family: "Urbanist", sans-serif;
  font-size: 28px;
  font-weight: 400;
}

.ig__follow-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #1f1f1f;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px #1f1f1f;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ig__follow-btn:hover {
  background: #1f1f1f;
  color: #f2efe8;
}

/* Embed grid — auto-fits as many columns of >=320px as the width allows */
.ig__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  align-items: start;
  justify-items: center;
}

.ig__grid .instagram-media {
  margin: 0 auto !important;
}

/* Mobile — only show the first embed; hide the rest. */
@media screen and (max-width: 767px) {
  .ig__grid > *:nth-child(n + 2) {
    display: none !important;
  }
}

.ig__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 360px;
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  color: #6b6357;
  font-size: 14px;
}

/* Desktop */
@media screen and (min-width: 990px) {
  .ig {
    padding: 120px 0;
  }

  .ig__inner {
    padding: 0 96px;
  }

  .ig__header {
    margin-bottom: 56px;
  }
}
