/* Homepage Instagram highlights carousel */
.instagram-showcase-section {
  position: relative;
  overflow: hidden;
  padding-top: 54px;
  background:
    radial-gradient(circle at 7% 35%, rgba(225, 48, 108, .08), transparent 24rem),
    radial-gradient(circle at 96% 12%, rgba(131, 58, 180, .08), transparent 25rem),
    linear-gradient(180deg, #fdf9f2 0%, #fff 100%);
}

.instagram-showcase-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 89, 26, .22), transparent);
}

.instagram-showcase-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.instagram-showcase-head .section-title {
  margin-bottom: 0;
}

.instagram-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid rgba(193, 38, 157, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px rgba(13, 27, 42, .08);
  color: #24354b;
  font-size: 12px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.instagram-profile-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 35px rgba(13, 27, 42, .12);
}

.instagram-mark {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 110%, #ffd36b, #f34b4b 42%, #c1269d 68%, #325ce8);
  color: #fff;
}

.instagram-mark svg {
  width: 17px;
  height: 17px;
}

.instagram-carousel {
  padding: 14px;
  border: 1px solid rgba(13, 27, 42, .085);
  border-radius: 30px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 58px rgba(13, 27, 42, .1);
  backdrop-filter: blur(14px);
}

.instagram-carousel .carousel-viewport {
  padding: 0 1px 20px;
  cursor: grab;
  touch-action: pan-y;
}

.instagram-carousel .carousel-viewport:active {
  cursor: grabbing;
}

.instagram-carousel .carousel-track {
  gap: 16px;
}

.instagram-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 42, .08);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(13, 27, 42, .09);
  color: var(--ink, #1a2332);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.instagram-post-card:hover {
  transform: translateY(-7px);
  border-color: rgba(193, 38, 157, .2);
  box-shadow: 0 25px 52px rgba(13, 27, 42, .15);
}

.instagram-post-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  background: #111827;
}

.instagram-post-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24px;
  background:
    linear-gradient(rgba(10, 14, 23, .26), rgba(10, 14, 23, .32)),
    var(--post-image) center / cover no-repeat;
  filter: blur(17px) saturate(1.1);
  transform: scale(1.12);
}

.instagram-post-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform .45s ease;
}

/* Landscape reel covers: fill the square card instead of leaving letterbox bars.
   Poster-led posts retain `contain` so their campaign text stays fully visible. */
.instagram-carousel .instagram-post-card:nth-child(2) .instagram-post-media > img,
.instagram-carousel .instagram-post-card:nth-child(4) .instagram-post-media > img,
.instagram-carousel .instagram-post-card:nth-child(6) .instagram-post-media > img,
.instagram-carousel .instagram-post-card:nth-child(8) .instagram-post-media > img {
  object-fit: cover;
  object-position: center;
}

.instagram-post-card:hover .instagram-post-media > img {
  transform: scale(1.035);
}

.instagram-post-badge,
.instagram-post-kind,
.instagram-post-likes {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  box-shadow: 0 9px 22px rgba(8, 13, 22, .2);
  backdrop-filter: blur(12px);
}

.instagram-post-badge {
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(225, 48, 108, .95), rgba(193, 38, 157, .94));
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.instagram-post-kind {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  justify-content: center;
  border-radius: 11px;
  background: rgba(11, 23, 40, .72);
}

.instagram-post-kind svg {
  width: 17px;
  height: 17px;
}

.instagram-post-likes {
  left: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(11, 23, 40, .77);
  font-size: 11px;
  font-weight: 900;
}

.instagram-post-likes svg {
  width: 15px;
  height: 15px;
  fill: #ff648e;
}

.instagram-post-body {
  display: flex;
  min-height: 142px;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.instagram-post-body > small {
  color: #9b3d72;
  font: 700 9px/1.4 var(--mono, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.instagram-post-body h3 {
  margin: 8px 0 7px;
  color: var(--navy, #0d1b2a);
  font: 900 21px/1.12 var(--display, Georgia, serif);
  letter-spacing: -.02em;
}

.instagram-post-body p {
  margin: 0;
  color: var(--muted, #667085);
  font-size: 12px;
  line-height: 1.55;
}

.instagram-post-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  color: #3e4b60;
  font-size: 11px;
  font-weight: 800;
}

.instagram-post-profile .instagram-mark {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  border-radius: 7px;
}

.instagram-post-profile .instagram-mark svg {
  width: 14px;
  height: 14px;
}

.instagram-post-profile > b {
  margin-left: auto;
  color: var(--orange, #e8591a);
  font-size: 17px;
}

.instagram-carousel .carousel-controls {
  margin: 0;
}

.instagram-carousel .carousel-btn {
  border-color: rgba(193, 38, 157, .18);
  color: #c1269d;
}

.instagram-carousel .carousel-dots button.active {
  background: linear-gradient(135deg, #e1306c, #833ab4);
}

.instagram-showcase-foot {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.instagram-open-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 21px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e1306c, #c1269d 52%, #833ab4);
  box-shadow: 0 14px 30px rgba(193, 38, 157, .24);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}

.instagram-open-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(193, 38, 157, .3);
}

@media (max-width: 780px) {
  .instagram-showcase-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .instagram-profile-pill {
    align-self: stretch;
    justify-content: center;
  }

  .instagram-carousel {
    padding: 10px;
    border-radius: 24px;
  }

  .instagram-post-body {
    min-height: 132px;
  }
}

@media (max-width: 480px) {
  .instagram-showcase-section {
    padding-top: 38px;
  }

  .instagram-post-card {
    border-radius: 20px;
  }

  .instagram-post-body h3 {
    font-size: 22px;
  }

  .instagram-open-button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-post-card,
  .instagram-post-media > img,
  .instagram-profile-pill,
  .instagram-open-button {
    transition: none;
  }
}
