.instagram-section {
  background: #edf4f0;
  color: #12343b;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem);
}

.instagram-section > * {
  max-width: 1180px;
  margin-inline: auto;
}

.instagram-heading {
  display: grid;
  gap: 1.1rem;
  max-width: 690px;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.instagram-heading .eyebrow {
  align-items: center;
  color: #176b62;
  display: flex;
  font-size: .72rem;
  font-weight: 700;
  gap: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.instagram-heading .eyebrow span {
  background: currentColor;
  height: 1px;
  width: 28px;
}

.instagram-heading h2 {
  color: #12343b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .94;
}

.instagram-heading h2 em {
  color: #2e8980;
  font-weight: 400;
}

.instagram-heading > p:not(.eyebrow) {
  color: #4a615e;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 570px;
}

.instagram-profile-link {
  align-items: center;
  color: #12343b;
  display: inline-flex;
  font-size: .93rem;
  font-weight: 700;
  gap: .55rem;
  text-decoration: none;
  width: fit-content;
}

.instagram-profile-link::after {
  background: #12343b;
  content: "";
  display: block;
  height: 1px;
  transform-origin: left;
  transition: transform .2s ease;
  width: 100%;
}

.instagram-profile-link:hover::after,
.instagram-profile-link:focus-visible::after {
  transform: scaleX(.45);
}

.instagram-profile-link:focus-visible {
  border-radius: .25rem;
  outline: 3px solid #d5a995;
  outline-offset: 5px;
}

.instagram-feed-grid {
  display: grid;
  gap: clamp(.8rem, 2vw, 1.4rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instagram-feed-dual {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
}

.instagram-account {
  border-top: 1px solid rgba(18, 52, 59, .16);
  padding-top: 1rem;
}

.instagram-account-heading {
  align-items: baseline;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.instagram-account-heading p {
  color: #12343b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: -.03em;
  margin: 0;
}

.instagram-account-heading a,
.instagram-account-heading span {
  color: #176b62;
  font-size: .72rem;
  font-weight: 700;
}

.instagram-account-heading a {
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.instagram-feed-card {
  aspect-ratio: 1;
  background: #dcebe5;
  border: 1px solid rgba(18, 52, 59, .09);
  border-radius: 1.35rem;
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
}

.instagram-embed-card {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

.instagram-embed-card::before {
  display: none;
}

.instagram-embed-card blockquote.instagram-media {
  background: #fff !important;
  border: 0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 12px 32px rgba(18, 52, 59, .08) !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

.instagram-preview-card {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 88% 8%, rgba(203, 130, 115, .2), transparent 34%),
    linear-gradient(145deg, #e5efea, #d3e6df);
  display: grid;
  gap: .9rem;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 1rem;
  transition: box-shadow .2s ease, transform .2s ease;
}

.instagram-preview-card::before {
  display: none;
}

.instagram-preview-card:hover {
  box-shadow: 0 18px 36px rgba(18, 52, 59, .1);
  transform: translateY(-3px);
}

.instagram-preview-art {
  align-content: space-between;
  background:
    radial-gradient(circle at 75% 22%, rgba(255, 255, 255, .72), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .56), rgba(217, 235, 227, .58));
  border: 1px solid rgba(18, 52, 59, .1);
  border-radius: .9rem;
  color: #12343b;
  display: grid;
  min-height: 0;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.instagram-preview-art::after {
  border: 1px solid rgba(23, 107, 98, .17);
  border-radius: 50%;
  content: "";
  height: 11rem;
  position: absolute;
  right: -3rem;
  top: -4.5rem;
  width: 11rem;
}

.instagram-preview-pill {
  color: #176b62;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 1;
}

.instagram-preview-symbol {
  align-items: center;
  align-self: center;
  border: 1px solid rgba(18, 52, 59, .28);
  border-radius: 50%;
  color: #176b62;
  display: flex;
  font-size: 2.15rem;
  height: 4rem;
  justify-content: center;
  justify-self: center;
  line-height: 1;
  width: 4rem;
  z-index: 1;
}

.instagram-preview-author {
  color: #12343b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  letter-spacing: -.025em;
  z-index: 1;
}

.instagram-preview-actions {
  display: none;
}

.instagram-load-button {
  background: #12343b;
  border: 1px solid #12343b;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  padding: .62rem .9rem;
  transition: background .2s ease, color .2s ease;
}

.instagram-load-button:hover,
.instagram-load-button:focus-visible {
  background: transparent;
  color: #12343b;
}

.instagram-load-button:focus-visible,
.instagram-open-link:focus-visible {
  outline: 3px solid #d5a995;
  outline-offset: 3px;
}

.instagram-open-link {
  color: #176b62;
  font-size: .75rem;
  font-weight: 700;
  text-underline-offset: .2rem;
}

.instagram-preview-card[aria-busy="true"] {
  cursor: progress;
  opacity: .75;
}

.instagram-preview-card.is-embedded {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: block;
  overflow: visible;
  padding: 0;
}

.instagram-preview-card.is-embedded::before {
  display: none;
}

.instagram-preview-card.is-embedded blockquote.instagram-media {
  background: #fff !important;
  border: 0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 12px 32px rgba(18, 52, 59, .08) !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

.instagram-embed-fallback {
  background: #fff;
  border-radius: 1rem;
  color: #176b62;
  display: block;
  padding: 1.25rem;
  text-align: center;
}

.instagram-feed-card::before {
  background: linear-gradient(115deg, transparent 26%, rgba(255, 255, 255, .5) 45%, transparent 63%);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-110%);
  animation: instagram-feed-shimmer 1.8s ease-in-out infinite;
}

.instagram-skeleton {
  background: rgba(18, 52, 59, .11);
  border-radius: 999px;
  height: .58rem;
  position: relative;
  width: 42%;
}

.instagram-skeleton + .instagram-skeleton {
  bottom: 1.25rem;
  position: absolute;
  width: 65%;
}

.instagram-pending {
  color: #4a615e;
  font-size: .9rem;
  grid-column: 1 / -1;
  margin-top: .2rem;
}

@keyframes instagram-feed-shimmer {
  to { transform: translateX(110%); }
}

@media (max-width: 700px) {
  .instagram-section { padding-inline: 1.25rem; }
  .instagram-feed-grid { grid-template-columns: 1fr; }
  .instagram-feed-card { aspect-ratio: 1.28; }
  .instagram-feed-dual { gap: 2.75rem; grid-template-columns: 1fr; }
  .instagram-account .instagram-feed-grid { grid-template-columns: 1fr; }
  .instagram-account .instagram-feed-card { aspect-ratio: auto; padding: 0; }
  .instagram-account .instagram-preview-card { aspect-ratio: 1.25; padding: .8rem; }
  .instagram-account .instagram-preview-card.is-embedded { aspect-ratio: auto; padding: 0; }
  .instagram-preview-art { padding: .85rem; }
  .instagram-preview-actions { gap: .45rem; }
  .instagram-load-button { font-size: .72rem; padding: .58rem .72rem; }
  .instagram-open-link { font-size: .7rem; }
  .instagram-account-heading { margin-bottom: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-feed-card::before { animation: none; }
  .instagram-profile-link::after { transition: none; }
}
