/* Keep the main topic and useful links ahead of decorative elements. */
.regional-intro.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.regional-intro::after {
  content: none;
}

.regional-intro h1 {
  font-size: clamp(2.75rem, 6.5vw, 6rem);
  line-height: 1.05;
  margin-block: .2em .35em;
  text-wrap: balance;
}

main .regional-intro p:not(.eyebrow),
main .section-heading p:not(.eyebrow) {
  max-width: 66ch;
}

main .catalog-intro h1,
main .planning-hero h1,
main .contact-editorial-hero h1 {
  text-wrap: balance;
}

main .bird-catalogue > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}

main .bird-catalogue .journey-card-enquire {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 700px) {
  main .bird-catalogue > img {
    max-height: 300px;
  }
}

/* Give the lead photograph its own space instead of placing copy over it. */
main .professional-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 0;
  min-height: 0;
  height: auto;
  max-width: 1600px;
  margin-inline: auto;
  background: #f5efe5;
}

main .professional-hero .home-hero-copy {
  align-self: center;
  width: auto;
  padding: clamp(2.5rem, 6vw, 6.5rem) clamp(1.5rem, 5vw, 5.5rem);
  color: #352518;
}

main .professional-hero .home-hero-copy h1 {
  font-size: clamp(3.75rem, 6.5vw, 7rem);
  color: #352518;
}

main .professional-hero .home-hero-copy > .eyebrow,
main .professional-hero .home-hero-description,
main .professional-hero .home-hero-actions .quiet-link {
  color: #654a33;
}

main .professional-hero .home-hero-actions .button {
  background: #58361f;
  border-color: #58361f;
  color: #fffaf1;
}

main .professional-hero .home-hero-actions .quiet-link {
  border-color: currentColor;
}

main .professional-hero .home-hero-visual {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 100%;
  margin: 0;
  z-index: 0;
}

main .professional-hero .home-hero-visual > img {
  object-position: 57% 58%;
}

main .professional-hero .home-hero-visual::after {
  background: linear-gradient(0deg, #231c16a8, transparent 30%);
}

main .professional-hero .photo-coordinate {
  bottom: 1.25rem;
  font-size: 10px;
}

main .journey-section .section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

main .journey-decision-bar {
  row-gap: 1.25rem;
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
}

@media (max-width: 760px) {
  main .professional-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  main .professional-hero .home-hero-copy {
    padding: 2rem 6% 1.75rem !important;
  }

  main .professional-hero .home-hero-copy h1 {
    font-size: clamp(3.25rem, 11vw, 5rem);
    margin-block: .25em .4em;
  }

  main .professional-hero .home-hero-visual {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  main .journey-decision-bar strong {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }
}

/* A single day label leaves more room for route names on small screens. */
main .day {
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

main .day h3 {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  margin-block: .35rem .75rem;
}

main .day-toggle {
  min-height: 44px;
}

main .day-directory li > a {
  min-height: 0;
}

main .itinerary-hero .hero-image {
  object-position: center 42%;
}

main .editorial-journal {
  padding-top: clamp(1.75rem, 4vw, 3.75rem);
}

main .journal-intro {
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

main .journal-intro h1 {
  font-size: clamp(3rem, 6.6vw, 6rem);
  margin: 0;
  line-height: 1.02;
  text-wrap: balance;
}

main .editorial-journal .photo > .journal-photo-caption {
  min-height: 0;
}

main .editorial-journal > .gallery-grid > .photo[data-category="heritage"] > img {
  object-position: center 38%;
}

@media (max-width: 760px) {
  main .editorial-journal .gallery-controls {
    justify-content: flex-start;
    align-items: end;
    margin-bottom: 1rem;
    padding-top: .9rem;
  }

  main .editorial-journal > .gallery-grid > .photo.is-featured > img {
    aspect-ratio: auto;
    height: auto;
  }

  main .journal-photo-caption strong {
    font-size: clamp(1.125rem, 5vw, 1.4rem);
  }
}

/* Keep tour choices on equal footing across categories. */
main .journey-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

main .journey-catalog > .trip-card:first-child {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main .journey-catalog > .trip-card[hidden] {
  display: none;
}

main .journey-catalog > .trip-card .card-image,
main .journey-catalog > .trip-card:nth-child(n) .card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  flex-shrink: 0;
}

main .journey-catalog .card-image img {
  object-fit: cover;
}

main .journey-catalog .birding-card .card-image img {
  object-position: center 38%;
}

main .journal-category-buttons {
  gap: .35rem clamp(.6rem, 2vw, 1.5rem);
  padding-block: .65rem;
}

main .editorial-journal > .gallery-grid > .photo.is-featured > img {
  object-position: center 58%;
}

@media (max-width: 700px) {
  main .journey-catalog {
    grid-template-columns: minmax(0, 1fr);
  }
}

main .catalog-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: .75rem;
  padding: 1rem;
  background: #eee5d7;
  border: 1px solid #d6c5ae;
}

main .catalog-filters .filter-label {
  min-width: 0;
  width: auto;
  color: #543822;
}

main .catalog-filters select {
  width: 100%;
  min-height: 48px;
  border-color: #a68b72;
  font-size: 16px;
}

main .catalog-filters .reset-trip-filters {
  grid-column: auto;
  margin: 0;
  padding: .5rem .65rem;
  min-height: 48px;
  color: #573c29;
}

main .journey-catalog .card-image[href*="journey=history"] img {
  object-position: center 35%;
}

main .journey-catalog .card-image[href*="journey=trek"] img {
  object-position: 63% center;
}

main .journey-catalog .birding-card .card-image img,
main .editorial-journal .photo[data-photo="assets/owner-batch-003/photo-06.jpg"] img {
  object-position: center 30%;
}

main .journal-category-buttons button {
  padding: .5rem .85rem;
  border: 1px solid #d3bea0;
  border-radius: 999px;
  background: #fbf7ef;
}

main .journal-category-buttons button[aria-pressed="true"] {
  background: #58361f;
  border-color: #58361f;
  color: #fffaf1;
  text-decoration: none;
}

@media (max-width: 760px) {
  main .catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .8rem;
  }

  main .catalog-filters .reset-trip-filters {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 44px;
  }

  main .editorial-journal .gallery-controls label {
    flex: 1;
    max-width: none;
    min-width: 0;
  }

  main .editorial-journal .gallery-controls select {
    width: 100%;
  }
}

main .journey-catalog > .trip-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9c8b4;
  border-radius: 12px;
  background: #fffaf2;
}

main .journey-catalog > .trip-card .card-copy {
  padding: clamp(1rem, 2.3vw, 2rem);
}

main .journey-catalog .journey-card-facts {
  margin-block: .9rem;
}

main .journey-catalog .journey-card-actions {
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: .25rem;
}

main .journey-catalog .journey-card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

main .journey-catalog .card-image[href*="journey=city"] img {
  object-position: center 58%;
}

main .editorial-journal > .gallery-grid {
  gap: clamp(.75rem, 2vw, 1.5rem);
}

main .editorial-journal > .gallery-grid > .photo > img {
  border-radius: 8px;
}

main .editorial-journal .photo > .journal-photo-caption {
  padding: .65rem 0 .9rem;
}

main .editorial-journal .journal-photo-caption strong {
  margin-top: .25rem;
}

main .editorial-journal .photo[data-photo="assets/owner-batch-006/photo-08.jpg"] img {
  object-position: 62% 45%;
}

main .editorial-journal #gallery-count {
  font-size: .75rem;
  color: #654a33;
}

/* Bring the catalog controls and the first row of photos into view sooner. */
main .catalog-intro.section {
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 3.75rem);
  row-gap: 1rem;
}

main .catalog-intro h1 {
  font-size: clamp(3.1rem, 6.3vw, 6rem);
  margin-block: 0;
}

main .catalog-intro + .section {
  padding-top: clamp(1.5rem, 4vw, 3.25rem);
}

main .catalog-intro + .section > .section-heading {
  align-items: center;
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

main .editorial-journal .gallery-controls {
  margin-block: .65rem 1rem;
}

main .editorial-journal > .gallery-grid > .photo[data-photo="assets/owner-batch-005/photo-10.jpg"] img {
  object-position: center 64%;
}

@media (max-width: 760px) {
  main .catalog-intro + .section > .section-heading {
    align-items: start;
    text-align: left;
  }

  main .catalog-intro .catalog-intro-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem 1rem;
  }
}

main #journey-collection {
  scroll-margin-top: 1.5rem;
}

main #filter-status {
  margin-block: 0 .9rem;
  color: #654a33;
}

main .journey-catalog > .trip-card .card-image img {
  position: absolute;
  inset: 0;
}

main .journey-catalog .card-image[href*="journey=history"] img {
  object-position: center 30%;
}

main .editorial-journal .gallery-controls {
  gap: .75rem;
}

main .editorial-journal .gallery-controls select {
  min-width: 0;
}

@media (max-width: 380px) {
  main .catalog-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}

main #ethiopia-collection .trip-grid {
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

main #ethiopia-collection .trip-card {
  min-width: 0;
  border: 1px solid #d9c8b4;
  border-radius: 12px;
  background: #fffaf2;
}

main #ethiopia-collection .card-image {
  aspect-ratio: 16 / 10;
  border-radius: 11px 11px 0 0;
}

main #ethiopia-collection .card-copy {
  padding: clamp(1rem, 2vw, 1.6rem);
}

main :is(#ethiopia-collection, .journey-catalog) .journey-card-actions {
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

main :is(#ethiopia-collection, .journey-catalog) .journey-card-actions a {
  display: inline-flex;
  margin-block: 0;
  padding-block: 0;
  align-items: center;
  min-height: 44px;
}

main #ethiopia-collection .card-image[href*="journey=history"] img {
  object-position: center 30%;
}

main #ethiopia-collection .card-image[href*="journey=trek"] img {
  object-position: 63% center;
}

main #ethiopia-collection .card-image[href*="journey=birding"] img {
  object-position: center 30%;
}

main .editorial-journal .photo[data-photo="assets/owner-batch-003/photo-07.jpg"] img {
  object-position: center 44%;
}

main .editorial-journal .photo[data-photo="assets/owner-batch-007/photo-04.jpg"] img {
  object-position: center 54%;
}

@media (min-width: 761px) and (max-width: 960px) {
  main #ethiopia-collection .trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

main #ethiopia-collection .trip-card {
  display: flex;
  flex-direction: column;
}

main #ethiopia-collection .card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

main #ethiopia-collection .journey-card-actions {
  margin-top: auto;
}

@media (max-width: 760px) {
  main #ethiopia-collection .section-heading {
    align-items: start;
    text-align: left;
    gap: .75rem;
    margin-bottom: 1.25rem;
  }
}

main .journey-catalog .journey-card-actions,
main #ethiopia-collection .journey-card-actions {
  padding-top: .75rem;
}

main .editorial-journal .photo[data-photo="assets/owner-batch-001/photo-04.jpg"] img {
  object-position: center 32%;
}

@media (max-width: 380px) {
  main :is(#ethiopia-collection, .journey-catalog) .journey-card-actions a {
    flex: 0 1 auto;
  }
}

/* Keep the photo filter and count together without pushing the grid down. */
@media (max-width: 760px) {
  main .editorial-journal .gallery-controls {
    flex-direction: row;
    align-items: flex-end;
  }

  main .editorial-journal .gallery-controls #gallery-count {
    max-width: none;
    white-space: nowrap;
    padding-bottom: .65rem;
  }

  main .itinerary-hero .hero-image {
    object-position: 56% center;
  }
}

@media (max-width: 360px) {
  main .editorial-journal .gallery-controls #gallery-count {
    white-space: normal;
    max-width: 4.5rem;
  }
}

/* Legacy gallery rules fix the first tile's height on phones. Let its caption
   participate in grid sizing so the next row cannot cover it. */
main .editorial-journal > .gallery-grid > .photo {
  height: auto !important;
}

main .editorial-journal > .gallery-grid > .photo > .journal-photo-caption {
  flex: none;
}

/* Gallery captions replace the small overlay badge used by other photo grids. */
main .editorial-journal .photo > .journal-photo-caption {
  height: auto;
  line-height: normal;
  overflow-wrap: anywhere;
}

main .catalog-intro.section {
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}

main .journey-catalog .card-image[href*="journey=trek"] img {
  object-position: 63% 64%;
}

main .bird-overview h2 {
  margin: 1.5rem 0 .5rem;
}
main .bird-highlights-lead {
  max-width: 65ch;
}
main .bird-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .75rem;
  margin-block: 1.25rem;
}
main .bird-highlights > div {
  padding: 1rem;
  border: 1px solid #d9c8b4;
  border-radius: .5rem;
  background: #fffaf2;
}
main .bird-highlights dt {
  font-weight: 700;
  margin-bottom: .35rem;
}
main .bird-highlights dd {
  margin: 0;
  line-height: 1.55;
}
main .bird-intro figure img {
  object-position: center 35%;
}
main .journey-catalog .card-image[href*="simien"],
main .journey-catalog .card-image[href*="journey=trek"] {
  background: #e9e0d2;
}
main .editorial-journal .photo[data-photo="assets/owner-batch-005/photo-10.jpg"] img {
  object-position: center 62%;
}

main .tour-highlights {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
main .tour-highlights h2 {
  margin: 0 0 .5rem;
}
main .tour-highlights > p {
  max-width: 65ch;
}
main .city-route-link {
  padding-top: 0;
}
@media (max-width: 760px) {
  main .page-hero .hero-image[alt="Addis Ababa"] {
    object-position: 58% center;
  }
}

main .day-body > p,
main .bird-day > div > p {
  max-width: 68ch;
  line-height: 1.65;
  margin-block: .65rem;
}
main .day-body .day-fact,
main .bird-day > div > .bird-day-note {
  border-inline-start: 2px solid #a58158;
  padding: .55rem .8rem;
  background: #f1e9dd;
}
main .day-photo img {
  border-radius: .5rem;
  object-position: center 42%;
}
main .bird-day summary,
main .day-toggle {
  min-height: 44px;
}

main .journey-catalog .card-copy > h3,
main #ethiopia-collection .card-copy > h3 {
  text-wrap: balance;
}
main .editorial-journal .photo[data-photo="assets/owner-batch-003/photo-07.jpg"] img {
  object-position: center 48%;
}
@media (max-width: 760px) {
  main .business-gateway-heading {
    margin-bottom: 1rem;
  }
  main .journal-intro > div > p:not(.eyebrow) {
    line-height: 1.65;
    margin-bottom: .85rem;
  }
}

main .day-photo {
  margin-block: 1rem .75rem;
}
main .day-photo img {
  display: block;
}
main .proposal-checklist .button {
  min-height: 44px;
}
@media (max-width: 760px) {
  main .proposal-checklist {
    row-gap: 1.25rem;
  }
}

main .journey-catalog .card-image[href*="journey=history"] img,
main #ethiopia-collection .card-image[href*="journey=history"] img {
  object-position: center 28%;
}

main .editorial-journal > .gallery-grid > .photo[data-photo="assets/owner-batch-001/photo-04.jpg"] > img {
  object-position: 45% 33%;
}

main .editorial-journal {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 760px) {
  main .editorial-closing .closing-planning {
    margin-top: 0;
  }
}

main .journey-catalog .card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

main .journey-catalog .journey-card-actions {
  margin-top: auto;
}

main .editorial-journal > .gallery-grid > .photo[data-photo="assets/owner-batch-006/photo-08.jpg"] img {
  object-position: 63% 60%;
}

@media (max-width: 760px) {
  main .journey-catalog .card-copy,
  main #ethiopia-collection .card-copy {
    padding-block: 1rem;
  }
}

@media (min-width: 761px) {
  main .editorial-journal > .gallery-grid > .photo.is-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  main .editorial-journal > .gallery-grid > .photo.is-featured > img {
    aspect-ratio: auto;
    height: auto;
    flex: none;
  }
}

main .catalog-filters .reset-trip-filters:disabled {
  opacity: .55;
  cursor: default;
  text-decoration: none;
}

@media (min-width: 761px) {
  main .catalog-intro.section {
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
  }

  main .catalog-intro + #journey-collection {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
  }
}

main :is(#ethiopia-collection, .journey-catalog) .card-image > .photo-plan {
  left: auto;
  right: 15px;
  background: #54351f;
  color: #fffaf2;
  font-size: .75rem;
  letter-spacing: normal;
}

main .planner-tour-summary:not([hidden]) {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  padding: .75rem;
  margin: 1rem 0;
  border: 1px solid #d9c8b4;
  border-radius: .75rem;
  background: #fffaf2;
}

main .planner-tour-summary img:not([hidden]) {
  width: clamp(72px, 18vw, 160px);
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center 32%;
  border-radius: .45rem;
}

main .planner-tour-summary .eyebrow,
main .planner-tour-summary strong,
main .planner-tour-summary span {
  display: block;
  margin: 0;
}

main .planner-tour-summary span:empty {
  display: none;
}

main .planner-travel-basics {
  align-items: start;
  margin-block: 1rem;
}

main .planner-travel-basics > div {
  min-width: 0;
}

main .planner-travel-basics .choice-inline {
  margin-block: .5rem 0;
}

main #enquiry-review dd {
  overflow-wrap: anywhere;
}
