/* Before and After Gallery - Modern Instagram Section */

.instagram-gallery-section {
  padding: 80px 20px;
  /* Removed light gray gradient background to prevent a gray "box" around the gallery */
  background: transparent;
  min-height: 100vh;
}

.gallery-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.gallery-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.2;
}

.gallery-header p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

/* Instagram Grid */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.instagram-post-wrapper {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.instagram-post-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.instagram-post-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.1) 0%, rgba(0, 136, 204, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.instagram-post-wrapper:hover::before {
  opacity: 1;
}

/* Instagram Badge */
.instagram-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instagram-badge svg {
  width: 16px;
  height: 16px;
}

.instagram-badge span {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
}

/* CTA Button Section */
.gallery-cta {
  text-align: center;
  margin-top: 60px;
}

.instagram-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.3);
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.instagram-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(225, 48, 108, 0.4);
  color: #ffffff;
}

.instagram-cta-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.instagram-cta-btn:hover svg {
  transform: scale(1.1) rotate(5deg);
}

/* Ensure CTA text stays white in all states (visited/active/focus) */
.instagram-cta-btn,
.instagram-cta-btn:visited,
.instagram-cta-btn:active,
.instagram-cta-btn:focus {
  color: #ffffff !important;
  text-decoration: none;
}

.instagram-cta-btn:focus {
  /* keep a subtle focus ring for accessibility while keeping text white */
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 3px;
}

.cta-subtitle {
  margin-top: 16px;
  font-size: 15px;
  color: #666;
}

/* Info Box */
.gallery-info-box {
  max-width: 800px;
  margin: 60px auto 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #00aaff;
}

.gallery-info-box h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-info-box h3 svg {
  color: #00aaff;
}

.gallery-info-box p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.gallery-info-box ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.gallery-info-box ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: #555;
}

.gallery-info-box ul li svg {
  flex-shrink: 0;
  color: #00aaff;
  margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .gallery-header h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .instagram-gallery-section {
    padding: 60px 16px;
  }
  
  .instagram-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-header h2 {
    font-size: 32px;
  }
  
  .gallery-header p {
    font-size: 16px;
  }
  
  .instagram-cta-btn {
    padding: 16px 32px;
    font-size: 15px;
  }
  
  .gallery-info-box {
    padding: 30px 24px;
  }
}

/* Instagram Embed Responsive */
/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.instagram-post-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

.instagram-post-wrapper:nth-child(1) { animation-delay: 0.1s; }
.instagram-post-wrapper:nth-child(2) { animation-delay: 0.2s; }
.instagram-post-wrapper:nth-child(3) { animation-delay: 0.3s; }
.instagram-post-wrapper:nth-child(4) { animation-delay: 0.4s; }
.instagram-post-wrapper:nth-child(5) { animation-delay: 0.5s; }
.instagram-post-wrapper:nth-child(6) { animation-delay: 0.6s; }
