.rally-header .logo {
  width: 92px;
}

.rally-header nav {
  display: flex;
  flex-wrap: wrap;
}

.calendar-band {
  background: var(--white);
  border-bottom: 1px solid #5a6a813d;
}

#event-list, #message-list {
  margin-block: 1rem;
}

.entry + .entry {
  margin-top: 1.5rem;
}

.rally-header .rally-logo-button {
  padding: .35rem;
}

.rally-logo-button:hover {
  border-color: var(--mint);
}

main .button {
  max-width: 100%;
  white-space: normal;
}

.grant-photo {
  width: min(100%, 9rem);
  height: auto;
  border-radius: 4px;
  margin: .75rem 0;
}

.rally-feature > img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.rally-resources article {
  background: var(--white);
  padding: 1.2rem;
}

.rally-resources .button {
  margin-top: .5rem;
}

.rally-visit {
  border-top: 1px solid #5a6a813d;
}

.rally-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  padding-block: 2rem;
}

@media (max-width: 600px) {
  .rally-header .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
    padding-block: .75rem 1rem;
  }

  .rally-header nav {
    flex-direction: row;
    gap: .4rem;
  }

  #messages > img {
    order: 1;
  }

  .actions .button {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.rally-hero {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: clamp(18rem, 55vw, 39rem);
  background: var(--ink);
}

.rally-hero::after,
.rally-hero-photo {
  position: absolute;
  inset: 0;
}

.rally-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}

.rally-hero::after {
  content: "";
  background: #181d2470;
  z-index: -1;
}

.rally-hero-logo {
  width: min(58%, 25rem);
  height: auto;
}

.rally-intro {
  background: var(--mint);
  color: var(--ink);
}

.rally-intro-inner {
  padding-block: clamp(2.3rem, 5vw, 4rem);
}

.rally-intro .rule {
  background: var(--ink);
}

.rally-intro h1 {
  margin-bottom: .65rem;
  font-size: clamp(2.35rem, 5.5vw, 5rem);
  text-wrap: pretty;
}

.rally-intro-inner > p:not(.label) {
  max-width: 62ch;
}

.rally-intro .content-button {
  border-color: var(--ink);
}

.rally-gallery {
  border-top: 1px solid #5a6a813d;
}

.rally-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.55rem, 1.6vw, 1.25rem);
  margin-top: 1.5rem;
}

.rally-gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 780px) {
  .rally-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
