/* JS inserts this after `header` while sticky so content below does not jump when the bar is `fixed`.
   No height transition — easing the spacer reintroduces visible layout shift with `position: fixed`. */
.header-flow-spacer {
  transition: none !important;
}

/* Sticky header polish: narrow transitions + kill theme enter animation (prevents scroll jank) */
header.header-eleven {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Excursion detail: vertical gallery (tour-details) — flex + floats from style.css fight each other and
   can pull the main image away from the top or let the column visually overlap the sticky sidebar. */
.excursion-detail-gallery .slider-wrap.vertical-slider {
  align-items: flex-start;
  gap: 0.75rem;
}

.excursion-detail-gallery .vertical-slider .slider-for {
  float: none;
  max-width: none;
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  padding-right: 0;
}

.excursion-detail-gallery .vertical-slider .slider-nav {
  flex: 0 0 5.75rem;
  width: 5.75rem;
  max-width: 5.75rem;
  min-width: 0;
}

.excursion-detail-gallery .tour-vertical-slide .slider-for .service-img img {
  display: block;
  width: 100%;
}

.excursion-detail-gallery .tour-vertical-slide .slider-for img {
  height: clamp(260px, 38vw, 420px);
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.excursion-detail-gallery .vertical-slider .slider-nav .slick-slide img {
  width: 100%;
  height: 4.75rem;
  object-fit: cover;
  margin: 0.25rem 0;
  border-radius: 8px;
}

@media (max-width: 767.98px) {
  .excursion-detail-gallery .tour-vertical-slide .slider-for img {
    height: auto;
    max-height: 70vh;
  }

  .excursion-detail-gallery .slider-wrap.vertical-slider {
    flex-wrap: wrap;
  }

  .excursion-detail-gallery .vertical-slider .slider-nav {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    order: 2;
  }

  .excursion-detail-gallery .vertical-slider .slider-for {
    flex: 1 1 100%;
    width: 100%;
    order: 1;
  }
}

header.header-eleven.fixed {
  animation: none;
  -webkit-animation: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
