.ch-intro:has(.channel-banner-img)>.container,.teacher-center .ch-intro:has(.channel-banner-img)>.container{width:calc(100% - 40px);max-width:1320px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.98fr);align-items:center;gap:clamp(24px,4vw,58px)}
.channel-banner-link{display:block;width:100%;max-width:640px;justify-self:end;line-height:0;border-radius:8px;overflow:hidden}
.channel-banner-link:focus-visible{outline:3px solid #ffc163;outline-offset:4px}
.ch-intro img.channel-banner-img,.hero-photo img.channel-banner-img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;margin:0}
.hero-photo:has(.channel-banner-img){height:auto;min-height:0;padding:0;overflow:hidden}.hero-photo .channel-banner-link{max-width:none}
@media(max-width:760px){.ch-intro:has(.channel-banner-img)>.container,.teacher-center .ch-intro:has(.channel-banner-img)>.container{grid-template-columns:1fr;width:calc(100% - 32px);gap:18px}.channel-banner-link{max-width:600px;justify-self:start}}
@media(min-width:761px){
.ch-intro:has(.channel-banner-img)>.container>.channel-banner-link,.teacher-center .ch-intro:has(.channel-banner-img)>.container>.channel-banner-link{position:relative;align-self:stretch;min-height:0;width:100%;max-width:none;overflow:visible}
.ch-intro .channel-banner-link>img.channel-banner-img{position:absolute;inset:0 0 0 auto;width:auto;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:right center;border-radius:6px}
.hero-photo:has(>.channel-banner-link){position:relative;align-self:stretch;min-height:0}
.hero-photo>.channel-banner-link{position:absolute;inset:0;height:100%;width:100%;max-width:none}
.hero-photo .channel-banner-link>img.channel-banner-img{height:100%;width:100%;object-fit:contain;object-position:right center}
}
@media(max-width:760px){.ch-intro .channel-banner-link{width:100%;max-width:480px}.ch-intro .channel-banner-img{width:100%;height:auto}}
