/* A quiet, reel-first snapshot. All selectors are scoped to this section. */
.instagram-section {
  background: var(--cream);
  color: var(--green);
  padding: var(--band) var(--gutter);
  overflow: hidden;
}
.instagram-heading {display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 34px;}
.instagram-kicker {display: flex; align-items: center; gap: 8px; font: 500 12px/1.4 var(--sans); letter-spacing: 1.6px; margin-bottom: 12px;}
.instagram-kicker .icon {width: 17px; height: 17px;}
.instagram-section .instagram-heading h2 {font-size: clamp(40px, 4.2vw, 64px); line-height: 1; margin: 0; padding-bottom: 4px;}
.instagram-heading h2 em {font-weight: 500;}
.instagram-profile {display: grid; grid-template-columns: 58px auto; align-items: center; gap: 10px 14px; flex-shrink: 0;}
.instagram-avatar {grid-row: span 2; width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: linear-gradient(35deg, #ffca63, #e85585 52%, #8862bb);}
.instagram-avatar img {display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--cream); object-fit: cover;}
.instagram-handle {font: 500 18px/1.2 var(--sans); min-height: 24px; display: inline-flex; gap: 10px; align-items: center;}
.instagram-handle .icon {width: 16px; height: 16px;}
.instagram-handle-name {display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;}
.instagram-verified {display: block; width: 18px; height: 18px; flex: 0 0 18px; color: #0095f6;}
.instagram-handle:hover {text-decoration: underline; text-underline-offset: 4px;}
.instagram-stats {display: flex; gap: 18px; font: 500 13px/1.3 var(--sans); color: var(--muted);}
.instagram-stats strong {color: var(--green); font-weight: 600;}
.instagram-carousel {position: relative;}
.instagram-track {
  --reel-gap: 18px;
  display: flex; gap: var(--reel-gap); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  border-radius: 12px; padding: 3px 0 10px; touch-action: pan-x pan-y;
}
.instagram-track::-webkit-scrollbar {display: none;}
.instagram-reel {position: relative; flex: 0 0 calc((100% - 3 * var(--reel-gap)) / 4); min-width: 0; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #143d28; scroll-snap-align: start; isolation: isolate;}
.instagram-reel-link {display: block; width: 100%; height: 100%; border-radius: inherit;}
.instagram-reel video {display: block; width: 100%; height: 100%; object-fit: cover;}
.instagram-reel:after {content: ''; position: absolute; pointer-events: none; inset: 60% 0 0; background: linear-gradient(transparent, #071f1645); z-index: 1;}
.instagram-reel-mark {position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 30px; height: 30px; color: white; filter: drop-shadow(0 1px 3px #0008); pointer-events: none;}
.instagram-reel-mark .icon {width: 24px; height: 24px;}
.instagram-sound {position: absolute; bottom: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff80; color: white; background: #123c2acc; cursor: pointer; transition: background .2s, color .2s;}
.instagram-sound .icon {width: 20px; height: 20px;}
.instagram-sound[hidden] {display: none;}
.instagram-sound:hover,.instagram-sound[aria-pressed=true] {color: var(--green); background: var(--lime);}
.instagram-reel.needs-play .instagram-sound {background: var(--lime); color: var(--green);}
.instagram-reel.has-media-error .instagram-sound {display: none;}
.instagram-reel-link:focus-visible {outline: 3px solid var(--lime); outline-offset: -5px;}
.instagram-section button:focus-visible,.instagram-section a:focus-visible {outline: 3px solid var(--green); outline-offset: 3px;}
.instagram-reel .instagram-reel-link:focus-visible {outline-color: var(--lime); outline-offset: -5px;}
.instagram-reel .instagram-sound:focus-visible {outline-color: white;}
.instagram-progress {display: flex; gap: 6px; align-items: center; margin-top: 14px; max-width: 250px;}
.instagram-progress button {display: flex; align-items: center; flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;}
.instagram-progress-track {display: block; width: 100%; height: 3px; border-radius: 5px; overflow: hidden; background: #034c2926;}
.instagram-progress-fill {display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left;}
.instagram-progress button[aria-current=true] .instagram-progress-track {background: #034c2944;}
.instagram-bottom {display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 4px;}
.instagram-topics {display: flex; gap: 8px; flex-wrap: wrap;}
.instagram-topics a {display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 30px; font-size: 12px; line-height: 1.3;}
.instagram-topics a:hover {background: var(--lime);}
.instagram-follow {display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 20px; border-radius: 6px; background: var(--green); color: var(--lime); font-size: 14px; white-space: nowrap;}
.instagram-follow:hover {background: var(--dark);}
.instagram-follow .icon {width: 18px; height: 18px;}
.instagram-snapshot-note {margin-top: 20px; font: 500 11px/1.5 var(--sans); color: var(--muted);}
.instagram-fallback {padding: 20px 0;}
.instagram-fallback a {text-decoration: underline;}
.instagram-sr-only {position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;}
@media (max-width: 1050px) {
  .instagram-reel {flex-basis: calc((100% - 2 * var(--reel-gap)) / 3);}
  .instagram-heading {gap: 20px;}
  .instagram-profile {grid-template-columns: 48px auto; gap: 8px 10px;}
  .instagram-avatar {width: 48px; height: 48px;}
  .instagram-handle {font-size: 16px;}
}
@media (max-width: 700px) {
  .instagram-section {padding: var(--band) var(--gutter);}
  .instagram-heading {display: block; margin-bottom: 22px;}
  .instagram-kicker {font-size: 10px; margin-bottom: 13px;}
  .instagram-section .instagram-heading h2 {font-size: clamp(38px, 9.6vw, 56px);}
  .instagram-profile {margin-top: 22px; grid-template-columns: 48px 1fr; max-width: 330px; gap: 0 10px;}
  .instagram-avatar {grid-row: span 2;}
  .instagram-handle {font-size: 16px; min-height: 44px; margin-block: -8px;}
  .instagram-stats {font-size: 12px; gap: 18px;}
  .instagram-track {--reel-gap: 12px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); border-radius: 10px 0 0 10px;}
  .instagram-reel {flex-basis: 86%; border-radius: 10px;}
  .instagram-progress {margin-top: 6px; max-width: none; gap: 7px;}
  .instagram-progress button {height: 44px;}
  .instagram-bottom {align-items: flex-start; flex-direction: column; gap: 16px;}
  .instagram-topics a {min-height: 44px; font-size: 11px; padding-inline: 12px;}
  .instagram-follow {min-height: 48px; width: 100%;}
  .instagram-snapshot-note {font-size: 10px; margin-top: 16px;}
}
@media (prefers-reduced-motion: reduce) {
  .instagram-track {scroll-behavior: auto;}
  .instagram-sound {transition: none;}
}
