body.project-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  font-family: "Inter", sans-serif;
  color: #eee;
  background: #0e0e0e;
}
.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* left = right */
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

/* Left column (carousel) */
.project-left {
  position: sticky;     /* optional: keeps carousel in view */
  top: 2rem;
  max-width: 500px;
    margin-left: 60px;
}

.carousel-main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-main img {
  max-width: 500px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.carousel-thumbs-wrapper {
  position: relative;
  overflow: hidden;
}

/* Only show fade when many thumbnails */
.carousel-thumbs-wrapper.sliced::before,
.carousel-thumbs-wrapper.sliced::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  pointer-events: none;
}

.carousel-thumbs-wrapper.sliced::before {
  left: 0;
  background: linear-gradient(to right, #0e0e0e, transparent);
}

.carousel-thumbs-wrapper.sliced::after {
  right: 0;
  background: linear-gradient(to left, #0e0e0e, transparent);
}
/* Thumbnail strip */
.carousel-thumbs {
  margin-top: 1rem;
  height: 90px;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

/* Right column */
.project-right {
  line-height: 1.6;
  margin-top: 3rem;
}
/* Titles inside notes */
.project-right h2 {
  margin-top: 2rem;
}

.wip img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 6px; /* optional */
}

@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: 1fr; /* stack vertically */
  }

  .project-left {
    position: static;    /* disable sticky on small screens */
    margin-left: 0;      /* undo the desktop margin-left */
    max-width: 100%; 
  }

  .carousel-main img {
    max-width: 100%;  /* scale down properly */
  }
}
