/* Wall of Love additions. Uses the original PROVES typefaces, colours and chrome.
   Load after the original shared styles and page-programme.css. */
.wall-page {
  position: relative;
}

.wall-container {
  width: min(1240px, calc(100% - 6rem));
  margin: 0 auto;
}

.wall-hero {
  position: relative;
  padding: 11rem 0 3.5rem;
}

.wall-hero .badge {
  margin-bottom: 1.5rem;
}

.wall-hero h1 {
  max-width: 16ch;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.wall-intro {
  max-width: 65ch;
  margin-top: 1.4rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.wall-section {
  padding: 2.75rem 0 4rem;
}

.wall-section-heading {
  margin-bottom: 2rem;
}

.wall-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.wall-video-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.wall-video-link {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-surface);
}

.wall-video-link > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.wall-play {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--red-vivid);
  color: #fff;
  box-shadow: 0 4px 20px rgba(242, 61, 51, 0.3), 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease-spring), background 0.2s;
}

.wall-play svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.15rem;
}

.wall-video-link:hover .wall-play {
  transform: scale(1.08);
  background: #E5362C;
}

.wall-video-link:hover > img {
  transform: scale(1.025);
}

/* The original Mark portrait includes a white canvas around the photograph.
   Frame the untouched, full-resolution source inside the existing video tile. */
.wall-video-link--portrait > img {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 170%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -42%);
}

.wall-video-link--portrait:hover > img {
  transform: translate(-50%, -42%) scale(1.025);
}

.wall-video-link:focus-visible {
  outline: 3px solid var(--red-vivid);
  outline-offset: -4px;
}

.wall-video-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.4rem 1.4rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.wall-video-card figcaption strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.wall-media-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.wall-quotes-section {
  position: relative;
  padding: 5rem 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wall-quote-grid {
  columns: 3 300px;
  column-gap: 1.5rem;
}

.wall-quote {
  display: inline-flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 1.9rem 1.7rem;
  break-inside: avoid;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(242, 61, 51, 0.05), rgba(242, 61, 51, 0.015)), var(--bg);
  box-shadow: var(--shadow);
}

.wall-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.wall-quote blockquote p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.wall-quote blockquote p + p {
  margin-top: 1em;
}

.wall-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.wall-quote-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* Keep faces centred when a contributor supplied a tall portrait. */
.wall-quote[data-testimonial-id="-N9gXn3dSK0mjTMezsv-"] .wall-quote-avatar {
  object-position: 50% 35%;
}

.wall-quote[data-testimonial-id="-N9fxLnJego2iW0y8TQo"] .wall-quote-avatar {
  object-position: 50% 15%;
}

.wall-quote[data-testimonial-id="-N9fpYpZ8HnbCCxCx6J-"] .wall-quote-avatar {
  object-position: 50% 0%;
}

.wall-quote-attribution {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wall-quote-role {
  display: block;
}

.wall-quote-attachment {
  display: block;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  overflow: hidden;
}

.wall-quote-attachment img {
  display: block;
  width: 100%;
  height: auto;
}

.wall-quote figcaption strong {
  font-weight: 600;
  color: var(--text-primary);
}

.wall-cta {
  padding: 3rem 0 4rem;
}

.wall-cta .cta-banner {
  margin: 0;
}

.wall-cta h2 {
  max-width: 24ch;
}

@media (max-width: 1100px) {
  .wall-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .wall-container {
    width: min(1240px, calc(100% - 3.5rem));
  }
}

@media (max-width: 640px) {
  .wall-container {
    width: calc(100% - 2.5rem);
  }

  .wall-hero {
    padding-top: 13rem;
    padding-bottom: 2rem;
  }

  .wall-hero h1 {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .wall-video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wall-quotes-section {
    padding: 3.5rem 0;
  }

  .wall-quote-grid {
    columns: 1;
  }

  .wall-quote {
    padding: 1.5rem 1.4rem;
  }
}
