/* ==========================================================================
   Room — a portrait, mounted and lit like the work.

   No top padding collapse trickery and no rule: when this follows `corridor`
   the two share a ground and read as one space, which is the point.
   ========================================================================== */

.wl-room {
  position: relative;
  overflow: hidden;
  padding-block: var(--wl-space-section);
}

/*
 * The site's mark, enormous and almost out, the way the beach names sit
 * behind the wall.
 */
.wl-room__ghost {
  position: absolute;
  z-index: 0;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(74vw, 980px);
  opacity: 0.045;
  pointer-events: none;
}

.wl-room__ghost svg,
.wl-room__ghost img {
  width: 100%;
  height: auto;
}

.wl-room__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wl-container-wide);
  margin-inline: auto;
  padding-inline: var(--wl-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wl-space-xl);
  align-items: center;
}

@media (min-width: 56em) {
  .wl-room__wrap {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5.375rem);
  }
}

/* The same mat and drop the paintings have, because she is on the wall too. */
.wl-room__mount {
  margin: 0;
  padding: clamp(10px, 1.1vw, 22px);
  background: rgb(0 0 0 / 42%);
  box-shadow: 0 34px 64px -26px rgb(0 0 0 / 80%);
  transition: transform 700ms var(--wl-ease);
}

.wl-room:hover .wl-room__mount { transform: translateY(-4px); }

.wl-room__frame {
  position: relative;
  overflow: hidden;
  background: rgb(0 0 0 / 55%);
}

.wl-room__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.wl-room__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 12%) 0%,
    rgb(255 255 255 / 0%) 34%,
    rgb(0 0 0 / 16%) 72%,
    rgb(0 0 0 / 50%) 100%
  );
}

.wl-room__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wl-room__rule {
  width: 46px;
  height: 2px;
  background: var(--wl-highlight);
}

.wl-room__kicker {
  margin-top: var(--wl-space-md);
  font-size: var(--wl-text-xs);
  letter-spacing: var(--wl-tracking-wide);
  text-transform: uppercase;
  color: var(--wl-highlight);
}

.wl-room__quote {
  margin-top: var(--wl-space-lg);
  font-family: var(--wl-font-display);
  font-weight: 400;
  font-size: var(--wl-text-3xl);
  line-height: 1;
  letter-spacing: var(--wl-tracking-tight);
  text-transform: uppercase;
  /* On the quote, where `ch` is measured in the font being limited. */
  max-width: 19ch;
}

/* The turn lands on its own line, in italic, the way the pylons break. */
.wl-room__quote em {
  display: block;
  font-style: italic;
  text-transform: none;
  color: var(--wl-on-ink-soft);
}

.wl-room__name {
  margin-top: var(--wl-space-lg);
  font-family: var(--wl-font-display);
  font-size: var(--wl-text-xl);
  letter-spacing: -0.01em;
}

.wl-room__line {
  margin-top: var(--wl-space-sm);
  max-width: 44ch;
  font-size: var(--wl-text-base);
  color: var(--wl-on-ink-soft);
}

.wl-room__cta { margin-top: var(--wl-space-xl); }

@media (prefers-reduced-motion: reduce) {
  .wl-room__mount { transition: none; }
}
