/* Keep the collage in the available window. Do not scale text with transforms. */
#jel-hero-3d.jbh{
  --jbh-nav:68px;
  --jbh-viewport:calc(100svh - var(--jbh-nav));
  padding-top:var(--jbh-nav);
  min-height:100svh;
  box-sizing:border-box;
}

/* In a desktop or short tablet window, keep the original collage aspect ratio. */
@media(min-width:1101px),(min-width:761px) and (max-height:730px){
  #jel-hero-3d.jbh .jbh__art{
    display:block;aspect-ratio:1440/815;width:min(100%,calc(var(--jbh-viewport) * (1440 / 815)));
    min-height:0;max-width:none;padding:0;margin-inline:auto;
  }
  #jel-hero-3d.jbh .jbh__brand{position:absolute;inset:0;display:block;width:100%;height:100%;align-self:auto}
  #jel-hero-3d.jbh .jbh__brand .jbh__letters{position:absolute;font-size:24.7cqw;line-height:.8}
  #jel-hero-3d.jbh .jbh__brand .jbh__letters--studio{font-size:14.5cqw}
  #jel-hero-3d.jbh .jbh__art #jel-hero-title{position:absolute;inset:4% auto auto 37%;width:39%;text-align:center}
  #jel-hero-3d.jbh .jbh__portrait{position:absolute;inset:auto auto 0 23%;width:30%;height:46%}
  #jel-hero-3d.jbh .jbh__offer{position:absolute;inset:auto auto 10% 2.2%;width:23%;max-width:none}
  #jel-hero-3d.jbh .jbh__offer>i{margin-block:1cqw}
  #jel-hero-3d.jbh .jbh__film{position:absolute;inset:10% 2.8% auto auto;width:20.5%;margin:0}
  #jel-hero-3d.jbh .jbh__letter{
    position:absolute;inset:auto 3.3% 6% auto;width:31%;
    margin:0;padding:1.2cqw 1.55cqw .75cqw;transform:rotate(-7deg);
  }
  #jel-hero-3d.jbh .jbh__letter h2{margin:.2em 0 .35em!important}
  #jel-hero-3d.jbh .jbh__signature{left:2.2%;bottom:2.4%}
}

@media(min-width:761px) and (max-height:690px){
  #jel-hero-3d.jbh .jbh__brand .jbh__letters{left:2.2%;top:5%;font-size:19.6cqw}
  #jel-hero-3d.jbh .jbh__brand .jbh__letters--studio{left:30%;top:39%;font-size:11.7cqw}
  #jel-hero-3d.jbh .jbh__offer{width:27%;bottom:10.5%}
  #jel-hero-3d.jbh .jbh__portrait{left:29%;width:28%}
  #jel-hero-3d.jbh .jbh__film{top:4%;width:20%}
  #jel-hero-3d.jbh .jbh__letter{width:34%;padding:1.05cqw 1.4cqw .65cqw}
  #jel-hero-3d.jbh .jbh__letter h2{text-wrap:wrap}
  #jel-hero-3d.jbh .jbh__letter p{max-width:85%}
}
@media(min-width:761px) and (max-height:630px){
  #jel-hero-3d.jbh .jbh__letter p{display:none}
}

@media(max-width:760px){
  #jel-hero-3d.jbh{--jbh-nav:64px;--jbh-media:clamp(80px,16svh,146px)}
  #jel-hero-3d.jbh .jbh__art{
    width:100%;max-width:610px;padding:clamp(8px,1.8svh,16px) var(--j26-gutter,16px) 14px;
    grid-template-columns:minmax(0,1fr) minmax(0,.83fr);grid-template-rows:auto;
    grid-template-areas:"brand brand" "title title" "portrait film" "offer offer" "letter letter";
    gap:clamp(6px,1.5svh,12px) 10px;
  }
  #jel-hero-3d.jbh .jbh__brand{grid-area:brand;gap:.17em}
  #jel-hero-3d.jbh .jbh__brand :is(.jbh__letters,.jbh__letters--studio){font-size:clamp(38px,16cqw,64px);line-height:.83}
  #jel-hero-3d.jbh .jbh__art #jel-hero-title{grid-area:title;width:100%;text-align:left}
  #jel-hero-3d.jbh #jel-hero-title :is(span,em){display:inline;padding:0}
  #jel-hero-3d.jbh .jbh__portrait{
    position:relative;inset:auto;grid-area:portrait;align-self:end;
    margin:0;width:100%;height:var(--jbh-media);
  }
  #jel-hero-3d.jbh .jbh__halo{inset:7% 8% -66%}
  #jel-hero-3d.jbh .jbh__film{
    grid-area:film;position:relative;inset:auto;align-self:center;justify-self:center;
    width:min(94%,calc(var(--jbh-media) * 1.46));max-width:210px;margin:0;transform:rotate(4deg);
  }
  #jel-hero-3d.jbh .jbh__offer{grid-area:offer;width:100%;max-width:none}
  #jel-hero-3d.jbh .jbh__offer h2 br,#jel-hero-3d.jbh .jbh__offer>i{display:none}
  #jel-hero-3d.jbh .jbh__offer h2{margin:.1em 0 .25em!important}
  #jel-hero-3d.jbh .jbh__letter{grid-area:letter;inset:auto;padding:10px 12px 6px;margin:0;transform:rotate(-1deg)}
  #jel-hero-3d.jbh .jbh__letter h2{max-width:100%;margin:.15em 0 .25em!important}
  #jel-hero-3d.jbh .jbh__letter p{max-width:calc(100% - 44px)}
  #jel-hero-3d.jbh .jbh__seal-zone{width:39px;right:3%;bottom:9px}
}

@media(max-width:760px) and (max-height:740px){
  #jel-hero-3d.jbh .jbh__letter p{display:none}
  #jel-hero-3d.jbh .jbh__letter{padding-block:6px 3px}
}

@media(max-width:760px) and (max-height:620px){
  #jel-hero-3d.jbh{--jbh-media:clamp(66px,14svh,91px)}
  #jel-hero-3d.jbh .jbh__art{padding-block:6px;row-gap:4px}
  #jel-hero-3d.jbh .jbh__offer .jbh__eyebrow,
  #jel-hero-3d.jbh .jbh__letter h2{display:none}
  #jel-hero-3d.jbh .jbh__letter>small{display:block}
}

@media(max-width:360px){
  #jel-hero-3d.jbh{--jbh-nav:84px}
  #jel-hero-3d.jbh .jbh__seal-zone{right:54px}
}
