.project-gallery-cover{display:block;position:relative;width:100%;padding:0;border:0;background:#eef0f1;cursor:zoom-in;color:#fff}.project-gallery-cover:focus-visible,.project-gallery-link:focus-visible{outline:3px solid #ef6c00;outline-offset:3px}.project-gallery-cover img{transition:transform .2s;pointer-events:none}.project-gallery-cover:hover img{transform:scale(1.025)}.project-gallery-count{position:absolute;bottom:12px;right:12px;padding:6px 10px;border-radius:5px;background:#222b30e8;font:600 12px Arial,sans-serif;pointer-events:none}.project-gallery-link{align-self:flex-start;margin-top:14px;border:0;padding:8px 0;background:none;color:#a64700;font:700 14px Arial,sans-serif;cursor:pointer}.project-gallery-dialog{box-sizing:border-box;width:min(1180px,96vw);height:min(880px,94dvh);max-width:none;max-height:none;border:1px solid #555;border-radius:12px;padding:18px;background:#181b1e;color:#fff;overflow:hidden}.project-gallery-dialog[open]{display:flex;flex-direction:column;gap:12px}.project-gallery-dialog::backdrop{background:#000d}.gallery-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.gallery-top h2{font:600 19px/1.4 Arial,sans-serif;margin:0;color:white}.gallery-top button,.gallery-stage>button,.gallery-zoom{border:1px solid #62676b;border-radius:6px;background:#30353a;color:#fff;cursor:pointer;min-width:44px;min-height:44px}.gallery-close{font-size:28px}.gallery-stage{display:flex;align-items:center;gap:10px;min-height:0;flex:1}.gallery-stage>button{font-size:32px;flex-shrink:0}.gallery-image-area{height:100%;min-width:0;flex:1;display:flex;align-items:center;justify-content:center;overflow:auto;touch-action:pan-y pinch-zoom}.gallery-image-area img{display:block;width:100%;height:100%;object-fit:contain;max-width:none}.gallery-image-area.is-zoomed{display:block}.gallery-image-area.is-zoomed img{width:180%;height:auto;object-fit:initial}.gallery-bottom{display:flex;align-items:center;gap:15px;font:13px/1.45 Arial,sans-serif}.gallery-bottom p{margin:0;flex:1;color:#e2e5e7}.gallery-bottom span{white-space:nowrap}.gallery-zoom{padding:6px 12px}.gallery-thumbs{display:flex;gap:8px;overflow-x:auto;flex-shrink:0;padding:3px 0 5px}.gallery-thumbs button{padding:0;border:2px solid transparent;border-radius:4px;background:#fff;cursor:pointer;flex-shrink:0;width:76px;height:54px;overflow:hidden}.gallery-thumbs button[aria-current=true]{border-color:#ff7800}.gallery-thumbs img{width:100%;height:100%;object-fit:contain}.gallery-stage>button:disabled{opacity:.35;cursor:default}html.gallery-open{overflow:hidden}@media(max-width:600px){.project-gallery-dialog{width:100vw;height:100dvh;border:0;border-radius:0;padding:12px}.gallery-top h2{font-size:16px}.gallery-stage{gap:4px}.gallery-stage>button{min-width:32px;width:32px}.gallery-bottom{gap:8px;font-size:12px}.gallery-thumbs button{width:64px;height:48px}}@media(prefers-reduced-motion:reduce){.project-gallery-cover img{transition:none}}

.illustration-caption{font-size:10px;line-height:1.35;padding:5px 10px;color:#62676b;background:#f4f4f4;}

.experience-image-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:0;background:#eef0f1;padding:0}
.experience-image-pair .ewt-project-media + .ewt-project-media{display:none}
.experience-image-pair .ewt-project-media{margin:0;height:auto;min-width:0;overflow:hidden;display:flex;flex-direction:column;background:#eef0f1}
.experience-image-pair .project-gallery-cover{aspect-ratio:4/3;height:auto;min-height:0;display:flex;align-items:center;justify-content:center}
.experience-image-pair .ewt-project-media img{width:100%;max-width:100%;height:100%;max-height:none;padding:0;margin:0;object-fit:contain}
.experience-image-pair .ewt-project-media figcaption{position:static;align-self:flex-start;padding:5px 7px;font-size:9px;border-radius:4px;margin-top:4px}
.project-gallery-dialog.paired-gallery{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border:0;border-radius:0}
#references .experience-image-pair + .ewt-project-body{height:auto;min-height:0}

/* Experience cards use one cover height, including captioned illustrations. */
#main { --experience-cover-height: 210px; }
#main .ewt-project-card .ewt-project-media,
#main .ewt-project-card .project-gallery-cover {
  height: var(--experience-cover-height);
  overflow: hidden;
}
#main .ewt-project-card .project-gallery-cover,
#references .ewt-project-card .experience-image-pair .project-gallery-cover,
#references .ewt-project-card .ewt-project-media > img {
  display: block;
  width: 100%;
  height: var(--experience-cover-height);
  aspect-ratio: auto;
}
#main .ewt-project-card .ewt-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  padding: 0 !important;
}
/* Keep the portrait vessel and its supports visible within the shared cover height. */
#main #pressure-vessels-and-tanks .project-gallery-cover img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain !important;
}
#pressure-vessels-and-tanks .ewt-project-no {
  background: #263238;
  padding-inline: 6px;
  border-radius: 4px;
}
#references .ewt-project-card .ewt-project-media > figcaption {
  position: absolute;
  right: auto;
  bottom: 12px;
  left: 12px;
  width: auto;
  min-height: 0;
  max-width: 56%;
  margin: 0;
  padding: 5px 8px;
  border-radius: 5px;
  color: #fff;
  background: #222b30e8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  pointer-events: none;
}
.equipment-reference-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  color: #fff;
  background: #222b30e8;
  font-size: 10px;
  font-weight: 700;
}
.equipment-reference-source { text-decoration: none; }
.equipment-reference-source:hover,
.equipment-reference-source:focus-visible { text-decoration: underline; }
.project-materials {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-size: .78rem;
  font-weight: 400;
}
@media (max-width: 620px) {
  #main { --experience-cover-height: 190px; }
}

#references .experience-image-pair{position:relative}
#references .experience-image-pair>.ewt-project-no{z-index:1;pointer-events:none}
#main .equipment-experience-card .ewt-project-media {
  flex: 0 0 var(--experience-cover-height);
}
#main .ewt-project-card .ewt-project-no { pointer-events: none; }

/* Share card rows so that role labels and gallery links line up across columns. */
@supports (grid-template-rows: subgrid) {
  .ewt-projects-grid > .ewt-project-card,
  .equipment-gallery-grid > .ewt-project-card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  #main .ewt-project-card .ewt-project-body:has(> .experience-card-description) {
    display: grid;
    grid-row: 2 / span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .experience-card-description {
    grid-row: 1;
  }

  .experience-card-description ~ .project-quality-role {
    grid-row: 2;
  }

  .experience-card-description ~ :is(.ewt-project-standards, .project-materials) {
    grid-row: 3;
    align-self: end;
  }

  .experience-card-description ~ .project-gallery-link {
    grid-row: 4;
    justify-self: start;
  }
}
