.project-media-wrap { position: relative; min-width: 0; }
.living-render { display: block; isolation: isolate; }
.living-render[data-living-project="84"] { --living-opacity: .12; }
.living-render[data-living-project="85"],
.living-render[data-living-project="91"] { --living-opacity: .6; }
.living-render[data-living-project="88"],
.living-render[data-living-project="90"],
.living-render[data-living-project="92"] { --living-opacity: .2; }

.project-photo .living-render { position: absolute; inset: 0; }
.project-photo img,
.project-photo:hover img { object-fit: contain; transform: none; }
.project-photo .living-render > img { width: 100%; height: 100%; transition: none; }

/* The existing direct-span badge rule must not position the media wrapper. */
.detail-image-button > .living-render {
  position: relative;
  inset: auto;
  width: 100%;
  padding: 0;
  background: transparent;
  line-height: 0;
}
.detail-image-button .living-render > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: none;
}

.living-render .living-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: luminosity;
  -webkit-mask-image: var(--living-mask);
  mask-image: var(--living-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.living-render.is-playing .living-video { opacity: var(--living-opacity, .4); }

.project-motion-control {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffffc2;
  border-radius: 50%;
  background: #11161de8;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 10px #0003;
}
.project-motion-control:hover { background: #26314c; }
.project-motion-control:focus-visible { outline: 3px solid #bdc4f1; outline-offset: 3px; }
.list-view .project-motion-control { display: none; }
.list-view .living-render .living-video { opacity: 0; }
