/* Shared mobile hero shell for Travel Styles and detailed Journeys.
   svh stays stable when Safari's browser controls expand/collapse. */
@layer ame-mobile-editorial {
 @media(max-width:1023px) {
  html[data-ame-mobile-immersive] {scroll-padding-top:calc(var(--ame-mobile-header-height,68px) + var(--ame-mobile-tabs-height,60px) + 16px)!important;}
  html[data-ame-mobile-immersive] body .ame-site-header {position:fixed!important;inset:0 0 auto!important;background:transparent!important;border:0!important;box-shadow:none!important;color:white!important;transition:background-color .18s ease,color .18s ease;}
  html[data-ame-mobile-immersive] body .ame-site-header.ame-mobile-hero-solid {background:#f5f2ec!important;color:#2c2c2a!important;box-shadow:inset 0 -1px 0 #2c2c2a22!important;}
  html[data-ame-mobile-immersive] body .ame-nav-shell {height:auto!important;min-height:calc(68px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))!important;}
  html[data-ame-mobile-immersive] body :is(.ame-mobile-brand,.ame-mobile-toggle) {color:inherit!important;}
  html[data-ame-mobile-immersive] body .ame-mobile-brand {font-size:1rem!important;font-weight:400!important;white-space:normal!important;line-height:1.2!important;text-align:center;}
  html[data-ame-mobile-immersive] body .ame-site-header .ame-currency {display:none!important;}
  html[data-ame-mobile-immersive] body .ame-mobile-panel {position:absolute!important;top:100%!important;bottom:auto!important;height:auto!important;left:0;right:0;max-height:calc(100dvh - var(--ame-mobile-header-height,68px))!important;overflow:auto!important;background:#f5f2ec!important;color:#2c2c2a!important;padding-bottom:calc(28px + env(safe-area-inset-bottom))!important;overscroll-behavior:contain;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero] {position:relative!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;height:auto!important;min-height:100svh!important;max-height:none!important;aspect-ratio:auto!important;box-sizing:border-box!important;padding:calc(var(--ame-mobile-header-height,68px) + 32px) 0 0!important;isolation:isolate!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero]::before {content:""!important;position:absolute!important;inset:0 0 auto!important;height:calc(var(--ame-mobile-header-height,68px) + 100px)!important;z-index:2!important;background:linear-gradient(#0009,#0004 55%,transparent)!important;pointer-events:none!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero]::after {content:""!important;position:absolute!important;inset:25% 0 0!important;z-index:2!important;background:linear-gradient(transparent,#0004 45%,#000b)!important;pointer-events:none!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero] > :is(img,video) {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero] :is(.ts-hero-title,.ame-signature-hero__content,[data-ame-mobile-hero-copy]) {position:relative!important;inset:auto!important;z-index:3!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:32px max(24px,env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero] .ame-signature-hero__content {display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:28px!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero] h1 {max-width:100%!important;width:auto!important;white-space:normal!important;overflow-wrap:break-word!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero] :is(.ame-media-control,.ts-film-control) {bottom:calc(16px + env(safe-area-inset-bottom))!important;}
  html[data-ame-mobile-immersive] body :is(.ts-subnav,.ame-journey-subnav) {position:sticky!important;top:var(--ame-mobile-header-height,68px)!important;z-index:40!important;}
  html[data-ame-mobile-immersive] body .ame-mobile-anchor {scroll-margin-top:0!important;}
  html[data-ame-mobile-immersive].ame-mobile-over-hero body :is(#mobile-sticky-cta,.ame-floating-journey-cta) {visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
 }
 @media(max-width:1023px) and (prefers-reduced-motion:reduce) {
  html[data-ame-mobile-immersive] body .ame-site-header {transition:none!important;}
 }
}

/* Shared editorial opt-in: normal-flow copy grows for larger text. */
@layer ame-mobile-editorial {
 @media(max-width:1023px) {
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero-copy] {min-height:0!important;flex:none!important;display:block!important;text-align:left!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero-copy] h1 {font-size:clamp(2.75rem,12vw,4rem)!important;line-height:1.04!important;font-weight:400!important;text-shadow:none!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero-copy] h2 {font-size:clamp(2rem,9vw,3rem)!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero-copy] p {font-size:1rem!important;line-height:1.65!important;font-weight:300!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero-copy] > .absolute {display:none!important;}
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero] .ame-hero-wash,
  html[data-ame-mobile-immersive] body [data-ame-mobile-hero] .why-hero-contrast {display:none!important;}
  html[data-ame-mobile-immersive] body .subnav {position:sticky!important;top:var(--ame-mobile-header-height,68px)!important;z-index:40;overflow-x:auto!important;touch-action:pan-x pan-y;}
  html[data-ame-mobile-immersive] body .subnav > div {width:max-content;min-width:100%;box-sizing:border-box;}
  html[data-ame-mobile-immersive] body .subnav a {flex:none;}
 }
}

@media(max-width:1023px){[data-ame-mobile-scroll-hint]{display:none!important}}

/* Shared full-bleed editorial photographs; text keeps its existing gutters. */
@media(max-width:767px){
 .ame-mobile-bleed-image{width:100vw!important;max-width:none!important;margin-inline:calc(50% - 50vw)!important;}
 .ame-mobile-bleed-image img{display:block;width:100%!important;height:100%!important;aspect-ratio:4/3!important;object-fit:cover;}
 .ame-mobile-bleed-image figcaption{padding-inline:24px;}
}

/* Travel Styles: one restrained mobile title scale, including landscape. */
@layer ame-mobile-editorial {
 @media(max-width:1023px){
  html[data-ame-mobile-immersive] body[data-travel-style] [data-ame-mobile-hero] .ts-hero-title{padding:32px max(24px,env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))!important;}
  html[data-ame-mobile-immersive] body[data-travel-style] [data-ame-mobile-hero] .ts-hero-title h1{font-size:clamp(2.75rem,calc(2rem + 4vw),3.125rem)!important;line-height:1.06!important;font-weight:400!important;letter-spacing:-.02em!important;margin:0!important;max-width:100%!important;text-wrap:balance;text-shadow:none!important;}
  html[data-ame-mobile-immersive] body[data-travel-style] [data-ame-mobile-hero] :is(.ts-film-control,.ame-media-control){display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;right:max(24px,env(safe-area-inset-right))!important;bottom:calc(16px + env(safe-area-inset-bottom))!important;border:1px solid #ffffffb3!important;border-radius:50%!important;background:#1e1e1abf!important;color:#fff!important;z-index:4!important;}
  html[data-ame-mobile-immersive] body[data-travel-style] [data-ame-mobile-hero] :is(.ts-film-control,.ame-media-control)[hidden]{display:none!important;}
 }
}
