/* ====================
   Project Page Styles
   ==================== */

.project-hero {
  text-align: center;
  /* padding: 4rem 2rem; */
}

.project-hero h1 {
  font-size: 3rem;
  padding-top: 4rem;
  color: var(--accent-blue); /* Match Work section */
  text-transform: lowercase;
}

.project-hero-nhl h1 {
  font-size: 3rem;
  text-align: center;
  text-align: center;
  padding-top: 4rem;
  color: var(--accent-blue); /* Match Work section */
}

.project-hero-nhl p {
    text-align: center;
    padding-bottom: 1rem;
}

.subtext {
  color: #aaa;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.project-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.project-content section {
  margin-bottom: 2.5rem;
}

.project-content h2 {
  font-size: 1.6rem;
  color: var(--accent-blue); /* Unified project header color */
  margin-bottom: 0.5rem;
}

.project-content p,
.project-content ul {
  font-size: 1rem;
  color: var(--white);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent-blue);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-blue-light);
}

.project-image {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
}

.caption {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

.back-button {
  display: inline-block;
  margin-top: 3rem;
  font-size: 1rem;
  color: var(--accent-blue);
  text-decoration: none;
  border: 2px solid var(--accent-blue);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: var(--accent-blue);
  color: black;
}

/* ============ Figma Gallery ============ */
.figma-gallery {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.figma-thumb {
  text-align: center;
  max-width: 220px;
}

.figma-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1; /* square thumbnails */
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.figma-thumb img:hover {
  transform: scale(1.05);
}

.thumb-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

/* ============ Lightbox ============ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  /* display: flex; */
  justify-content: center;
  align-items: center;
  padding: 2rem 6rem; /* add side padding for arrows */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
  box-sizing: border-box;
}

.lightbox-image-container {
  max-width: 80vw;
  max-height: 80vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

/* Make caption sticky to bottom inside scroll container */
.lightbox-caption {
  color: #aaa;
  font-size: 1rem;
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  position: sticky;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  user-select: none;
  z-index: 10;
}

/* Scroll hint gradient overlay just above caption */
.lightbox-image-container::after {
  content: '';
  position: sticky;
  bottom: 2.5rem; /* sits just above the caption */
  left: 0;
  width: 100%;
  height: 3rem;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  z-index: 9;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  margin: 0 auto;
}

/* ============ Lightbox Navigation Arrows ============ */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #ccc;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1100;
  user-select: none;
  transition: color 0.3s ease;
}

.lightbox-nav:hover {
  color: var(--accent-green);
}

.lightbox-nav.left {
  left: 2rem;
}

.lightbox-nav.right {
  right: 2rem;
}


/* ============ CTA Button ============ */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid var(--accent-blue-light);
  font-weight: bold;
  font-size: 1.1rem;
  /* background-color: var(--accent-blue); */
  color: black;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: var(--accent-blue-light);
  border-color: var(--accent-blue);
  color: black; /* This will animate smoothly now */
  transition: all 0.3s ease;
}


/* Styling for live version link in project content */
.project-content a {
  color: var(--accent-blue);
  transition: all 0.3s ease;
}

.project-content a:hover {
  color: var(--accent-blue-light);
  transition: all 0.3s ease;
}

/* Disclaimers */

.disclaimer h2 {
  color: var(--accent-yellow);
}


/* media queries */

@media (max-width: 480px) {
  .figma-thumb {
    max-width: 90%;
  }

  .figma-gallery {
    gap: 1rem;
  }
}
