
.bridge-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

:root {
  --content-zoom: 0.92;
}

/* images */
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* spacing tweak */
.hero-title-block {
  max-width: 500px;
}

/* responsive */
@media (max-width: 768px) {
  .bridge-hero-grid {
    grid-template-columns: 1fr;
  }
}
.project-section {
  background: #f6f6f6;
  padding: 28px 32px;
  border-radius: 8px;
  width: calc(100% - 24px);
  max-width: 1080px;
  margin: 22px auto;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03);
  zoom: var(--content-zoom);
}

.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: 18px 0;
}

figure {
  margin: 0;
}

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

.secondary-sap-image {
  margin-top: 12px;
}

.secondary-sap-caption {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.pre-table-image {
  margin-bottom: 10px;
}

.pre-table-caption {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px;
}

.variation-tables-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}



.experiment-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  margin-top: 18px;
  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: 2px 0 0;
  padding-left: 18px;
}

.experiment-block li {
  margin: 0;
  line-height: 1.2;
}

/* 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: 18px 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;
}

.testing-setup-image {
  max-width: 360px;
  margin: 0 auto;
}

.results-table-image {
  width: 92%;
  margin: 18px auto;
}

.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: 14px;
}

.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: 16px auto 8px;
}

.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);
}

/* ===== ENGS33 page-specific layout ===== */
.bridge-hero {
  width: calc(100% - 24px);
  max-width: 1080px;
  margin: 22px auto 8px;
  padding: 0 12px;
}

.bridge-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.bridge-hero-text {
  text-align: left;
}

.hero-overview-box {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 16px 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.hero-overview-box p {
  margin: 10px 0 0;
}

.bridge-hero .section-nav {
  margin: 14px auto 0;
}

.project-summary-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

/* Make the snapshot and the render visually distinct */
.summary-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 22px 22px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

/* Right-side render: separate gray box */
.summary-visual {
  background: #e9e9e9;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

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

.image-caption {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  text-align: center;
}

.summary-group + .summary-group {
  margin-top: 16px;
}

.summary-label {
  font-weight: 600;
  margin-bottom: 6px;
}

.note-box {
  margin-top: 18px;
  background: #ffffff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.two-up {
  grid-template-columns: 1fr 1fr;
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.analysis-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 22px auto 0;
}

.mini-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.mini-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.decision-card {
  grid-column: 1 / -1;
  max-width: 760px;
  justify-self: center;
}

.results-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.takeaway-box {
  margin-top: 16px;
}

.takeaway-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.takeaway-box li {
  margin: 2px 0;
  line-height: 1.2;
}

.performance-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: start;
}

.performance-note {
  margin: 0;
}

.performance-note img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}

.final-results-preview p {
  margin-top: 0;
}

.final-bridge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.final-bridge-grid img,
.final-analysis-row img,
.prediction-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.final-bridge-caption {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin: 10px 0 0;
}

.final-photo-1,
.final-photo-2 {
  height: auto;
  object-fit: initial;
}

.final-photo-3-wrap {
  grid-column: 1;
  grid-row: 2;
}

.final-analysis-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.prediction-title {
  margin-top: 18px;
  margin-bottom: 10px;
}

.prediction-bullets {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prediction-bullets li {
  margin: 2px 0;
  line-height: 1.2;
}

.prediction-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 14px;
  align-items: start;
}

.prediction-figure {
  margin: 0;
}

.prediction-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.results-intro h3 {
  margin-top: 0;
}

.results-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.metric-card {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 12px 12px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.metric-label {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}

.failure-point-layout {
  display: grid;
  grid-template-columns: 0.9fr 0.75fr;
  gap: 16px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.failure-point-stack {
  display: grid;
  gap: 12px;
}

.failure-point-stack figure,
.failure-point-main {
  margin: 0;
}

.failure-point-stack img,
.failure-point-main img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.failure-point-stack img {
  max-height: 165px;
  object-fit: contain;
}

.failure-point-main {
  max-width: 320px;
  justify-self: center;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  padding: 24px;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-content {
  max-width: min(960px, 95vw);
  max-height: 90vh;
}

.lightbox-content img {
  width: 100%;
  max-height: 90vh;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
@media (max-width: 900px) {
  .project-section {
    zoom: 1;
  }
  .bridge-hero-grid {
    grid-template-columns: 1fr;
  }
  .bridge-hero-text {
    text-align: center;
  }
  .project-summary-wrap {
    grid-template-columns: 1fr;
  }
  .three-up {
    grid-template-columns: 1fr;
  }
  .analysis-callout-grid {
    grid-template-columns: 1fr;
  }
  .results-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .performance-layout {
    grid-template-columns: 1fr;
  }
  .failure-point-layout {
    grid-template-columns: 1fr;
  }
  .failure-point-main {
    max-width: 100%;
  }
  .final-analysis-row {
    grid-template-columns: 1fr;
  }
  .prediction-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .project-section {
    padding: 22px 22px;
    margin: 16px auto;
  }
}

@media (max-width: 560px) {
  .final-bridge-grid,
  .results-metrics {
    grid-template-columns: 1fr;
  }

  .section-nav a {
    width: 100%;
    text-align: center;
  }

  .lightbox-overlay {
    padding: 16px;
  }
}
