.programme-intro { background: #203c34; color: #fffaf0; }
.programme-intro h1 { color: inherit; }
.programme-intro .eyebrow { color: #ecd8ac; }
.programme-intro .split,.programme-preview .split { align-items: center; }
.programme-photo { width: 100%; aspect-ratio: 1.85; object-fit: cover; border-radius: var(--radius); }
.programme-preview { background: #f0eee3; }
.programme-preview h2 { max-width: 18ch; }
.programme-marks { display:flex; align-items:center; flex-wrap:wrap; gap:1.2rem; margin:1.5rem 0 0; padding:.6rem 1rem; width:fit-content; max-width:100%; background:white; border-radius:.6rem; }
.programme-marks img { object-fit:contain; width:7.5rem; height:4.5rem; }
.programme-steps { padding-left:1.6rem; max-width:54rem; }
.programme-steps li { padding:.5rem 0 .5rem .4rem; }
.nepal-intro { background:linear-gradient(120deg,#18362e,#305048 75%,#495e52); border-bottom:5px solid #be9559; }
.trek { display:flex; flex-direction:column; }
.trek h3 { font-size:1.55rem; }
.trek .btn { margin-top:auto; color:#202b23; background:#e6c28d; text-decoration:none; }
.trek-stats { border-block:1px solid #d7d9cc; padding:.65rem 0; }
.partner-logo { background:white; padding:2rem; border-radius:var(--radius); width:fit-content; max-width:100%; }
.partner-logo img { width:16rem; max-width:100%; }
.association-heading { margin-top:2.5rem; }
.association-list { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:.75rem; }
.association-list li { background:#fff; color:#283b33; border:1px solid #d4d7cd; border-radius:.7rem; padding:1rem .7rem; text-align:center; font-size:.88rem; }
.association-list img { width:100%; height:3.4rem; object-fit:contain; margin:0 auto .65rem; }

/* Keep the introduction readable across the site's theme variants. */
html[data-theme] #main-content > section.programme-intro {
  background: #203c34 !important;
  color: #fffaf0 !important;
}
html[data-theme] .programme-intro :is(h1, .lead, .eyebrow) { color: #fffaf0 !important; }
.programme-intro .programme-marks { margin: 0 0 1.25rem; }
.trip-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; align-items: center; }
.trip-hero-photo { width: 100%; height: auto; border-radius: var(--radius); }
.logo-reel { max-width: 48rem; margin: 1.5rem auto 0; text-align: center; }
.logo-window { overflow: hidden; margin-top: .8rem; padding: 1rem 0; background: white; mask-image: linear-gradient(to right, transparent, black 13%, black 87%, transparent); }
.logo-track { display: flex; width: 400%; animation: cq-logo-loop 48s linear infinite; }
.logo-track ul { display: flex; flex: 0 0 50%; padding: 0; margin: 0; list-style: none; }
.logo-track li { flex: 1 0 0; min-width: 0; padding: 0 .7rem; }
.logo-track img { width: 100%; height: 4.7rem; object-fit: contain; }
@keyframes cq-logo-loop { to { transform: translateX(-50%); } }
@media (max-width: 900px) { .trip-hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { width: 100%; animation: none; }
  .logo-track ul { flex: 0 0 100%; flex-wrap: wrap; }
  .logo-track li { flex: 0 0 33.333%; margin-block: .35rem; }
  .logo-track ul[aria-hidden] { display: none; }
  .logo-window { mask-image: none; }
}

.conwy-provider { text-align: center; }
.conwy-provider .programme-marks {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  background: transparent;
  padding: 1rem 0;
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
}
.conwy-provider .programme-marks img { width: min(78%, 18rem); height: clamp(4rem, 10vw, 8rem); }
.programme-intro .programme-photo { width: 100%; height: auto; aspect-ratio: auto; }
.media-carousel.trip-gallery {
  width: min(100%, calc(65svh * var(--slide-ratio, .75)));
  min-height: 0;
  height: auto;
  align-self: center;
  margin-inline: auto;
  background: transparent;
}
.media-carousel.trip-gallery img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.trek { min-width: 0; }
.trek .trip-gallery { margin-block: .25rem 1rem; }
.trek .carousel-dots { display: none; }
.logo-window:hover .logo-track { animation-play-state: paused; }

@property --slide-ratio {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
.media-carousel.trip-gallery[data-carousel-ready] { aspect-ratio: var(--slide-ratio); }
.media-carousel.trip-gallery[data-carousel-ready] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: none;
}
.media-carousel.trip-gallery.blending {
  transition: --slide-ratio 650ms ease-in-out;
}
.media-carousel.trip-gallery.blending img:is(.departing,.arriving) {
  display: block;
  object-fit: cover;
}
.media-carousel.trip-gallery.blending img.departing { animation: cq-photo-soften 650ms both; }
.media-carousel.trip-gallery.blending img.arriving { z-index: 1; animation: cq-photo-resolve 650ms both; }
@keyframes cq-photo-soften {
  from { filter: blur(0); }
  45%, to { filter: blur(7px); transform: scale(1.04); }
}
@keyframes cq-photo-resolve {
  0%, 16% { opacity: 0; filter: blur(7px); transform: scale(1.04); }
  60% { opacity: 1; filter: blur(5px); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .media-carousel.trip-gallery.blending { transition: none; }
  .media-carousel.trip-gallery.blending img { animation-duration: 0s !important; }
}

.programme-preview .programme-marks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  width: 100%;
  padding: .6rem 0;
  background: transparent;
}
.programme-preview .programme-marks img {
  width: min(85%, 12rem);
  height: clamp(3.5rem, 7vw, 5.25rem);
  object-fit: contain;
}
