/* Grade the real photograph in presentation, preserving faces and hands. */
#work .case-study__bg-anim--drive { background: #2a1c19; }
#work .case-study__bg-anim--drive .case-study__img {
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
  object-position: 44% 39%;
  filter: contrast(1.07) saturate(1.14);
}
#work .case-study__bg-anim--drive::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(15 10 9 / .65), rgb(15 10 9 / .39) 26%, rgb(15 10 9 / .04) 56%, transparent 78%);
  mask-image: linear-gradient(180deg, transparent 27%, #000 37%);
}
#work:has(.cases-study__text--drive.is-active) .case-study__wrap { display: none; }
#work .cases-study__text--drive .study__descr-text { opacity: .94; }

@media (max-aspect-ratio: 1/1) {
  #work .case-study__bg-anim--drive .case-study__img { object-position: 44% 50%; }
  #work .case-study__bg-anim--drive::after {
    mask-image: none;
    background: linear-gradient(180deg, transparent 42%, rgb(15 10 9 / .12) 56%, rgb(15 10 9 / .62) 71%, rgb(15 10 9 / .84));
  }
  #work:has(.cases-study__text--drive.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--drive.is-active) .columns.mod--case-study { display: block; height: 100%; }
  #work:has(.cases-study__text--drive.is-active) .cases-study__text-wrap {
    position: absolute;
    top: 68svh;
    bottom: auto;
    left: 6%;
    width: 88%;
    height: auto;
  }
  #work:has(.cases-study__text--drive.is-active) .cases-study__text:not(.cases-study__text--drive) { position: absolute; }
  #work .cases-study__text--drive.is-active { position: relative; width: 100%; max-width: 28rem; }
}

/* A short landscape phone shows a compact caption below the faces. */
@media (min-aspect-ratio: 1/1) and (max-height: 500px) {
  #work .case-study__bg-anim--drive .case-study__img { object-position: 44% 34%; }
  #work .case-study__bg-anim--drive::after { mask-image: linear-gradient(180deg, transparent 42%, #000 68%); }
  #work:has(.cases-study__text--drive.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--drive.is-active) .columns.mod--case-study { display: block; height: 100%; }
  #work:has(.cases-study__text--drive.is-active) .cases-study__text-wrap {
    position: absolute;
    top: auto;
    bottom: 24px;
    left: 5%;
    width: 27vw;
    height: auto;
  }
  #work:has(.cases-study__text--drive.is-active) .cases-study__text:not(.cases-study__text--drive) { position: absolute; }
  #work .cases-study__text--drive.is-active { position: relative; width: 100%; gap: 10px; }
  #work .cases-study__text--drive :is(.cases-study__services, .cases-study__desc) { display: none; }
  #work .cases-study__text--drive .heading-5 { font-size: 22px; line-height: 1.2; }
  #work .cases-study__text--drive .cases-study__btn { margin-top: 0; }
}
