
/* =========================================================
   SRISHAILA EQUIPMENT PAGE — FINAL FIX
   Fixes broken image fallbacks, inconsistent card heights,
   oversized typography and keeps the blue header consistent.
   ========================================================= */
body.equipment-page-body {
  background: #f5f5f2;
}

/* Header sits transparent over the hero image (no solid bar at the top).
   It turns solid blue only after the page is scrolled. */
html body.equipment-page-body .site-header,
html body.equipment-page-body .site-header .nav-inner {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body.equipment-page-body .site-header::before,
html body.equipment-page-body .site-header::after {
  display: none !important;
}
/* soft shade behind the menu text so it stays readable on the photo */
html body.equipment-page-body .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(5,12,20,.55), rgba(5,12,20,0)) !important;
}
html body.equipment-page-body .site-header.is-scrolled,
html body.equipment-page-body .site-header.is-scrolled .nav-inner {
  background: #214275 !important;
  background-color: #214275 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.22) !important;
}
html body.equipment-page-body .site-header.is-scrolled .nav-inner { box-shadow: none !important; }
html body.equipment-page-body .site-header:not(.is-scrolled) .main-nav > a:not(.nav-cta),
html body.equipment-page-body .site-header:not(.is-scrolled) .nav-drop-trigger {
  text-shadow: 0 1px 8px rgba(0,0,0,.55) !important;
}

/* Compact hero — image is always a real local PNG. */
body.equipment-page-body .equipment-stepwise-hero {
  min-height: 72vh;
  height: 72vh;
  background: #101820;
}
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy {
  margin: 0;
  padding: 0 0 68px;
}
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy h1 {
  font-size: clamp(38px, 5vw, 64px) !important;
  margin-bottom: 12px;
}
body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy > p:last-child {
  font-size: 15px !important;
}

/* Fleet section */
body.equipment-page-body .equipment-stepwise-section {
  padding: 70px 0 100px;
  background: #f5f5f2;
}
body.equipment-page-body .equipment-stepwise-heading {
  grid-template-columns: minmax(150px,.75fr) minmax(180px,1fr) minmax(260px,1.4fr);
  gap: 28px;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
body.equipment-page-body .equipment-stepwise-heading h2 {
  font-size: clamp(38px, 4.5vw, 56px) !important;
}
body.equipment-page-body .equipment-stepwise-heading > p:last-child {
  font-size: 13px;
  line-height: 1.5;
}

/* Consistent 16:9 media prevents giant cards and layout jumps. */
body.equipment-page-body .equipment-stepwise-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body.equipment-page-body .equipment-step-card {
  border: 1px solid #deded9;
  border-radius: 3px;
  background: #fff;
  min-width: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,.035);
}
body.equipment-page-body .equipment-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}
body.equipment-page-body .equipment-step-card-featured {
  grid-column: 1 / -1;
}
body.equipment-page-body .equipment-step-media {
  position: relative;
  width: 100%;
  height: 280px !important;
  overflow: hidden;
  background: #e9e9e5;
}
body.equipment-page-body .equipment-step-card-featured .equipment-step-media {
  height: 380px !important;
}
body.equipment-page-body .equipment-step-media-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
body.equipment-page-body .equipment-step-media-gallery picture,
body.equipment-page-body .equipment-step-media > picture {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
body.equipment-page-body .equipment-step-media-gallery picture:first-child {
  grid-row: 1 / 3;
}
body.equipment-page-body .equipment-step-media img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  display: block;
  object-fit: cover !important;
  object-position: center;
  background: #e9e9e5;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
body.equipment-page-body .equipment-step-card:hover .equipment-step-media img {
  transform: scale(1.035);
}
body.equipment-page-body .equipment-step-label {
  min-height: 64px;
  padding: 12px 18px;
  gap: 12px;
}
body.equipment-page-body .equipment-step-label h3 {
  font-size: clamp(19px, 2vw, 27px) !important;
}
body.equipment-page-body .equipment-step-label span {
  font-size: 9px;
}
body.equipment-page-body .project-view-badge {
  left: 14px !important;
  bottom: 14px !important;
  z-index: 3;
  padding: 8px 11px !important;
  font-size: 10px !important;
  border-radius: 999px;
  background: rgba(8,18,30,.78) !important;
  backdrop-filter: blur(10px);
}

/* Gallery modal — works with the shared script.js. */
body.equipment-page-body .project-modal-panel {
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}
body.equipment-page-body .gallery-stage {
  min-height: 0;
  background: transparent;          /* removed black background */
}
body.equipment-page-body #galleryImage {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 76vh;                 /* larger image */
  object-fit: contain;
}

@media (max-width: 900px) {
  body.equipment-page-body .equipment-stepwise-hero { height: 68vh; min-height: 520px; }
  body.equipment-page-body .equipment-stepwise-heading { grid-template-columns: 1fr; gap: 8px; }
  body.equipment-page-body .equipment-stepwise-grid { grid-template-columns: 1fr; }
  body.equipment-page-body .equipment-step-card-featured { grid-column: auto; }
  body.equipment-page-body .equipment-step-media,
  body.equipment-page-body .equipment-step-card-featured .equipment-step-media { height: 330px !important; }
}

@media (max-width: 600px) {
  body.equipment-page-body .equipment-stepwise-hero { height: 70vh; min-height: 460px; }
  body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy { padding: 0 20px 42px; }
  body.equipment-page-body .equipment-stepwise-section { padding: 52px 0 72px; }
  body.equipment-page-body .equipment-stepwise-heading h2 { font-size: 42px !important; }
  body.equipment-page-body .equipment-step-media,
  body.equipment-page-body .equipment-step-card-featured .equipment-step-media { height: 250px !important; }
  body.equipment-page-body .equipment-step-media-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.35fr 1fr;
  }
  body.equipment-page-body .equipment-step-media-gallery picture:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  body.equipment-page-body .equipment-step-label h3 { font-size: 21px !important; }
}

/* =========================================================
   EQUIPMENT PAGE — SHOW VIDEOS FULLY (no cropping)
   Add at the very END of your last CSS file.
   ========================================================= */

/* Piling Gantry card video */
body.equipment-page-body .equipment-step-media .equipment-card-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #0b1118;
  display: block;
}

/* Top hero video */
body.equipment-page-body .equipment-page-hero-image .equipment-hero-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #0b1118;
  display: block;
}

/* Gallery popup video */
body.equipment-page-body .gallery-video video,
.gallery-video video {
  width: 100% !important;
  height: auto !important;
  max-height: 76vh !important;
  object-fit: contain !important;
  background: #0b1118;
}

/* EQUIPMENT HERO — move text in from the left edge only */
html body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-copy {
  padding-left: clamp(20px, 3.2vw, 48px) !important;
  box-sizing: border-box !important;
}

/* =========================================================
   EQUIPMENT HERO — BRIGHTER, RICHER VIDEO
   ========================================================= */

/* hero video (and image fallback) */
html body.equipment-page-body .equipment-page-hero-image .equipment-hero-video,
html body.equipment-page-body .equipment-stepwise-hero .equipment-page-hero-image img {
  filter: brightness(1.12) contrast(1.08) saturate(1.15) !important;
}

/* lighter fade behind the menu (it was rgba .55 before) */
html body.equipment-page-body .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(5,12,20,.22), rgba(5,12,20,0)) !important;
}

/* card videos in the fleet grid */
html body.equipment-page-body .equipment-step-media .equipment-card-video {
  filter: brightness(1.08) contrast(1.05) saturate(1.1) !important;
}