/* Full-bleed native Plugin Warehouse artwork, authored for each viewport shape. */
#work .case-study__bg-anim--plugin {
  background: #080714;
}

#work .pw-scene {
  flex: none;
  width: 100%;
  height: 100vh;
  height: 100svh;
}

#work:has(.cases-study__text--plugin.is-active) .case-study__wrap {
  display: none;
}

/* The real interface planes recompose above the live project copy on portrait. */
@media (max-aspect-ratio: 1/1) {
  #work:has(.cases-study__text--plugin.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--plugin.is-active) .columns.mod--case-study {
    display: block;
    height: 100%;
  }

  #work:has(.cases-study__text--plugin.is-active) .cases-study__text-wrap {
    position: absolute;
    top: 68svh;
    bottom: auto;
    left: 6%;
    width: 88%;
    height: auto;
  }

  #work:has(.cases-study__text--plugin.is-active) .cases-study__text:not(.cases-study__text--plugin) {
    position: absolute;
  }

  #work .cases-study__text--plugin.is-active {
    position: relative;
    width: 100%;
    max-width: 28rem;
  }
}

@media (max-aspect-ratio: 2/3) {
  #work:has(.cases-study__text--plugin.is-active) .cases-study__text-wrap {
    top: 58svh;
  }
}

/* Short landscape phones keep the copy clear of the incoming interfaces. */
@media (min-aspect-ratio: 1/1) and (max-height: 500px) {
  #work .cases-study__text--plugin {
    width: 28vw;
    gap: 10px;
  }

  #work .cases-study__text--plugin .heading-5 {
    font-size: clamp(22px, 3.3vw, 28px);
    line-height: 1.12;
  }
}

