/* Job clips and step stills. Injected by job-media.js.
   Uses the site's section classes for type and color. These rules only
   size the new row. Sharp corners, same as the rest of the site. */

.job-media .job-clip-row,
.job-media .job-steps {
  margin-top: 28px;
}

.job-clip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.job-clip-row.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.job-clip,
.job-step {
  margin: 0;
}

.job-clip-frame,
.job-step-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0c0f18;
}

.job-clip-poster,
.job-step-frame img,
.job-clip-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.job-clip-video {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.job-clip-video.is-on {
  opacity: 1;
}

.job-clip figcaption,
.job-step figcaption {
  margin-top: 10px;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5ceda;
}

.job-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-steps.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.job-steps-block {
  margin-top: 28px;
}

.job-steps-block .section-label {
  margin-bottom: 8px;
}

.job-steps-block .job-steps {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .job-clip-row,
  .job-steps,
  .job-steps.is-4 {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .job-clip-row.is-two {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
    overflow: visible;
  }

  .job-clip-row > .job-clip,
  .job-steps > .job-step {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .job-clip-row.is-two > .job-clip {
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-clip-video {
    display: none !important;
  }
}
