/* The national wedding pages inherit the shared service design.
   Only portrait photography and wedding enquiry additions live here. */
body[data-wedding-stories]:not(.city-service-page) :is(#booking, #wedding-day, #wedding-vehicles, #wedding-plan) {
  scroll-margin-top: 6rem;
}

body[data-wedding-stories]:not(.city-service-page) .service-hero__title {
  white-space: normal;
  overflow-wrap: normal;
  hyphens: none;
}

body[data-wedding-stories]:not(.city-service-page) .wedding-hero-copy {
  margin: 0;
  max-width: 42ch;
  color: rgba(15, 21, 32, 0.68);
  font-size: 1rem;
  line-height: 1.5;
}

body[data-wedding-stories]:not(.city-service-page) .service-hero__media img {
  object-position: center 20%;
}

body[data-wedding-stories]:not(.city-service-page) .service-breadcrumb__area-link {
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body[data-wedding-stories]:not(.city-service-page) .wedding-story-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #0a2342;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

body[data-wedding-stories]:not(.city-service-page) .wedding-story-link:hover {
  color: #2e6eb5;
}

/* Longer wedding copy must not let intrinsic square sizing spill into text. */
body[data-wedding-stories]:not(.city-service-page) .service-story__media {
  min-width: 0;
  width: 100%;
}

body[data-wedding-stories]:not(.city-service-page) .service-story__media--guests img {
  object-position: center bottom;
}

body[data-wedding-stories]:not(.city-service-page) .wedding-hourly-total {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding: 0.85rem 0;
  border-block: 1px solid rgba(10, 35, 66, 0.14);
  color: #0a2342;
}

body[data-wedding-stories]:not(.city-service-page) .wedding-hourly-total[hidden] {
  display: none;
}

body[data-wedding-stories]:not(.city-service-page) .wedding-hourly-total__label {
  font-size: 0.8rem;
  font-weight: 650;
}

body[data-wedding-stories]:not(.city-service-page) .wedding-hourly-total__amount {
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

body[data-wedding-stories]:not(.city-service-page) :is(.wedding-hourly-total__formula, .wedding-hourly-total__note) {
  color: #526071;
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (min-width: 960px) {
  body[data-wedding-stories]:not(.city-service-page) .service-hero__media {
    height: clamp(29rem, 36vw, 35rem);
  }

  /* Let the extra vehicle selector and estimate contribute to hero height. */
  body[data-wedding-stories]:not(.city-service-page) .service-hero__heading {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-wedding-stories]:not(.city-service-page) .service-hero__media {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-wedding-stories]:not(.city-service-page) .service-hero__booking {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    justify-self: end;
    margin: clamp(1.55rem, 2.5vw, 2.35rem) max(calc((100vw - 1200px) / 2), 1.25rem) 1.5rem 0;
  }
}

@media (max-width: 959px) {
  body[data-wedding-stories]:not(.city-service-page) .service-story__media--couple img {
    object-position: center top;
  }

  /* End just below the shoes so the booking form enters the first screen. */
  body[data-wedding-stories]:not(.city-service-page) .service-hero__media {
    height: calc(75vw + 2.5rem);
    min-height: 0;
    aspect-ratio: auto;
  }

  body[data-wedding-stories]:not(.city-service-page) .service-hero__media img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  body[data-wedding-stories]:not(.city-service-page) .service-hero__booking .hero-form {
    padding-bottom: clamp(1.15rem, 4vw, 1.5rem);
  }

  /* Keep the action with the wedding fields and live price, clear of the viewport. */
  body[data-wedding-stories]:not(.city-service-page) .service-hero__booking .hero-form__submit {
    display: flex;
    margin-top: 0.75rem;
  }

  body[data-wedding-stories]:not(.city-service-page) .service-breadcrumb__area-link {
    flex-basis: 100%;
    margin-left: 0;
  }
}
