/* Shared banner layout */
.pagehead.paired-banner,
.pagehead.media-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #112943;
}

body:has(.priority-panel) .pagehead.banner-priorities {
  background: #112943;
}

/* Priorities, Volunteer, and Contact — one photo on the right */
.banner-priorities {
  --image: url("../assets/img/campaign/town-square.jpeg");
  --position: center bottom;
}

.banner-volunteer {
  --image: url("../assets/img/campaign/community-table.png");
  --position: center 45%;
}

.banner-contact {
  --image: url("../assets/img/campaign/PHOTO-2026-11-20-18-05-26_4.webp");
  --position: center 36%;
}
.banner-media {
  --image: url("../assets/img/campaign/PHOTO-2026-11-20-18-05-26_3.webp");
  --position: center 45%;
}

.paired-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 51%;
  background-color: #435d76;
  background-image:
    linear-gradient(90deg, #112943, transparent 30%),
    radial-gradient(circle, rgb(16 37 58 / 42%) .7px, transparent 1px),
    var(--image);
  background-position: center, center, var(--position);
  background-size: cover, 3px 3px, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-blend-mode: normal, normal, luminosity;
}

.paired-banner .container > * {
  max-width: 53%;
}

.paired-banner h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.7rem);
}

/* Medya — three photos side by side with one fade across the strip */
.media-banner-frames {
  position: absolute;
  inset: 0 0 0 43%;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 3px;
  background: #49617a;
}

.media-banner-frames img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  mix-blend-mode: luminosity;
}

.media-banner-frames::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, #112943, rgb(17 41 67 / 80%) 8%, rgb(17 41 67 / 12%) 52%),
    radial-gradient(circle, rgb(17 41 67 / 40%) .65px, transparent 1px);
  background-size: 100% 100%, 3px 3px;
}

.media-banner .container > * {
  max-width: 46%;
}

/* Phones — move the photo or photo strip below the headline */
@media (max-width: 650px) {
  .pagehead.paired-banner,
  .pagehead.media-banner {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .paired-banner .container,
  .media-banner .container {
    padding-block: 2rem 1rem;
  }

  .paired-banner .container > *,
  .media-banner .container > * {
    max-width: 100%;
  }

  .paired-banner::before {
    position: static;
    order: 1;
    height: clamp(9rem, 38vw, 15rem);
    background-image:
      linear-gradient(#112943, transparent 35%),
      radial-gradient(circle, rgb(16 37 58 / 42%) .7px, transparent 1px),
      var(--image);
  }

  .media-banner-frames {
    position: relative;
    inset: auto;
    z-index: auto;
    order: 1;
    height: clamp(8rem, 34vw, 12rem);
  }

  .media-banner-frames::after {
    background-image:
      linear-gradient(180deg, #112943, transparent 40%),
      radial-gradient(circle, rgb(17 41 67 / 40%) .65px, transparent 1px);
  }
}