/* ═══════════════════════════════════════════════════════
   BRICK: instagram-feed
   Estrutura pura — cores e decoração ficam no skin da página.
═══════════════════════════════════════════════════════ */

.ig-section {
  padding: 80px 0 100px;
}

.ig-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.ig-header {
  text-align: center;
  margin-bottom: 56px;
}

.ig-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.ig-subtitle {
  font-size: 1rem;
  opacity: .60;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.ig-line {
  width: 48px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
}

/* ── Grid ── */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  justify-items: center;
}

/* ── Post card ── */
.ig-post {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.ig-post:hover {
  transform: translateY(-4px);
}

.ig-embed-wrap {
  position: relative;
  width: 100%;
  /* altura fixa para o iframe do Instagram — posts quadrados + caption */
  height: 570px;
  overflow: hidden;
  border-radius: 16px;
}

.ig-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Responsivo ── */
@media (max-width: 720px) {
  .ig-grid {
    grid-template-columns: 1fr;
  }

  .ig-embed-wrap {
    height: 540px;
  }
}

/* ── Paginação ── */
.ig-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.ig-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.ig-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  font-size: 14px;
  opacity: .45;
  pointer-events: none;
}

.ig-page-nav {
  font-size: 18px;
  font-weight: 400;
}
