#top .mast--video .mast-sea img {
  animation: none;
  transform: none;
  opacity: 1;
}

.mast--video .hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

.mast--video .hero-video.has-frame {
  opacity: 1;
  transition: opacity 140ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .mast--video .hero-video.has-frame { opacity: 0; transition: none; }
}

/* Reserve the former image dimensions before a lazy card photograph is inserted. */
#top .mast--video ~ .work .job-photo {
  position: relative;
  height: clamp(250px, 25vw, 380px);
  background: #18272f;
}

#top .mast--video ~ .work .job-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 701px) {
  #top .mast--video ~ .work article:nth-child(n+3) .job-photo { height: clamp(205px, 19vw, 290px); }
}

@media (max-width: 700px) {
  #top .mast--video ~ .work .job-photo { height: auto; aspect-ratio: 3 / 2; }
}
