/* ==========================================================================
   Instagram Feed Infinite Marquee Section (@krishnam.poshak)
   ========================================================================== */

.instagram-feed-section {
  width: 100%;
  padding: 60px 0 80px;
  background-color: #fdfbf9;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header Area */
.insta-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.insta-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 14px;
}

.insta-badge-link:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.45);
}

.insta-badge-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.insta-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 32px;
  color: #1a1a1a;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.insta-subtitle {
  font-size: 14px;
  color: #777777;
  letter-spacing: 0.5px;
}

/* Infinite Marquee Track Wrapper */
.insta-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  user-select: none;
  padding: 10px 0;
}

/* Gradient Blur on Edges */
.insta-marquee-container::before,
.insta-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.insta-marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, #fdfbf9 0%, rgba(253, 251, 249, 0) 100%);
}

.insta-marquee-container::after {
  right: 0;
  background: linear-gradient(270deg, #fdfbf9 0%, rgba(253, 251, 249, 0) 100%);
}

.insta-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.insta-marquee-container:hover .insta-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Individual Post Card */
.insta-post-card {
  position: relative;
  width: 250px;
  height: 310px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  text-decoration: none;
  background-color: #eaeaea;
}

.insta-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-post-card:hover .insta-post-img {
  transform: scale(1.08);
}

/* Hover Overlay with Instagram Icon & Handle */
.insta-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
  color: #ffffff;
  text-align: center;
  z-index: 2;
}

.insta-post-card:hover .insta-post-overlay {
  opacity: 1;
}

.insta-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}

.insta-post-card:hover .insta-icon-circle {
  transform: translateY(0);
}

.insta-icon-circle svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.insta-post-handle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.insta-post-card:hover .insta-post-handle {
  transform: translateY(0);
}

.insta-post-cta {
  font-size: 11px;
  color: #ffb4cc;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .instagram-feed-section {
    padding: 45px 0 60px;
  }
  .insta-title {
    font-size: 26px;
  }
  .insta-post-card {
    width: 200px;
    height: 260px;
  }
  .insta-marquee-track {
    gap: 12px;
  }
}
