/* =========================================================
   Prowave — live Instagram reels strip
   The players (and their thumbnails) are rendered by Instagram's
   official embed script; this file only lays them out.
   ========================================================= */

.instagram {
  border-top: 1px solid var(--line);
}

.instagram__embeds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 40px);
}

.instagram__embeds > .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  background: #171123;
  box-shadow: 0 18px 50px rgba(12, 8, 20, 0.18);
}

/* Instagram swaps the blockquote for an iframe once embed.js runs. */
.instagram__embeds iframe {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 18px;
}

/* Visible until the script replaces the blockquote (or if it is blocked). */
.instagram__embeds .instagram-media > a {
  display: block;
  padding: 28px 18px;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(160deg, #171123, #3a2456 60%, #5b3b7d);
}

.instagram__note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .instagram__embeds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .instagram__embeds {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    margin-inline: auto;
  }
}
