/* Cover column. Load after 10-wordmark.css. */

/* Cover: mural fills the open space left of Lauren and above her head, then fades into the paper. */

main.hero .room {
  align-items: stretch;
}

main.hero .wall.field-fade {
  width: auto;
  max-width: none;
  margin: 0;
  background: transparent;
}

main.hero .wall.field-fade img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 72% 46%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 14%, rgba(0, 0, 0, 0.72) 28%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 14%, rgba(0, 0, 0, 0.72) 28%, #000 42%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

@media (min-width: 801px) {
  main.hero .room {
    grid-template-columns: minmax(22rem, 1.15fr) minmax(18rem, 34vw);
    column-gap: 0;
    min-height: 0;
  }

  main.hero .card {
    align-self: center;
    padding-right: clamp(1rem, 3vw, 2.5rem);
    z-index: 2;
  }

  main.hero .card {
    align-items: flex-start;
    text-align: left;
  }

  main.hero .card .display {
    max-width: 14ch;
    margin-inline: 0;
    text-align: left;
  }

  main.hero .card .page-actions {
    order: 4;
    justify-content: flex-start;
    margin-top: 1.15rem;
  }

  main.hero .wall.field-fade {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    width: 100%;
    aspect-ratio: 1034 / 1551;
    max-height: calc(100vh - 7.5rem);
    min-height: 0;
    margin-right: calc(-1 * clamp(1.25rem, 4vw, 4.5rem));
  }

  main.hero .wall.field-fade img {
    object-fit: cover;
    object-position: center 42%;
    height: 100%;
    max-height: calc(100vh - 7.5rem);
  }
}

@media (max-width: 800px) {
  main.hero .wall.field-fade {
    order: 1;
    width: calc(100% + 2 * clamp(1.25rem, 4vw, 4.5rem));
    max-width: none;
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 4.5rem));
    min-height: 0;
  }

  main.hero .wall.field-fade img {
    height: min(22rem, 52vh);
    max-height: min(22rem, 52vh);
    object-position: center 40%;
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, #000 8%, #000 88%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image:
      linear-gradient(180deg, transparent 0%, #000 8%, #000 88%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  main.hero .card {
    order: 2;
  }
}

.site-header .wordmark img,
body:has(main.hero) .site-header .wordmark img {
  transform: none;
}
