/**
 * Protect Travel MO hero/slider from global plugin CSS (e.g. img { height: auto }).
 * Plugin-only — does not change theme files.
 */

/* Staff/Client login — footer “Explore” only (not header / mobile drawer) */
.eupt-portal-links,
.eupt-nav-drawer-extras__portals {
  display: none !important;
}

/* Client photo gallery removed from public site */
.eupt-home-journeys,
.eupt-footer__gallery {
  display: none !important;
}

.eupt-hero--slider,
.eupt-hero--home.eupt-hero--slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 72vh, 680px);
}

.eupt-hero-slider__track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.eupt-hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.eupt-hero-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.eupt-hero-slider__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.eupt-hero__picture,
.eupt-service-hero__picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Homepage destination strip — theme has no layout; keep images small */
.eupt-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem auto 2rem;
}

@media (max-width: 640px) {
  .eupt-scenes {
    grid-template-columns: 1fr;
  }

  .eupt-scenes img {
    max-height: 180px;
  }
}

.eupt-scenes img {
  width: 100%;
  height: clamp(120px, 20vw, 200px);
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* Journey gallery — compact grid, not full-width stack */
.eupt-home-journeys .eupt-journeys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.eupt-journeys__item {
  margin: 0;
}

.eupt-journeys__item img {
  width: 100%;
  height: clamp(96px, 16vw, 150px);
  max-height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

/* Other content images (not hero slider / service card media) */
.eupt-main img:not(.eupt-hero-slider__img):not(.eupt-hero__picture):not(.eupt-service-hero__picture):not(.eupt-brand__logo) {
  max-width: 100%;
  height: auto;
}

.eupt-service-card__media img,
.eupt-dest-card__media img,
.eupt-dest-grid .eupt-dest-card__media img,
.eupt-related__card img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
}

.eupt-service-card__media,
.eupt-dest-card__media {
  overflow: hidden;
  max-height: 220px;
}

.eupt-page-content img,
.eupt-section--content img,
.entry-content img {
  max-width: min(100%, 720px);
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-inline: auto;
}

/* Footer “Journeys we have arranged” — compact thumb grid (every page) */
.eupt-footer__heading {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.eupt-footer__gallery ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: min(100%, 240px);
}

.eupt-footer__gallery li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eupt-footer__gallery li::marker {
  content: none;
}

footer.eupt-footer .eupt-footer__gallery img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0;
  flex-shrink: 0;
}

footer.eupt-footer .eupt-footer__gallery ul {
  grid-template-columns: repeat(3, 72px);
  max-width: 228px;
}
