
.project-section {
  background: #f6f6f6;
  padding: 35px 40px;
  border-radius: 8px;
  max-width: 1000px;
  margin: 30px auto;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03);
}

.position-name-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;

  margin-bottom: 20px;
  padding-bottom: 8px;

  border-bottom: 1px solid rgba(0,0,0,0.1);
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.image-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers image + caption horizontally */
  text-align: center;    /* centers caption text */
}
.comparison-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;   /* center image */
  text-align: center;    /* center text */
}


.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.full-width-image {
  width: 100%;
  margin: 30px 0;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}



.experiment-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  margin-top: 25px;
  align-items: start;
}
.experiment-media-stack {
  display: flex;
  flex-direction: column;
  gap: 0px;
  width: 100%;
  justify-self: end;  /* keeps it on the right */
  max-width: 670px;   /* try 360–480 */
}




/* Left column */
.experiment-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.experiment-block strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.experiment-block ul {
  margin: 0;
  padding-left: 18px;
}

/* Right column video */
.experiment-video {
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
   width: 100%;
}
.experiment-video video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}.experiment-media video {
  max-width: 700px;
  height: auto;
  border-radius: 6px;
  display: block;
}

.plot-wrapper {
  max-width: 650px;
  margin: 30px auto;
}

.full-width-image {
  width: 100%;
}


/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .experiment-layout {
    grid-template-columns: 1fr;
  }
}




.experiment-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.experiment-media {
  margin: 0;
  text-align: center;
}

.experiment-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.experiment-media figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

/* Mobile: stack */
@media (max-width: 768px) {
  .experiment-layout {
    grid-template-columns: 1fr;
  }
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.deliverable-card {
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deliverable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

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

.deliverable-label {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 25px auto 10px;
}

.section-nav a {
  padding: 8px 14px;
  border-radius: 20px;
  background: #f0f0f0;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.section-nav a:hover {
  background: #ddd;
  transform: translateY(-1px);
}
