.instagram-frame.instagram-six-grid {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.instagram-frame.instagram-six-grid::before {
  display: none;
}

/* Mirrors the understated “All PPL News” link treatment. */
.instagram-feed-heading {
  position: relative;
  z-index: 2;
  width: 230px;
  min-width: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 30px auto;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.instagram-feed-heading svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  stroke: currentColor;
}

.instagram-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.instagram-post {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(209, 164, 6, 0.28);
  background: #111;
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 420ms ease;
}

.instagram-post-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.68));
  color: var(--gold);
  opacity: 0.84;
  transition: background 300ms ease, opacity 300ms ease;
}

.instagram-post-overlay span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.instagram-post:hover img {
  transform: scale(1.055);
  filter: contrast(1.04) saturate(1.05);
}

.instagram-post:hover .instagram-post-overlay {
  background: linear-gradient(180deg, rgba(209, 164, 6, 0.08), rgba(0, 0, 0, 0.74));
  opacity: 1;
}

.instagram-post.is-loading {
  border-color: rgba(209, 164, 6, 0.16);
  background: linear-gradient(110deg, #0c0c0c 25%, #171303 46%, #0c0c0c 68%);
  background-size: 220% 100%;
  animation: instagram-loading 1.4s linear infinite;
}

.instagram-feed-fallback {
  display: grid;
  place-items: center;
}

@keyframes instagram-loading {
  to { background-position-x: -220%; }
}

@media (max-width: 760px) {
  .instagram-feed-heading {
    width: 190px;
    min-width: 190px;
    margin-bottom: 22px;
    font-size: 10px;
  }

  .instagram-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-post img,
  .instagram-post-overlay {
    transition: none;
  }

  .instagram-post.is-loading {
    animation: none;
  }
}
