.pavilion-lobby:has(> .pv-host-figure) {
  grid-template-columns: clamp(68px, 21%, 370px) minmax(0, 1fr);
  container: pavilion-floor / inline-size;
}

.pv-host-figure {
  grid-area: 1 / 1 / 3 / 2;
  min-width: 0;
  min-height: 0;
  margin-left: var(--browse-left, env(safe-area-inset-left));
  pointer-events: none;
  background: url('/art/showcase/host.webp') center bottom / contain no-repeat;
  filter: drop-shadow(3px 4px 6px #23132073);
}

.pavilion-lobby .pv-host-figure ~ .pv-gallery.grid {
  grid-area: 1 / 2;
  grid-auto-columns: calc((100% - 2.2 * var(--pv-gap)) / 3.12);
  padding-left: clamp(4px, 1.2%, 16px);
  scroll-padding-left: clamp(4px, 1.2%, 16px);
}

.pv-host-figure ~ .pv-pager { grid-area: 2 / 2; }
.pv-host-figure ~ .pv-dock { grid-area: 3 / 1 / 4 / -1; }

@container pavilion-floor (min-width: 1100px) {
  .pavilion-lobby .pv-host-figure ~ .pv-gallery.grid {
    grid-auto-columns: calc((100% - 3.2 * var(--pv-gap)) / 4.12);
  }
}

@container pavilion-floor (max-width: 650px) {
  .pv-host-figure {
    align-self: center;
    height: min(48cqw, 80%);
    background-size: 148% auto;
    background-position: 39% top;
    mask-image: linear-gradient(#000 76%, transparent 100%);
  }
  .pavilion-lobby .pv-host-figure ~ .pv-gallery.grid {
    --pv-gap: clamp(4px, 1.4cqw, 8px);
    grid-auto-columns: calc((100% - 2 * var(--pv-gap)) / 3);
    grid-template-rows: repeat(2, minmax(0, min(45cqw, 46%)));
    align-content: center;
    padding-right: max(6px, env(safe-area-inset-right));
    padding-block: clamp(12px, 5vh, 48px);
    row-gap: clamp(4px, 1.5vh, 14px);
  }
  .pv-host-figure ~ .pv-gallery .tile-title {
    font-size: clamp(12px, 3.1cqw, 17px);
    overflow-wrap: anywhere;
  }
  .pv-host-figure ~ .pv-gallery .pv-capacity {
    font-size: clamp(8px, 2.15cqw, 11px);
    padding-inline: 3px;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rb-venue-host,
  .pv-host-figure {
    /* The portrait provides the card gesture, head tilt and blinking. */
    background-image: url('/art/showcase/host-idle.webp');
    transform-origin: 51% 91%;
    animation: pavilion-host-breathe 3.9s ease-in-out infinite;
  }
}

@keyframes pavilion-host-breathe {
  0%, 100% { scale: 1; rotate: 0deg; }
  44% { scale: 1.008 1.019; rotate: -.48deg; }
}
