.project-container {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2rem;
  
  /* Creates the two columns. 2fr (images) is twice as wide as 1fr (text) */
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start; 
}

/* --- Left Column: Images --- */
.project-images {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* Space between rows and columns */
}

.image-wrapper {
  margin: 0;
}

/* Image Row Logic */
.layout-full {
  width: 100%;
}

.layout-half {
  /* Exactly half the container minus half the gap */
  width: calc(50% - 1rem); 
}

.project-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Caption styling (Smaller text, distinct style) */
.image-caption {
  font-size: 1rem;
  color: #e4e2d4;
  margin-top: 1.2rem;
  line-height: 1.4;
  text-align: center;
  font-family: Alegreya Sans;
  font-style: italic;
}

/* --- Right Column: Text --- */
.info-sticky {
  /* Keeps the text visible while scrolling through tall image columns */
  position: sticky;
  top: 2rem;
}

.project-main-title {
  font-family: Montserrat;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  color: var(--neon-red); 
  text-align: left;
  line-height: 1.4em;
  letter-spacing: 0.1em;
  margin: 0 0 1rem 0;
  padding: 0 0 0.9rem 0;
  border-bottom: 3px solid #FBC96D;
}

.project-meta {
  font-family: Alegreya Sans;
  font-weight: 300;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: #f8e6c5;
  
}

.project-description {
  font-family: Alegreya Sans;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin-top: 1.5rem;
  padding-top: 1rem;
  line-height: 1.6;
  border-top:1px solid #CCC5B9;
}

.project-description p {
  margin-bottom: 1.5rem; /* Increases the space below every paragraph */
  line-height: 1.6; /* Improves readability of the text itself */
}

.project-description p:last-child {
  margin-bottom: 0;
}

/* Navigation Buttons */
.project-navigation {
  margin-top: 2.5rem;
  border-top:1px solid #CCC5B9;
  display: flex;
  gap: 1rem;
}

.nav-button {
  font-family: Montserrat;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 1rem 0rem;
  text-decoration: none;
  color: #FBC96D;
}

.nav-next {
  margin-left: auto; /* Forces the Next button to the right even if Previous is missing */
}



.page-bottom-nav {
  width: 100%;
  max-width: 90rem; /* Matches your site's max-width */
  margin: 2rem auto 0rem auto; /* Large space above, moderate space below */
  display: flex;
  justify-content: center; /* Centers the button horizontally */
  padding: 0 2rem; /* Keeps it from touching the edges on mobile */
}

.home-button {
  /* You can optionally add a fixed width here if you want it wider than the text */
  padding: 1rem 3rem; 
  text-align: center;
}

/*VIDEOS*/

.responsive-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Modern CSS to force a widescreen ratio */
  background: #000000; /* Placeholder color while loading */
}

.responsive-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/*SPEAKERDECK*/

.speakerdeck-wrapper {
  width: 100%;
  margin-bottom: 2rem; /* Matches the spacing of your other elements */
}

/* --- Responsive Breakpoints --- */

/* Tablet: Stack the columns */
@media screen and (max-width: 900px) {
  .project-container {
    grid-template-columns: 1fr; /* 1 column layout */
    gap: 2rem;
  }
  
  .info-sticky {
    position: static; /* Turns off sticky behavior on small screens */
  }
}

/* Mobile: Force all images to be full-width */
@media screen and (max-width: 600px) {
  .layout-half {
    width: 100%; 
  }
}