/* === PROJECT COLLAGE SCROLL === */


.project-cover-content-container {
  width: 100%;
  overflow-x: hidden;
  display: block;
    background: none;
}

.project-inline-container {
  margin-left: 1%;
  display: block;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  background: none;
}

.project-collage-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  box-sizing: border-box;
  /* ❗ critical: force it not to expand parent */
  max-width: 100%;
    background: none;
}


.project-collage-item {
  position: relative;
  height: 50vh;
  flex: 0 0 auto;
  scroll-snap-align: start;
  overflow: hidden;
  background-color: #ededed;
}

/* Image stays as-is, width auto based on original aspect ratio */
.project-collage-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

/* Caption only appears if .has-caption is present */
.project-collage-item.has-caption:hover img {
  filter: blur(10px);
}

.project-collage-item .caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;

  color: rgb(232, 232, 232);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 450;
  font-size: 1.5rem;
  vertical-align: middle;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
  pointer-events: none;
}

.project-collage-item.has-caption:hover .caption-overlay {
  opacity: 1;
}

/* === PROJECT DESCRIPTION UNDER COLLAGE === */


.project-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.project-desc-text {
  margin-top: 1em;
  line-height: 1.6;
}



/* Responsive: Stack on mobile */
  @media (max-width: 650px) {
  .project-collage-scroll {
    display: block;
    width: 100%;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0.5vw;
  }

  .project-collage-item {
    height: auto; /* ✅ Fix vertical gap by letting it shrink-wrap */
    margin-bottom: 1rem; /* ✅ Ensures spacing between stacked items */
  }

  .project-collage-item img {
    width: 100%;
    height: auto;
    flex: none;
  }
}



