#community .stage.community {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: #f5f4ee;
  background: #080809;
  --gallery-gutter: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
}
#community .stage-header { display: none; }
.community-gallery-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.community-gallery-photo img {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
}
.community-gallery-photo::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: max(75px, 13cqh);
  background: linear-gradient(to bottom, rgb(5 5 6 / .35), transparent);
}
#community .community-shade { display: none; }
#community .community-copy {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-content: end;
  align-items: end;
  justify-content: start;
  gap: clamp(24px, 4vw, 110px);
  padding: clamp(16px, 2.8cqh, 42px) var(--gallery-gutter) max(clamp(19px, 3.3cqh, 52px), env(safe-area-inset-bottom));
}
#community .community-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: max(-20cqh, -215px) 0 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgb(4 4 5 / .15) 20%, rgb(4 4 5 / .57) 53%, rgb(4 4 5 / .85));
}
#community .community-copy h2 {
  position: static;
  grid-area: auto;
  align-self: end;
  justify-self: stretch;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}
#community .community-copy h2 img {
  width: min(100%, 39cqw, 76cqh);
  height: auto;
  filter: brightness(0) invert(1);
}
#community .community-copy .community-prose {
  grid-area: auto;
  align-self: end;
  box-sizing: border-box;
  width: 100%;
  max-width: 41ch;
  margin: 0;
  padding: 0;
  color: #dfdfda;
  font-size: clamp(15px, min(1.48cqw, 2.5cqh), 30px);
  line-height: 1.27;
}
#community .community-copy .desktop-copy { display: block; }
#community .community-copy .mobile-copy { display: none; }
#community .community-copy .community-invitation { color: #fff; }
#community .community-invitation a:hover { color: var(--signal); }
@media (orientation: portrait) {
  #community .community-copy {
    grid-template-columns: 1fr;
    align-content: end;
    gap: clamp(10px, 1.8cqh, 24px);
    padding: clamp(15px, 2.5cqh, 30px) max(var(--gallery-gutter), 19px) max(clamp(17px, 3cqh, 42px), env(safe-area-inset-bottom));
  }
  #community .community-copy h2 img { width: min(86%, 44cqh, 570px); }
  #community .community-copy .desktop-copy { display: none; }
  #community .community-copy .mobile-copy {
    display: block; max-width: 45ch; padding: 0;
    font-size: clamp(14px, min(3.8cqw, 2.25cqh), 23px); line-height: 1.29;
  }
  #community .community-copy .community-invitation { margin-top: .62em; }
}
@media (orientation: landscape) and (max-height: 500px) {
  #community .community-copy {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 20px;
    padding-block: 9px max(11px, env(safe-area-inset-bottom));
  }
  #community .community-copy h2 img { width: min(100%, 72cqh); }
  #community .community-copy .desktop-copy { display: block; max-width: 49ch; font-size: 13px; line-height: 1.19; }
  #community .community-copy .mobile-copy { display: none; }
  #community .community-invitation { margin-block-start: .45em; }
}
html:lang(ja) #community .community-copy .community-prose { line-height: 1.44; }

/* The copy sets the height of both columns; the lettering keeps its aspect ratio. */
@media (min-aspect-ratio: 21/9) and (min-height: 501px) {
  #community .community-copy {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(40px, 5cqw, 230px);
    align-items: stretch;
  }
  #community .community-copy h2 { position: relative; align-self: stretch; }
  #community .community-copy h2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left bottom;
  }
  #community .community-copy .desktop-copy {
    max-width: 46ch;
    color: #f5f4ee;
    font-size: clamp(22px, min(1.42cqw, 3.75cqh), 80px);
    line-height: 1.17;
  }
  html:lang(ja) #community .community-copy .desktop-copy {
    max-width: 32em;
    line-height: 1.28;
  }
}

#community [data-photo-only] .community-copy,
#community [data-photo-only] .community-gallery-photo::after { visibility: hidden; }
html:has(#community [data-photo-only]) :is(.screening-logo, #chapters) { visibility: hidden; }
