/* Shared responsive poster height; align artwork to preserve its subject. */
.page-poster {
  --poster-height: max(210px, 18vw);
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #121212, var(--poster-edge), #121212);
}

.poster-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.poster-art {
  display: block;
  width: 100%;
  height: var(--poster-height);
  object-fit: cover;
  object-position: var(--poster-focus, center);
}

.page-poster--subject-left { --poster-focus: left center; }
.page-poster--subject-right { --poster-focus: right center; }

.poster-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 28%, rgba(0, 0, 0, .30) 58%);
}

.page-poster--subject-right .poster-stage::after {
  background: linear-gradient(270deg, transparent 28%, rgba(0, 0, 0, .30) 58%);
}

.poster-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 80%;
  padding: 16px clamp(24px, 3vw, 48px);
  transform: translate(-50%, -50%);
  color: #fffaf0;
  text-align: center;
  overflow-wrap: anywhere;
}

.page-poster .poster-copy h1 {
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.page-poster .poster-copy p {
  margin: 0;
  color: inherit;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  text-wrap: pretty;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

.page-poster .breadcrumbs { margin: 0 0 12px; }

.page-poster .breadcrumb {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 250, 240, .20);
  background: rgba(0, 0, 0, .20);
  color: inherit;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  vertical-align: top;
}

.page-poster .breadcrumb > li,
.page-poster .breadcrumb > li > a,
.page-poster .breadcrumb > li + li::before { color: inherit; }

@media (max-width: 1100px) {
  .page-poster { --poster-height: clamp(180px, 22vw, 240px); }
  .page-poster .poster-copy { width: 92%; padding: 16px 18px; }
  .page-poster .poster-copy .breadcrumbs { display: none; }

  .page-poster .poster-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3.8vw, 36px);
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 2px 6px #000, 0 0 18px rgba(0, 0, 0, .85);
  }

  .page-poster .poster-copy p {
    max-width: 44em;
    margin: 0 auto;
    color: rgba(255, 250, 240, .88);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .85);
  }
}

@media (max-width: 767px) {
  .page-poster { --poster-height: 160px; }
  .poster-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'art';
  }
  .poster-art { grid-area: art; align-self: center; }

  .page-poster .poster-stage::after {
    display: block;
    background: linear-gradient(90deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .44), rgba(0, 0, 0, .16));
  }

  .page-poster .poster-copy {
    display: block;
    grid-area: art;
    align-self: center;
    position: relative;
    inset: auto;
    width: 100%;
    padding: 16px 18px;
    transform: none;
  }

  .page-poster .poster-copy h1 {
    margin: 0 0 8px;
    padding: 0;
    font-size: clamp(22px, 6vw, 26px);
    line-height: 1.3;
  }

  .page-poster .poster-copy p {
    display: block;
    min-height: 0;
    max-width: 36em;
    margin: 0 auto;
    padding: 0;
    background: none;
    color: rgba(255, 250, 240, .88);
    font-size: 12.5px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .85);
  }

  .page-poster + .blog-post { padding-top: 32px; }
}

@media print {
  .poster-art, .poster-stage::after { display: none; }
  .page-poster { background: white; }
  .page-poster .poster-copy {
    position: static;
    width: 100%;
    padding: 20px 0;
    transform: none;
    background: white;
    color: black;
  }
  .page-poster .poster-copy h1, .page-poster .poster-copy p { text-shadow: none; }
}
