.specialties-main {
  color: var(--navy);
  background: var(--ivory);
}
.specialties-hero {
  min-height: clamp(25rem, 66svh, 42rem);
  display: grid;
  place-items: center;
  padding: clamp(7rem, 15vh, 10rem) 1.25rem 4rem;
  background: linear-gradient(rgba(9, 31, 49, .48), rgba(9, 31, 49, .58)), url('/images/og-share.jpg') center 54% / cover no-repeat #183852;
  color: #fff;
  text-align: center;
}
.specialties-hero-copy { max-width: 65rem; }
.specialties-hero h1 { font-size: clamp(2.85rem, 6.7vw, 5.75rem); text-wrap: balance; }
.specialties-hero p { margin: 1rem 0 0; font-size: clamp(1rem, 2.2vw, 1.25rem); }
.specialties-overview {
  padding: clamp(2.8rem, 6vw, 5.5rem) 1.25rem clamp(2rem, 5vw, 4.5rem);
  text-align: center;
}
.specialties-overview h2, .specialty h2 {
  font-size: clamp(2.15rem, 3.9vw, 3.85rem);
  text-wrap: balance;
}
.specialties-overview p { max-width: 40rem; margin: 1rem auto 0; }
.specialties-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.75rem;
  margin: 1.7rem auto 0;
}
.specialties-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  border-bottom: 1px solid #a9bed1;
  font-weight: 700;
  text-decoration: none;
}
.specialties-jump a:hover { border-color: currentColor; }
.specialties-main a:focus-visible { outline: 2px solid #305b83; outline-offset: 4px; }
.specialties-list {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  width: min(100% - 2.5rem, 72rem);
  margin: 0 auto;
  padding-bottom: clamp(2.8rem, 7vw, 6.75rem);
}
.specialty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #edf4f8;
  scroll-margin-top: 1rem;
}
.specialty:nth-child(even) { background: #f4f7f8; }
.specialty:nth-child(even) .specialty-photo { order: 1; }
.specialty-photo { min-width: 0; }
.specialty-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 19rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.specialty-copy { align-self: center; min-width: 0; padding: clamp(1.5rem, 4.7vw, 4rem); }
.specialty-copy p { margin: .85rem 0 0; line-height: 1.55; }
.specialty-copy .specialty-lead { color: #325c7d; font-weight: 700; }
.specialty-copy .button { margin-top: 1.4rem; white-space: normal; }
@media (max-width: 700px) {
  .specialty { grid-template-columns: minmax(0, 1fr); }
  .specialty:nth-child(even) .specialty-photo { order: initial; }
  .specialty-photo img { min-height: 0; aspect-ratio: 4 / 3; }
  .specialties-jump { column-gap: 1.15rem; }
}
@media (max-width: 400px) {
  .specialties-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 21rem; }
  .specialties-jump a { justify-content: center; }
}

.specialties-wordmark img {
  display: block;
  width: min(100%, 54rem);
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  margin-inline: auto;
}

.specialty-heading img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4.3 / 1;
  object-fit: cover;
  object-position: left center;
}
.specialties-overview .specialty-heading img {
  width: min(100%, 42rem);
  margin-inline: auto;
}
#cruises-title img, #tours-title img { aspect-ratio: 7.5 / 1; }
#hotels-and-resorts-title img { aspect-ratio: 5.5 / 1; }

/* Compensate for the transparent leading space in each 900 px heading graphic. */
.specialty-copy .specialty-heading img {
  transform: translateX(calc(-100% * var(--heading-inset, 0) / 900));
}
#cruises-title { --heading-inset: 16; }
#hotels-and-resorts-title { --heading-inset: 15; }
#tours-title { --heading-inset: 13; }
#custom-journeys-title { --heading-inset: 14; }
