/* =========================================
   INSTAGRAM EMBEDS — Shared Styles
   ========================================= */

/* Section wrapper */
.instagram-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

/* Section with multiple posts in a grid */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
}

/* Single centered embed */
.instagram-single {
  display: flex;
  justify-content: center;
}

/* Force embeds to fill their column */
.instagram-grid .instagram-embed-wrap,
.instagram-single .instagram-embed-wrap {
  width: 100%;
  max-width: 480px;
}

/* Override Instagram's inline max-width so it fills the column */
.instagram-embed-wrap .instagram-media {
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Label above an embed */
.instagram-embed-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  text-align: center;
}

/* "Follow us" link */
.instagram-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-mid);
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  padding: 0.55rem 1.2rem;
  margin-top: 1.5rem;
  transition: all var(--transition);
}
.instagram-follow:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(201,149,106,0.06);
}

/* Reels horizontal scroll row */
.instagram-reels-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.instagram-reels-row::-webkit-scrollbar { display: none; }
.instagram-reels-row .instagram-embed-wrap {
  flex: 0 0 300px;
  scroll-snap-align: start;
  max-width: 300px;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.instagram-reels-row .instagram-embed-wrap:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.instagram-reels-row .instagram-media {
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Crop Instagram chrome — shift iframe up to hide header, container clips footer */
.instagram-reels-row .instagram-embed-wrap iframe {
  position: relative;
  top: -56px;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: calc(100% + 56px) !important;
}

@media (min-width: 1100px) {
  .instagram-reels-row {
    justify-content: center;
    overflow-x: visible;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
  .instagram-reels-row .instagram-embed-wrap {
    flex: 0 0 250px;
    max-width: 250px;
    height: 355px;
  }
}
