:root {
  --portfolio-font: "Segoe UI", system-ui, sans-serif;
  --portfolio-title-weight: 640;
  --portfolio-title-tracking: -.065em;
}

.cover-frame { container-type: size; }
.photograph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 50%);
  user-select: none;
  pointer-events: none;
}
.photograph[data-portrait] { object-fit: contain; }
.edge-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(11 15 19 / 76%), transparent 33%, transparent 72%, rgb(11 15 19 / 68%)),
    linear-gradient(var(--shade-direction, 90deg), rgb(11 15 19 / 34%), transparent 42%);
  transition: opacity 450ms ease;
}
[data-shade="right"] { --shade-direction: 270deg; }

.cover-text-area {
  position: absolute;
  inset: clamp(64px, 13cqh, 120px) max(48px, 4cqw) max(78px, 12cqh);
  pointer-events: none;
}
.series-info {
  --title-indent: clamp(36px, 5cqw, 100px);
  position: absolute;
  inset: var(--cover-text-y, 100%) auto auto var(--cover-text-x, 8%);
  inline-size: max-content;
  max-inline-size: 100%;
  transform: translate(calc(-1 * var(--cover-text-x, 8%)), calc(-1 * var(--cover-text-y, 100%)));
  text-shadow: 0 2px 4px rgb(0 0 0 / 65%), 0 4px 22px rgb(0 0 0 / 48%);
}
.series-name {
  display: block;
  font-size: calc(var(--cover-headline-size, 135) * 100cqw / var(--cover-headline-reference, 1600));
  font-weight: var(--portfolio-title-weight);
  letter-spacing: var(--portfolio-title-tracking);
  line-height: .9;
}
.series-name > span {
  display: block;
  padding-inline-start: var(--title-indent);
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}
.series-name > span:first-child { text-indent: calc(-1 * var(--title-indent)); }
.series-info .caption {
  display: block;
  max-inline-size: 34ch;
  margin: clamp(14px, 1.25cqw, 24px) 0 0 var(--title-indent);
  font-size: clamp(14px, 1.25cqw, 20px);
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.series-info .caption:empty { display: none; }

.cover-frame[data-cover-device="mobile"] .photograph { object-fit: cover; object-position: center; }
.cover-frame[data-cover-device="mobile"] .edge-shade {
  background: linear-gradient(180deg, rgb(8 11 13 / 65%), transparent 29%, transparent 72%, rgb(8 11 13 / 62%));
}
.cover-frame[data-cover-device="mobile"] .cover-text-area {
  inset: min(106px, 28cqh) max(38px, 6cqw) min(88px, 20cqh);
}
.cover-frame[data-cover-device="mobile"] .series-info {
  --title-indent: clamp(14px, 5.5cqw, 36px);
}
.cover-frame[data-cover-device="mobile"] .caption { margin-top: 11px; font-size: clamp(12px, 3.6cqw, 16px); }
