/* Shared photographic HERO frame, measured from the published homepage.
   These explicit families exclude text-only headers, admin and account screens.
   The bounded important rules supersede older compiled/scoped page styles. */
:root {
  /* Keep a real viewport-unit fallback. Unknown units remain valid inside a
     custom property, so a bare `svh` value invalidates every later use on
     older Safari instead of falling back automatically. */
  --eif-hero-frame: clamp(640px, 78vh, 860px);
  --eif-hero-shell: min(calc(100% - 3rem), 1500px);
  --eif-hero-padding-start: clamp(5rem, 8vw, 7rem);
  --eif-hero-padding-end: 9rem;
  --eif-hero-title-size: clamp(4.6rem, 8.2vw, 8.9rem);
}
@supports (height: 1svh) {
  :root { --eif-hero-frame: clamp(640px, 78svh, 860px); }
}

/* Keep the photograph on the normal paint path. Safari can drop an absolutely
   positioned image layer when an individual-scale animation is combined with
   a negative stacking level. The decorative zoom is intentionally disabled;
   showing the photograph is the critical behaviour. */
:root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
  .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
  .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
  .about-photo-hero, .affiliate-photo-hero)[class] img {
  transform: none !important;
  scale: 1 !important;
  transform-origin: var(--editorial-hero-position, var(--local-home-preview-position, 50% 50%)) !important;
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
  :root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
    .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
    .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
    .about-photo-hero, .affiliate-photo-hero)[class] img {
    animation: none !important;
    scale: 1 !important;
    transform: none !important;
  }
}

/* Use non-negative layers for the two rotating HERO implementations. This
   avoids WebKit compositing the photograph behind the HERO background while
   preserving the existing copy and controls above it. */
:root body main .home-hero-review[class] .home-hero-review__photographs,
:root body main .hero-slider[class] .hero-slide.is-active {
  z-index: 0 !important;
}
:root body main .home-hero-review[class] .home-hero-review__shade,
:root body main .hero-slider[class] .hero-slide.is-active :is(.hero-shade, .editorial-hero-image) {
  z-index: 1;
}
:root body main .home-hero-review[class] .home-hero-review__photograph.is-active,
:root body main .hero-slider[class] .hero-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}
:root body main .home-hero-review[class] .home-hero-review__content,
:root body main .hero-slider[class] .hero-slide.is-active .hero-content {
  z-index: 2 !important;
}

/* Motion is progressive enhancement: public content must remain readable if
   an older Safari stops before the observer bootstrap completes. */
:root body main [data-motion]:not([data-motion="none"]) {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

:root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
  .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
  .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
  .about-photo-hero, .affiliate-photo-hero)[class] {
  position: relative !important;
  box-sizing: border-box !important;
  isolation: isolate;
  width: 100% !important;
  max-width: none !important;
  height: var(--eif-hero-frame) !important;
  min-height: var(--eif-hero-frame) !important;
  max-height: none !important;
  min-block-size: var(--eif-hero-frame) !important;
  max-block-size: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  background-color: #191814;
}

:root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
  .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
  .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
  .about-photo-hero, .affiliate-photo-hero)[class] img {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

:root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
  .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
  .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
  .about-photo-hero, .affiliate-photo-hero)[class]
  :is(.editorial-hero-image, .local-home-preview-image)[class] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* The previous Vienna mobile sheet contains four-class important containment.
   Override only shared HERO foregrounds, leaving gallery/viewer images alone. */
:root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
  .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
  .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
  .about-photo-hero, .affiliate-photo-hero)[class]
  :is(.editorial-hero-image, .local-home-preview-image) > img[class] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

:root body main :is(.home-hero-review__content, .hero-content, .city-hero__copy,
  .country-hero__copy, .destination-hero__copy, .photo-hero__copy,
  .cathedral-hero__copy, .gallery-copy, .gallery-page__copy,
  .route-hero__copy, .story-hero__copy, .explore-detail-hero__copy,
  .about-photo-hero__content, .affiliate-photo-hero__content)[class],
:root body main .photo-hero > div:not([class]) {
  position: relative !important;
  z-index: 2;
  inset: auto !important;
  inset-inline: auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  align-items: flex-start;
  width: var(--eif-hero-shell) !important;
  max-width: none !important;
  min-width: 0;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: var(--eif-hero-padding-start) 0 var(--eif-hero-padding-end) !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  text-align: start;
  color: #fff !important;
}

:root body main .hero-title-wrap {
  width: 100%;
  margin-top: 1.25rem !important;
}
:root body main .hero-details { width: 100%; }

:root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
  .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
  .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
  .about-photo-hero, .affiliate-photo-hero) :is(h1:not(.sr-only), .hero-city-title) {
  position: relative;
  max-width: 100% !important;
  max-inline-size: 100% !important;
  min-width: 0;
  margin: 0 !important;
  font-family: var(--font-display) !important;
  font-size: var(--eif-hero-title-size) !important;
  font-weight: 420 !important;
  line-height: .95 !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
  color: #fff !important;
}

:root body main :is(.city-hero__copy, .country-hero__copy, .destination-hero__copy,
  .photo-hero__copy, .cathedral-hero__copy, .gallery-copy,
  .gallery-page__copy, .route-hero__copy, .story-hero__copy,
  .explore-detail-hero__copy, .about-photo-hero__content,
  .affiliate-photo-hero__content) > p:first-child,
:root body main .photo-hero > div:not([class]) > p:first-child {
  max-width: 54rem;
  margin: 0 0 1.25rem !important;
  font-family: var(--font-body) !important;
  font-size: .66rem !important;
  font-weight: 750;
  line-height: 1.6 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}

:root body main :is(.home-hero-review__intro, .photo-hero__deck,
  .about-photo-hero__intro, .affiliate-photo-hero__dek),
:root body main :is(.city-hero__copy, .country-hero__copy, .destination-hero__copy,
  .explore-detail-hero__copy) > span,
:root body main :is(.gallery-copy, .gallery-page__copy) > p:last-child,
:root body main :is(.route-hero__copy, .story-hero__copy) > div,
:root body main :is(.city-hero__copy, .country-hero__copy, .destination-hero__copy,
  .route-hero__copy, .story-hero__copy) > p:not(:first-child),
:root body main .photo-hero > div:not([class]) > p:not(:first-child) {
  display: block;
  max-width: 34rem !important;
  margin: 1.8rem 0 0 !important;
  font-family: var(--font-body) !important;
  font-size: clamp(1rem, 1.35vw, 1.15rem) !important;
  line-height: 1.75 !important;
  font-weight: 400;
  letter-spacing: 0 !important;
  text-transform: none;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  color: #f1ece2 !important;
}

:root body main :is(.city-hero__shade, .country-hero__veil, .destination-hero__veil,
  .gallery-hero .shade, .gallery-page__shade, .route-hero__shade,
  .story-hero__shade, .explore-detail-hero__shade, .about-photo-hero__shade,
  .affiliate-photo-hero__shade),
:root body main :is(.photo-hero, .cathedral-hero)::after {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(9,13,11,.7), rgba(9,13,11,.5) 70%, rgba(9,13,11,.15)),
    linear-gradient(180deg, rgba(9,13,11,.08) 40%, rgba(9,13,11,.55)) !important;
}

:root body main .eif-hero-navigation {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  width: var(--eif-hero-shell) !important;
  max-width: none;
  margin: 1.25rem auto !important;
  padding: 0 !important;
  color: var(--color-text, #191814);
  font-family: var(--font-body);
  font-size: .65rem;
  line-height: 1.7;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
:root body main .eif-hero-navigation a { color: inherit; text-decoration: none; }
:root body main .eif-hero-navigation a:hover { text-decoration: underline; }

/* Keep the existing photograph/scroll actions readable over the full image. */
:root body main .city-hero[class] :is(.city-hero__view, .city-hero__scroll) {
  color: #fff !important;
  border-color: rgba(255,255,255,.7) !important;
}
:root body main .city-hero[class] .city-hero__view {
  background: rgba(9,13,11,.32) !important;
}

/* The darker side follows the text direction, including the existing RTL pages. */
html:root[dir="rtl"] body main :is(.home-hero-review__shade,
  .city-hero__shade, .country-hero__veil, .destination-hero__veil,
  .gallery-hero .shade, .gallery-page__shade, .route-hero__shade,
  .story-hero__shade, .explore-detail-hero__shade, .about-photo-hero__shade,
  .affiliate-photo-hero__shade),
html:root[dir="rtl"] body main :is(.photo-hero, .cathedral-hero)::after {
  background: linear-gradient(270deg, rgba(9,13,11,.7), rgba(9,13,11,.5) 70%, rgba(9,13,11,.15)),
    linear-gradient(180deg, rgba(9,13,11,.08) 40%, rgba(9,13,11,.55)) !important;
}

@media (max-width: 900px) {
  :root {
    --eif-hero-frame: clamp(620px, 80vh, 780px);
    --eif-hero-shell: calc(100% - 1.5rem);
    --eif-hero-padding-start: 5rem;
    --eif-hero-title-size: clamp(3rem, 8.2vw, 5rem);
  }
  @supports (height: 1svh) {
    :root { --eif-hero-frame: clamp(620px, 80svh, 780px); }
  }
}
@media (max-width: 520px) {
  :root {
    --eif-hero-frame: clamp(600px, 80vh, 740px);
    --eif-hero-padding-end: 8.5rem;
    --eif-hero-title-size: clamp(2.6rem, 10.4vw, 3.5rem);
  }
  @supports (height: 1svh) {
    :root { --eif-hero-frame: clamp(600px, 80svh, 740px); }
  }
  :root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
    .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
    .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
    .about-photo-hero, .affiliate-photo-hero) :is(h1:not(.sr-only), .hero-city-title) {
    line-height: 1.03 !important;
    letter-spacing: -.045em !important;
  }
  :root body main :is(.home-hero-review__intro, .photo-hero__deck,
    .about-photo-hero__intro, .affiliate-photo-hero__dek),
  :root body main :is(.city-hero__copy, .country-hero__copy, .destination-hero__copy,
    .explore-detail-hero__copy) > span,
  :root body main :is(.gallery-copy, .gallery-page__copy) > p:last-child,
  :root body main :is(.route-hero__copy, .story-hero__copy) > div,
  :root body main :is(.city-hero__copy, .country-hero__copy, .destination-hero__copy,
    .route-hero__copy, .story-hero__copy) > p:not(:first-child),
  :root body main .photo-hero > div:not([class]) > p:not(:first-child) {
    max-width: 23rem !important;
    margin-top: 1.4rem !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }
}
/* Keep complex-script marks and joined Arabic glyphs clear of adjacent lines. */
html:is(:lang(am), :lang(bn), :lang(bho), :lang(gu), :lang(hi), :lang(km),
  :lang(kn), :lang(lo), :lang(mai), :lang(ml), :lang(mr), :lang(my), :lang(ne),
  :lang(or), :lang(pa), :lang(si), :lang(ta), :lang(te), :lang(th)) main
  :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
  .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
  .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
  .about-photo-hero, .affiliate-photo-hero) :is(h1:not(.sr-only), .hero-city-title) {
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}
html[dir="rtl"] main :is(.home-hero-review, .hero-slider, .city-hero,
  .country-hero, .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
  .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
  .about-photo-hero, .affiliate-photo-hero) :is(h1:not(.sr-only), .hero-city-title) {
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}
/* Tamil's long homepage heading needs a smaller mobile type size, while
   retaining its native-script line spacing and the shared image frame. */
@media (max-width: 520px) {
  html:root:lang(ta) body main .home-hero-review h1 {
    font-size: clamp(2rem, 8.5vw, 3rem) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
    .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
    .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
    .about-photo-hero, .affiliate-photo-hero) img { animation: none !important; transform: none !important; }
}

/* Shared copy fills the image frame; keep separate photograph controls above it. */
:root body main .home-hero-review .home-hero-review__footer,
:root body main .city-hero[class] :is(.city-hero__view, .city-hero__scroll) {
  z-index: 3 !important;
}

/* Tamil's longer homepage heading also needs room on wide, shallow frames. */
@media (min-width: 901px) {
  html:root:lang(ta) body main .home-hero-review h1 {
    font-size: clamp(3rem, 5.8vw, 5.6rem) !important;
  }
}

/* Complex scripts retain their native line spacing without a desktop headline
   growing beyond the common frame when several lines are needed. */
@media (min-width: 901px) {
  html:root:is(:lang(am), :lang(bn), :lang(bho), :lang(gu), :lang(hi), :lang(km),
    :lang(kn), :lang(lo), :lang(mai), :lang(ml), :lang(mr), :lang(my), :lang(ne),
    :lang(or), :lang(pa), :lang(si), :lang(ta), :lang(te), :lang(th)) body main
    :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
    .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
    .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
    .about-photo-hero, .affiliate-photo-hero) :is(h1:not(.sr-only), .hero-city-title) {
    font-size: clamp(3rem, 4.8vw, 4.8rem) !important;
  }
}

/* Public sections keep real geometry while scrolling, rather than replacing
   estimated offscreen heights after a Safari touch gesture starts. */
:root body main > section:not(:first-child),
:root body main > article > section:not(:first-child) {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

/* Photograph sections also contain sideways entrance paint without locking
   document scrolling. */
:root body main > article.photo-page > section {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
  overflow-x: clip;
}
/* Clip only the sideways entrance of the place card, keeping root scrolling. */
:root body main > article.photo-page > .story-shell {
  overflow-x: clip;
}
/* Current published photo dimensions supply an intrinsic-ratio bridge.
   New source projections emit the same variable for any future dimensions. */
:root body main > article.photo-page > .full-photo .full-photo__image img[width="1333"][height="2000"] {
  --eif-photo-aspect: 1333 / 2000;
}
:root body main > article.photo-page > .full-photo .full-photo__image img[width="1334"][height="2000"] {
  --eif-photo-aspect: 1334 / 2000;
}
:root body main > article.photo-page > .full-photo .full-photo__image img[width="2000"][height="1043"] {
  --eif-photo-aspect: 2000 / 1043;
}
:root body main > article.photo-page > .full-photo .full-photo__image img[width="2000"][height="1333"] {
  --eif-photo-aspect: 2000 / 1333;
}
:root body main > article.photo-page > .full-photo .full-photo__image img[width="2000"][height="1334"] {
  --eif-photo-aspect: 2000 / 1334;
}
:root body main > article.photo-page > .full-photo .full-photo__image img {
  width: calc(92vh * var(--eif-photo-aspect)) !important;
  width: calc(92svh * var(--eif-photo-aspect)) !important;
  height: auto !important;
}

/* iPhone Safari stability mode. Keep layout on a fixed, ordinary paint path:
   no viewport-driven animation, no observer-gated content, and no expensive
   compositing effects that can repeatedly invalidate the page while Safari's
   browser chrome changes height. */
@media (hover: none) and (pointer: coarse) and (max-width: 600px) {
    html {
      scroll-behavior: auto !important;
      overflow-anchor: none;
    }
    body {
      min-height: 100%;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
    }
    body *,
    body *::before,
    body *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
    :root body main > *,
    :root body main > article > *,
    :root body main [data-motion],
    :root body main [data-photo-section-reveal],
    :root body main [data-commerce-reveal],
    :root body main [data-full-photo-reveal] {
      content-visibility: visible !important;
      contain: none !important;
      contain-intrinsic-size: none !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
    :root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
      .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
      .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
      .about-photo-hero, .affiliate-photo-hero)[class] {
      min-height: 600px !important;
      height: auto !important;
      max-height: none !important;
    }
    :root body main :is(.home-hero-review, .hero-slider, .city-hero, .country-hero,
      .destination-hero, .photo-hero, .cathedral-hero, .gallery-hero,
      .gallery-page__hero, .route-hero, .story-hero, .explore-detail-hero,
      .about-photo-hero, .affiliate-photo-hero)[class] img,
    :root body main .full-photo__image img {
      opacity: 1 !important;
      visibility: visible !important;
      transform: none !important;
      scale: 1 !important;
      filter: none !important;
      will-change: auto !important;
    }
    :root body main .photo-hero__copy,
    :root body main .story-shell .story-main,
    :root body main .story-shell .place-card,
    :root body main .full-photo-reveal-ready .full-photo__image,
    :root body main .full-photo-reveal-ready figcaption,
    :root body main .photo-section-reveal-ready,
    :root body main .photo-section-reveal-ready :is(.photo-related__header,
      .photo-related__card, .travel-affiliate__intro, .travel-affiliate__item,
      .travel-affiliate__footer, .gear-affiliate__intro, .gear-affiliate__item,
      .gear-affiliate__footer),
    :root body main .commerce-reveal-ready :is(.commerce-copy,
      .commerce-links a, .advanced-rights) {
      opacity: 1 !important;
      visibility: visible !important;
      transform: none !important;
    }
    :root body main [style*="backdrop-filter"],
    :root body main [class] {
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
    }
}

/* eif-shared-header-token-v1 */
.site-header { color: var(--color-text); }
