/* V37: centered gallery album filters and restored horizontal past-tour rows. */

/* Gallery album names centered on desktop and mobile. */
.gallery-album-section .tour-album-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  width:100%!important;
  margin:0 auto 24px!important;
  padding:4px 0 8px!important;
  overflow:visible!important;
  text-align:center!important;
}
.gallery-album-section .tour-album-nav a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  width:auto!important;
  margin:0!important;
  padding:10px 16px!important;
  text-align:center!important;
}

/* Desktop: one attractive horizontal row per completed tour. */
.page-past-tours .past-tour-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-content:stretch!important;
  align-items:stretch!important;
  gap:26px!important;
  width:100%!important;
  max-width:1240px!important;
  margin:30px auto 0!important;
}
.page-past-tours .tour-record,
.page-past-tours .tour-record:nth-of-type(even){
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:16px!important;
}
.page-past-tours .tour-record-photo-link,
.page-past-tours .tour-record:nth-of-type(even) .tour-record-photo-link{
  display:grid!important;
  grid-template-columns:minmax(300px,38%) minmax(0,1fr)!important;
  min-height:300px!important;
  height:100%!important;
  align-items:stretch!important;
}
.page-past-tours .tour-record:nth-of-type(even) .tour-record-photo-link{
  grid-template-columns:minmax(0,1fr) minmax(300px,38%)!important;
}
.page-past-tours .tour-record-media{
  width:100%!important;
  height:100%!important;
  min-height:300px!important;
  order:1!important;
}
.page-past-tours .tour-record:nth-of-type(even) .tour-record-media{
  order:2!important;
}
.page-past-tours .tour-record-copy,
.page-past-tours .tour-record>div,
.page-past-tours .tour-record:nth-of-type(even)>div{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  order:2!important;
  padding:32px 38px!important;
  text-align:left!important;
}
.page-past-tours .tour-record:nth-of-type(even) .tour-record-copy{
  order:1!important;
}
.page-past-tours .tour-record-copy .eyebrow{
  align-self:flex-start!important;
}
.page-past-tours .tour-record-copy h2{
  max-width:620px!important;
  margin:0 0 11px!important;
  font-size:clamp(1.65rem,2.2vw,2.15rem)!important;
  line-height:1.12!important;
  text-align:left!important;
}
.page-past-tours .tour-record-copy p{
  max-width:760px!important;
  margin:0 0 17px!important;
  font-size:.98rem!important;
  line-height:1.65!important;
  text-align:left!important;
}
.page-past-tours .record-stats{
  display:flex!important;
  flex-wrap:wrap!important;
  grid-template-columns:none!important;
  justify-content:flex-start!important;
  gap:9px!important;
  width:100%!important;
  margin-top:0!important;
}
.page-past-tours .record-stats span{
  width:auto!important;
  max-width:100%!important;
  padding:8px 11px!important;
}
.page-past-tours .tour-record-cta{
  margin-top:17px!important;
  padding-top:14px!important;
  width:100%!important;
}

@media(max-width:900px){
  .page-past-tours .past-tour-grid{gap:22px!important}
  .page-past-tours .tour-record-photo-link,
  .page-past-tours .tour-record:nth-of-type(even) .tour-record-photo-link{
    grid-template-columns:minmax(245px,36%) minmax(0,1fr)!important;
    min-height:270px!important;
  }
  .page-past-tours .tour-record:nth-of-type(even) .tour-record-photo-link{
    grid-template-columns:minmax(0,1fr) minmax(245px,36%)!important;
  }
  .page-past-tours .tour-record-media{min-height:270px!important}
  .page-past-tours .tour-record-copy{padding:27px 28px!important}
}

@media(max-width:700px){
  .gallery-album-section .tour-album-nav{
    justify-content:center!important;
    gap:8px!important;
    margin-bottom:20px!important;
  }
  .gallery-album-section .tour-album-nav a{
    min-height:38px!important;
    padding:9px 12px!important;
    font-size:.76rem!important;
  }
  .page-past-tours .past-tour-grid{grid-template-columns:1fr!important;gap:20px!important}
  .page-past-tours .tour-record-photo-link,
  .page-past-tours .tour-record:nth-of-type(even) .tour-record-photo-link{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
  }
  .page-past-tours .tour-record-media,
  .page-past-tours .tour-record:nth-of-type(even) .tour-record-media{
    order:1!important;
    height:220px!important;
    min-height:220px!important;
  }
  .page-past-tours .tour-record-copy,
  .page-past-tours .tour-record:nth-of-type(even) .tour-record-copy{
    order:2!important;
    align-items:center!important;
    padding:22px 20px 24px!important;
    text-align:center!important;
  }
  .page-past-tours .tour-record-copy .eyebrow{align-self:center!important}
  .page-past-tours .tour-record-copy h2,
  .page-past-tours .tour-record-copy p{text-align:center!important}
  .page-past-tours .record-stats{justify-content:center!important}
  .page-past-tours .tour-record-cta{text-align:center!important;justify-content:center!important}
}
