.project-header-container {
  max-width: var(--container-width-lg);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.project-title {
  font-size: 3.33rem; /* Was 40pt */
  font-weight: 600;
  margin: 0;
  color: var(--color-text-dark);
}
.project-tagline {
  font-size: 1.875rem; /* 30px */
  font-weight: 600;
  margin: 0;
  color: var(--color-text-dark);
}
.case-study-content-container {
  width: var(--container-width-lg);
  margin: 0 auto;
  padding: 0 var(--space-md);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 800px 1fr; /* 945px */
  gap: var(--space-xl);
  align-items: flex-start;
}
.media-item {
  margin-bottom: var(--space-lg);
}
.image-preview-wrapper {
  width: 800px; /* 945px */
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.image-preview-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Video Embed --- */
.video-wrapper {
  width: 800px; /* 945px */
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 auto;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.expand-button {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 2.75rem; /* 44px */
  height: 2.75rem;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-preview-wrapper:hover .expand-button {
  opacity: 1;
}
.expand-button svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  stroke: white;
}
.info-sidebar {
  position: sticky;
  top: 5.5rem; /* 88px */
}
.sidebar-content {
  background-color: rgba(243, 246, 246, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.sidebar-content h3 {
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: var(--space-xs);
  margin: 0 0 1rem 0;
}
.sidebar-content p {
  font-size: var(--font-size-small);
  line-height: var(--line-height-base);
  color: var(--color-text-body);
  margin: 0 0 2rem 0;
}
.details-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  font-size: var(--font-size-small);
  line-height: 1.8;
}
.sidebar-cta {
  display: block;
  text-align: center;
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-text-link);
  text-decoration: none;
}
.tags-container {
  margin-bottom: 2rem;
}
.tags-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xxs);
}
.tag-pill {
  display: inline-block;
  background-color: var(--color-bg-arrow-nav);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-body);
}

/* --- Explore Next Section --- */
.explore-next-section {
  padding: var(--space-xxl) 0;
  margin-top: 6.25rem; /* 100px */
  background-color: var(--color-bg-dark-accent);
  overflow: hidden;
}
.explore-next-container {
  max-width: var(--container-width-lg);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.explore-next-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-lg);
}
.explore-next-title {
  font-size: 3.33rem; /* Was 40pt */
  font-weight: 600;
  color: var(--color-bg-white);
  margin: 0;
}
.explore-next-subtitle {
  font-size: 1.875rem; /* 30px */
  font-weight: 600;
  color: var(--color-bg-white);
  margin: 0;
}
.next-projects-track {
  display: flex;
  gap: 1.875rem; /* 30px */
  overflow-x: auto;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-md) calc((100vw - var(--container-width-lg)) / 2 + var(--space-md));
  box-sizing: border-box;
}
.next-project-card {
  width: 25rem; /* 400px */
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-bg-white);
  transition: transform 0.3s ease;
}
.next-project-card:hover {
  transform: scale(1.02);
}
.next-project-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.next-project-info {
  padding: 1rem 0.5rem;
}
.next-project-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.explore-next-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
  margin-top: 1.5rem;
}
.explore-next-section .arrow-button {
  width: 3rem;
  height: 3rem;
  background-color: var(--color-bg-arrow-nav-dark);
}
.explore-next-section .arrow-button:hover {
  background-color: #3a3a3e;
}
.explore-next-section .arrow-button svg {
  width: 1.375rem;
  height: 1.375rem;
  stroke: #e0e0e0;
}
.explore-next-section .arrow-button.disabled {
  opacity: 0.3;
}
@media (max-width: 1440px) {
  /* --- 1. Project Header --- */
  .project-header-container {
    max-width: none;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .project-title {
    font-size: 2.8rem;
  }
  .project-tagline {
    font-size: 1.5rem;
  }

  /* --- 2. Main Content Layout --- */
  .case-study-content-container {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .image-preview-wrapper,
  .video-wrapper {
    width: 100%;
  }
  
  .info-sidebar {
    position: static;
  }

  .sidebar-content p {
    font-size: 1.1rem;
  }

  /* --- 3. Explore Next Carousel --- */
  .explore-next-container {
    max-width: none;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .explore-next-header {
    align-items: baseline;
  }
  
  .explore-next-title {
    font-size: 2.8rem;
  }

  .explore-next-subtitle {
    font-size: 1.5rem;
  }
  
  .next-project-card {
    width: 20rem;
  }

  .explore-next-nav {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
    margin-top: 1.5rem;
  }
}
@media (max-width: 1069px) {
  /* --- 1. Project Header --- */
  .project-header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0 1rem 0;
  }

  /* --- 2. Main Content Layout --- */
  .case-study-content-container {
    display: block;
    width: 100%;
    padding: 0 var(--space-lg);
  }

  .image-preview-wrapper,
  .video-wrapper {
    width: 100%;
  }

  /* --- 3. Sidebar Becomes an Info Box --- */
  .info-sidebar {
    position: static;
    margin-top: var(--space-xl);
  }

  /* --- 4. Explore Next Carousel --- */
  .explore-next-container {
    max-width: none;
    width: 100%;
  }

  .next-projects-track {
    width: 100%;
    position: static;
    transform: none;
    padding: var(--space-md) var(--space-lg);
    justify-content: flex-start;
  }
}
@media (max-width: 832px) {
  /* --- 1. Project Header --- */
  .project-header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0 1rem 0;
  }
}
@media (max-width: 743px) {

  /* --- 1. Project Header --- */
  .project-header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0 1rem 0;
  }
  
  .project-title {
    font-size: 2.5rem;
  }

  .project-tagline {
    font-size: 1.25rem;
  }

  /* --- 2. Main Content Layout --- */
  .case-study-content-container {
    display: block;
    width: 100%;
    padding: 0;
  }

  /* --- 3. Sidebar Becomes an Info Box --- */
  .info-sidebar {
    position: static;
    padding: var(--space-lg) var(--space-md);
    background-color: #f5f5f7;
  }

  .sidebar-content {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
  }
  
  /* --- 4. Media Column (Images & Videos) --- */
.media-item{
  margin-bottom: 0.5rem;
}
  .image-preview-wrapper,
  .video-wrapper {
    width: 100%;
    border-radius: 0; 
  }
  
  /* --- 5. Explore Next Carousel --- */
  .explore-next-section {
    margin-top: 1rem;
    padding: 3rem 0;
  }

  .explore-next-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0 var(--space-md); 
  }
  
  .explore-next-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
  }
  
  .explore-next-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0; 
   }

  .next-projects-track {
    width: 100%;
    position: static;
    transform: none;
    scroll-snap-type: x mandatory;
    padding: var(--space-md) calc((100vw - 325px) / 2);
  }
.explore-next-container{
  padding: 0;
}

.explore-next-nav{
  padding-right: 1rem;
}
  .next-project-card {
    width: 325px; 
    scroll-snap-align: center;
  }

  .expand-button{
    opacity: 1;
  }

}