/* IGC 10 and IGC 14 cinematic mobile heroes. Desktop presentation is unchanged. */
.nj-tour--cinematic-continuation .nj-cinematic-hero__identifier,
.nj-tour--cinematic-continuation .nj-cinematic-hero__statement,
.nj-tour--cinematic-continuation .nj-cinematic-mobile-copy { display: none; }

@media (max-width: 767px) {
  html .nj-tour--cinematic-continuation .nj-hero {
    --nj-continuation-intro: clamp(560px, calc(100svh - 88px), 760px);
    --nj-continuation-photo-stage: calc(var(--nj-continuation-intro) + 410px);
    position: relative;
    display: block;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding-top: var(--nj-continuation-intro);
    background: #fffdf8;
    isolation: isolate;
  }

  html .nj-tour--cinematic-continuation .nj-hero::before {
    position: absolute;
    inset: 0 0 auto;
    z-index: -2;
    width: 100%;
    height: var(--nj-continuation-photo-stage);
    background-color: #102f38;
    background-repeat: no-repeat;
    background-size: auto 100%;
    content: "";
  }

  html .nj-tour--igc10 .nj-hero::before {
    background-image: url('/images/igc10-hero-rome-mobile.jpg');
    background-position: 61% top;
  }

  html .nj-tour--igc14 .nj-hero::before {
    background-image: url('/images/igc14-hero-lake-como-editorial-mobile.jpg');
    background-position: 50% top;
  }

  html .nj-tour--cinematic-continuation .nj-hero::after {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: var(--nj-continuation-photo-stage);
    background: linear-gradient(180deg,
      rgba(4,27,34,.02) 0%,
      rgba(4,27,34,.02) 42%,
      rgba(4,27,34,.32) 57%,
      rgba(7,35,42,.74) 72%,
      rgba(7,35,42,.94) 88%,
      #07232a 100%);
    content: "";
    pointer-events: none;
  }

  html .nj-tour--cinematic-continuation .nj-cinematic-hero__identifier {
    position: absolute;
    top: calc(var(--nj-continuation-intro) - 126px);
    right: 20px;
    left: 20px;
    z-index: 3;
    display: block;
    max-width: 340px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(3,23,29,.52);
  }

  html .nj-tour--cinematic-continuation .nj-cinematic-hero__identifier-label {
    display: block;
    margin-bottom: 7px;
    color: #f7c16d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .19em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  html .nj-tour--cinematic-continuation .nj-cinematic-hero__identifier-title {
    display: block;
    max-width: 14ch;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(27px, 8vw, 34px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.02;
  }

  html .nj-tour--cinematic-continuation .nj-cinematic-hero__cue {
    position: absolute;
    bottom: -42px;
    left: 0;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    line-height: 1;
  }

  html .nj-tour--cinematic-continuation .nj-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 34px 0 0 !important;
    border-radius: 0;
    background: transparent;
    color: #fffdf8;
  }

  html .nj-tour--cinematic-continuation .nj-hero__inner { max-width: none; }

  html .nj-tour--cinematic-continuation .nj-hero .nj-eyebrow,
  html .nj-tour--cinematic-continuation .nj-hero h1,
  html .nj-tour--cinematic-continuation .nj-hero__subhead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }

  html .nj-tour--cinematic-continuation .nj-cinematic-hero__statement {
    display: block;
    max-width: 21ch;
    margin: 0 0 12px;
    color: #fffdf8;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(24px, 7.2vw, 31px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.08;
    text-wrap: balance;
  }

  html .nj-tour--cinematic-continuation .nj-hero__route {
    display: block !important;
    max-width: 37ch;
    margin: 0 0 22px;
    color: rgba(255,253,248,.82) !important;
    font-size: 12.5px !important;
    font-weight: 650;
    letter-spacing: .01em;
    line-height: 1.5;
  }

  html .nj-tour--cinematic-continuation .nj-cinematic-desktop-copy { display: none; }
  html .nj-tour--cinematic-continuation .nj-cinematic-mobile-copy { display: inline; }

  html .nj-tour--cinematic-continuation .nj-hero-facts {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas: "duration group" "pace overnights" !important;
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 1px solid rgba(255,253,248,.3);
    border-radius: 13px;
    background: rgba(5,35,42,.24);
    box-shadow: none;
    color: #fffdf8;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  html .nj-tour--cinematic-continuation .nj-hero-fact,
  html .nj-tour--cinematic-continuation .nj-hero-fact--duration,
  html .nj-tour--cinematic-continuation .nj-hero-fact--group {
    display: block;
    min-height: 72px;
    padding: 12px 10px;
    border-top: 1px solid rgba(255,253,248,.2);
    border-right: 0;
  }

  html .nj-tour--cinematic-continuation .nj-hero-fact--duration,
  html .nj-tour--cinematic-continuation .nj-hero-fact--group { border-top: 0; }

  html .nj-tour--cinematic-continuation .nj-hero-fact--duration,
  html .nj-tour--cinematic-continuation .nj-hero-fact--pace { border-right: 1px solid rgba(255,253,248,.2); }

  html .nj-tour--cinematic-continuation .nj-hero-fact__icon { display: none; }

  html .nj-tour--cinematic-continuation .nj-hero-fact__label {
    display: block;
    margin-bottom: 5px;
    color: rgba(247,193,109,.9);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .12em;
  }

  html .nj-tour--cinematic-continuation .nj-hero-fact strong {
    color: #fffdf8;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.32;
  }

  html .nj-tour--cinematic-continuation #nj-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 9px !important;
    margin: 0;
  }

  html .nj-tour--cinematic-continuation #nj-hero-actions > .nj-button {
    grid-column: auto !important;
    order: initial !important;
    width: 100%;
    min-width: 0;
    min-height: 47px !important;
    padding: 10px 8px !important;
    font-size: 10.5px !important;
    letter-spacing: .015em;
    line-height: 1.2;
    white-space: normal;
  }

  html .nj-tour--cinematic-continuation .nj-hero__actions a[href="#complete-journey"] {
    border-color: #fff8e9 !important;
    background: #fff8e9 !important;
    color: #123f48 !important;
  }

  html .nj-tour--cinematic-continuation .nj-hero__actions a[href="#dates"] {
    border-color: rgba(255,253,248,.7) !important;
    background: rgba(7,35,42,.14) !important;
    color: #fffdf8 !important;
  }

  html .nj-tour--cinematic-continuation .nj-hero__tripadvisor-proof {
    position: relative;
    left: 50%;
    display: flex;
    width: 100vw;
    max-width: none;
    margin: 30px 0 0 -50vw !important;
    padding: 26px max(20px,env(safe-area-inset-left)) 30px max(20px,env(safe-area-inset-right));
    border-top: 0;
    background: #fffdf8;
    color: #53686c !important;
    font-size: 15px;
    line-height: 1.5;
    text-shadow: none;
  }

  html .nj-tour--cinematic-continuation .nj-hero__tripadvisor-proof::before {
    position: absolute;
    top: 0;
    right: max(20px,env(safe-area-inset-right));
    left: max(20px,env(safe-area-inset-left));
    height: 1px;
    background: rgba(23,63,73,.14);
    content: "";
  }

  html .nj-tour--cinematic-continuation .nj-hero__tripadvisor-star { color: #b97814; }
}

@media (max-width: 339px) {
  html .nj-tour--cinematic-continuation .nj-hero {
    --nj-continuation-intro: calc(100svh - 88px);
    --nj-continuation-photo-stage: calc(var(--nj-continuation-intro) + 425px);
  }

  html .nj-tour--cinematic-continuation .nj-cinematic-hero__statement { font-size: 23px; }

  html .nj-tour--cinematic-continuation .nj-hero-fact,
  html .nj-tour--cinematic-continuation .nj-hero-fact--duration,
  html .nj-tour--cinematic-continuation .nj-hero-fact--group {
    min-height: 76px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 767px) and (orientation: landscape) and (max-height: 520px) {
  html .nj-tour--cinematic-continuation .nj-hero {
    --nj-continuation-intro: 360px;
    --nj-continuation-photo-stage: 760px;
  }

  html .nj-tour--cinematic-continuation .nj-cinematic-hero__identifier {
    top: calc(var(--nj-continuation-intro) - 104px);
  }
}
