/* Instagram — seção Home (estilos do rodapé ficam em footer-support.css) */

.instagram-section {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.instagram-section .section-heading {
  align-items: flex-end;
  gap: 16px;
}

.instagram-section .section-heading .button {
  flex-shrink: 0;
  white-space: nowrap;
}

.instagram-section .section-heading .button svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.instagram-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #e0f2fe;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 38, 81, 0.08);
}

.instagram-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e0f2fe;
}

.instagram-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #0369a1;
  font-weight: 800;
  background: linear-gradient(145deg, #f0f9ff, #fff7ed);
}

.instagram-placeholder svg {
  width: 36px;
  height: 36px;
}

.instagram-caption {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #294e77;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-empty {
  margin: 8px 0 0;
  font-weight: 700;
  color: #475569;
}

.instagram-empty-card {
  margin-top: 8px;
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f0f9ff, #fff7ed);
  border: 2px solid #e0f2fe;
}

.instagram-empty-card .button svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
}

@media (max-width: 900px) {
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .instagram-section .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .instagram-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
