.project-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 1.5rem 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.project-title {
  font-size: 3.33rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-dark, #1d1d1f);
}

.project-tagline {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-dark, #1d1d1f);
}

.case-study-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 650px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.media-item {
  margin-bottom: 2rem;
}

.image-preview-wrapper {
  width: 100%;
  position: relative;
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background-color: #e5e5ea;
}

.image-preview-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-preview-wrapper img.is-loaded {
  opacity: 1;
}

/* --- Skeleton Effect --- */
.image-preview-wrapper.skeleton {
  background-color: #e8e8ed;
  background-image: linear-gradient(90deg, #e8e8ed 0%, #f5f5f7 50%, #e8e8ed 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  min-height: 450px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Video Embed --- */
.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm, 12px);
  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;
  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;
  z-index: 5;
}

.image-preview-wrapper:hover .expand-button {
  opacity: 1;
}

.expand-button svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #ffffff;
}

.info-sidebar {
  position: sticky;
  top: 5.5rem;
}

.sidebar-content {
  background-color: rgba(243, 246, 246, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md, 16px);
  padding: 2rem;
}

.sidebar-content h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.5rem;
  margin: 0 0 1rem 0;
  color: #1d1d1f;
}

.sidebar-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333336;
  margin: 0 0 2rem 0;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333336;
}

.sidebar-cta {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ruby-main, #a11d21);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-cta:hover {
  color: var(--ruby-hover, #801417);
}

.tags-container {
  margin-bottom: 2rem;
}

.tags-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  display: inline-block;
  background-color: #e5e5ea;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1d1d1f;
}

/* --- Explore Next Section --- */
.explore-next-section {
  padding: 4rem 0;
  margin-top: 6.25rem;
  background-color: #121214;
  width: 100%;
  overflow: hidden;
}

.explore-next-container {
  max-width: var(--container-width-lg, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.explore-next-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.explore-next-title {
  font-size: 3.33rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.explore-next-subtitle {
  font-size: 1.875rem;
  font-weight: 600;
  color: #a1a1a6;
  margin: 0;
}

/* FULL-BLEED CAROUSEL TRACK */
.next-projects-track {
  display: flex;
  gap: 1.875rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  width: 100%;
  
  padding-left: calc((100vw - 1200px) / 2 + 1.5rem);
  padding-right: calc((100vw - 1200px) / 2 + 1.5rem);
}

/* Fallback padding for screens 1200px and narrower */
@media (max-width: 1200px) {
  .next-projects-track {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.next-project-card {
  width: 20rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.next-project-card:hover {
  transform: scale(1.03);
}

.next-project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm, 12px);
}

.explore-next-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.explore-next-section .arrow-button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background-color: #2c2c2e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.explore-next-section .arrow-button:hover {
  background-color: #3a3a3e;
}

.explore-next-section .arrow-button svg {
  stroke: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .case-study-content-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1069px) {
  .project-header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .case-study-content-container {
    display: block;
  }
  .info-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 743px) {
  .project-title { font-size: 2.25rem; }
  .project-tagline { font-size: 1.25rem; }
  .case-study-content-container { padding: 0; }
  .image-preview-wrapper { border-radius: 0; }
  .next-project-card { width: 16rem; }
}