/* First pass for North's Car Clubs page. The wrapper also scopes Gutenberg styles. */

.tf-car-clubs .tf-clubs-intro,
.tf-car-clubs .tf-clubs-story,
.tf-car-clubs .tf-clubs-process-summary {
  align-items: center !important;
}

.tf-car-clubs .tf-clubs-intro-media img {
  border-radius: 0.3rem;
}

.tf-car-clubs .tf-clubs-booking-cards {
  gap: 1.5rem;
  margin-top: 1.75rem;
  align-items: stretch !important;
}

.tf-car-clubs .tf-clubs-story ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.tf-car-clubs .tf-clubs-story li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.tf-car-clubs .tf-clubs-story .wp-block-image {
  width: 100%;
  max-width: none;
}

.tf-car-clubs .tf-clubs-story .wp-block-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.tf-car-clubs .tf-clubs-steps {
  display: grid;
  gap: 1.25rem 2rem;
  margin: 1.75rem 0 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: club-step;
}

.tf-car-clubs .tf-clubs-steps > li {
  position: relative;
  min-width: 0;
  padding: 0 0 0.75rem 3.25rem;
  counter-increment: club-step;
}

.tf-car-clubs .tf-clubs-steps > li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--clubs-accent);
  color: #202020;
  font-weight: 700;
  content: counter(club-step);
}

.tf-car-clubs .tf-clubs-steps > li > strong:first-child {
  display: block;
  margin-bottom: 0.3rem;
}

.tf-car-clubs .tf-clubs-process-summary {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #f5f5f5;
}

/* Ultimate Blocks checks for zero height before marking a panel closed. */

@media (min-width: 900px) {
  .tf-car-clubs .tf-clubs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tf-car-clubs .tf-clubs-intro > .wp-block-column:first-child,
  .tf-car-clubs .tf-clubs-story > .wp-block-column:has(h2) {
    flex-grow: 1.25;
  }
}

@media (max-width: 899px) {

  .tf-car-clubs .tf-clubs-intro-media {
    max-width: 640px;
  }

  .tf-car-clubs .tf-clubs-story .wp-block-image {
    max-width: 560px;
    margin: 0 auto;
  }

  .tf-car-clubs .tf-clubs-story .wp-block-image img {
    max-height: 440px;
    aspect-ratio: 4 / 3;
  }
}
