/* Instagram grid section */

.ig-profile {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 28px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.18);
}
@media (max-width: 760px) {
  .ig-profile { grid-template-columns: 72px 1fr; }
  .ig-profile__cta { grid-column: 1 / -1; }
}

.ig-profile__avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(from 210deg, #F0CB1F, #FF8A3D, #FF3D6E, #B544FF, #3D7BFF, #F0CB1F);
  padding: 4px;
  display: grid; place-items: center;
}
.ig-profile__avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #0A0A0A;
  padding: 18px;
  object-fit: contain;
  display: block;
}
@media (max-width: 760px) { .ig-profile__avatar { width: 72px; height: 72px; } .ig-profile__avatar img { padding: 12px; } }

.ig-profile__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ig-profile__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ig-profile__handle {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--dm-ink);
}
.ig-profile__verified {
  width: 18px; height: 18px;
  background: #3D7BFF; color: #FFF;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.ig-profile__follow {
  background: #0095F6; color: #FFF;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background .15s;
}
.ig-profile__follow:hover { background: #0079CC; }

.ig-profile__stats {
  display: flex; gap: 20px;
  font-size: 14px;
  color: var(--dm-graphite);
  flex-wrap: wrap;
}
.ig-profile__stats strong { color: var(--dm-ink); font-weight: 700; margin-right: 4px; }

.ig-profile__bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--dm-ink);
}
.ig-profile__bio strong { font-weight: 600; }
.ig-profile__bio a { color: #00376B; font-weight: 500; }

.ig-profile__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dm-black); color: #FFF;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}
.ig-profile__cta:hover { background: #2A2A2A; }

/* Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 18px;
  overflow: hidden;
  max-width: 880px;
}
.ig-grid--3 { max-width: 760px; }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; } }

.ig-post {
  position: relative;
  display: block;
  background: #E4E4E4;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  isolation: isolate;
}

.ig-more { margin-top: 28px; display: flex; justify-content: center; }
.ig-more__link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--dm-ink);
  padding: 14px 22px;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s;
}
.ig-more__link:hover { background: var(--dm-ink); color: #FFF; border-color: var(--dm-ink); }
.ig-more__arrow {
  display: inline-block;
  font-size: 18px;
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.ig-more__link:hover .ig-more__arrow { transform: translateX(6px); }

/* Tighter section */
.reels.section-pad { padding-block: clamp(48px, 5vw, 80px); }
.reels__head { margin-bottom: 28px; }
.ig-post image-slot {
  width: 100%; height: 100%;
  --is-bg: linear-gradient(135deg, #1A1A1A 0%, #3A3A3A 60%, #F0CB1F 130%);
}
.ig-post__img {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.ig-post:hover .ig-post__img { transform: scale(1.04); }
.ig-post:nth-child(2) image-slot { --is-bg: linear-gradient(135deg, #1F2937 0%, #0E1117 50%, #FF6B3D 130%); }
.ig-post:nth-child(3) image-slot { --is-bg: linear-gradient(135deg, #0A0A0A 0%, #2A2A2A 50%, #0EAE7B 130%); }
.ig-post:nth-child(4) image-slot { --is-bg: linear-gradient(135deg, #1A1A1A 0%, #3D7BFF 130%); }
.ig-post:nth-child(5) image-slot { --is-bg: linear-gradient(135deg, #0E1117 0%, #B544FF 130%); }
.ig-post:nth-child(6) image-slot { --is-bg: linear-gradient(135deg, #1A1A1A 0%, #F0CB1F 130%); }

.ig-post__badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.55);
  color: #FFF;
  font-size: 10px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ig-post__hover {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #FFF;
  pointer-events: none;
}
.ig-post:hover .ig-post__hover,
.ig-post:focus-visible .ig-post__hover { opacity: 1; }
.ig-post__caption {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}
.ig-post__meta {
  font-size: 11px;
  opacity: .8;
  letter-spacing: .04em;
}

/* Override reels__grid since structure changed */
.reels .reels__grid { display: none; }
