/* Owner-supplied yard photograph. Crop the viewport, never alter the scene. */
#work .case-study__bg-anim--monkey {
  background: #30342c;
}

#work .case-study__bg-anim--monkey .case-study__img {
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
  object-position: 35% 50%;
}

#work .case-study__bg-anim--monkey::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(5 10 8 / .72), rgb(5 10 8 / .54) 26%, rgb(5 10 8 / .13) 57%, rgb(5 10 8 / .03));
}

#work:has(.cases-study__text--monkey.is-active) .case-study__wrap {
  display: none;
}

#work .cases-study__text--monkey .study__descr-text {
  opacity: .9;
}

@media (max-aspect-ratio: 1/1) {
  #work .case-study__bg-anim--monkey .case-study__img {
    object-position: 43% 50%;
  }

  #work .case-study__bg-anim--monkey::after {
    background: linear-gradient(180deg, rgb(5 10 8 / .03) 24%, rgb(5 10 8 / .06) 48%, rgb(5 10 8 / .5) 67%, rgb(5 10 8 / .82));
  }

  #work:has(.cases-study__text--monkey.is-active) .container.mod--case-study {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  #work:has(.cases-study__text--monkey.is-active) .columns.mod--case-study {
    display: block;
    height: 100%;
  }

  #work:has(.cases-study__text--monkey.is-active) .cases-study__text-wrap {
    position: absolute;
    top: 68svh;
    bottom: auto;
    left: 6%;
    width: 88%;
    height: auto;
  }

  #work:has(.cases-study__text--monkey.is-active) .cases-study__text:not(.cases-study__text--monkey) {
    position: absolute;
  }

  #work .cases-study__text--monkey.is-active {
    position: relative;
    width: 100%;
    max-width: 28rem;
  }
}

@media (max-aspect-ratio: 2/3) {
  #work .case-study__bg-anim--monkey .case-study__img {
    object-position: 40% 50%;
  }
}

@media (min-aspect-ratio: 1/1) and (max-height: 500px) {
  #work .cases-study__text--monkey {
    width: 24vw;
    gap: 10px;
  }

  #work .cases-study__text--monkey .heading-5 {
    font-size: clamp(22px, 3.3vw, 28px);
    line-height: 1.2;
  }
}
