/* Shared Case Study Page Styles */
.project-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 15vh;
  padding-bottom: 5vh;
}

.project-content {
  text-align: center;
  color: var(--text-primary);
  padding: 0 2rem;
  max-width: 900px;
}

.project-content h1 {
  padding-bottom: 0.15em;
  background: linear-gradient(to bottom, #f1f1f1 0%, #333333 40%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.project-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 10rem 2rem;
  column-count: 3;
  column-gap: 30px;
}

.project-gallery-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  margin-bottom: 30px;
  display: block;
  break-inside: avoid;
}

.project-gallery-img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.project-gallery-centered {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 10rem 2rem;
  display: flex;
  justify-content: center;
}

.project-gallery-centered .project-gallery-img {
  width: calc((100% - 60px) / 3);
  margin-bottom: 30px;
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

@media (max-width: 1024px) {
  .project-gallery {
    column-count: 2;
    flex-wrap: wrap;
  }

  .project-gallery-centered .project-gallery-img {
    width: calc((100% - 30px) / 2);
  }

  .gallery-column {
    min-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .project-content h1 {
    font-size: 3rem;
  }

  .project-gallery {
    column-count: 1;
    flex-direction: column;
  }

  .project-gallery-centered .project-gallery-img {
    width: 100%;
  }

  .gallery-column {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .project-content h1 {
    font-size: 2.5rem;
  }
}
