/* Overrides and page-specific tweaks for passions pages */

/* Ensure project pages account for fixed nav */
.project-page {
  padding-top: 6.5rem;
}

/* Back link styled like the site's secondary buttons but smaller */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.back-link:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Place the nav-brand clearly and ensure contrast on project pages */
.nav {
  background: rgba(10, 10, 15, 0.85);
}

.nav-brand {
  color: var(--accent);
}

/* Small screens: ensure back link full width */
@media (max-width: 768px) {
  .back-link {
    width: 100%;
    justify-content: center;
  }
}

/* Hero image for passions pages */
.hero-image-container {
  margin: 1.5rem 0 2rem;
  display: block;
}

.hero-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: block;
}

.hero-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.hero-image-container {
  margin: 0;
  width: 100%;
  max-width: 460px;
  transform: translateX(-80px);
  opacity: 0.65;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.hero-image-container.visible {
  transform: translateX(0);
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transform: scale(1.02);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  display: block;
}

.hero-overview .project-section {
  margin: 0;
}

@media (max-width: 1024px) {
  .hero-overview {
    grid-template-columns: 1fr;
  }
}

/* Instagram gallery */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.insta-grid a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.follow-ig {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.follow-ig:hover { opacity: 0.95; transform: translateY(-2px); }

/* Instagram embed styling */
.instagram-embed {
  width: 100%;
  max-width: 900px;
  margin: 1.5rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.instagram-embed iframe {
  width: 100%;
  min-height: 640px;
  border: none;
}
