/* Eventide Stage 48 | Editorial photo hero and mobile navigation fixes.
   This stylesheet is intentionally loaded after the legacy stylesheets.
   The hero fade keeps text readable while leaving the photo visible. */

/* Place editorial cover photos in the title hero instead of below it. */
.ev48-photo-hero {
  padding: clamp(26px, 3.5vw, 44px) 0 !important;
  background: #102A43;
  color: #fff;
}
.ev48-photo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  gap: clamp(20px, 3vw, 55px);
  align-items: center;
}
.ev48-photo-hero-copy {min-width: 0;}
.ev48-photo-hero-copy h1 {
  font-size: clamp(32px, 3.4vw, 58px);
  line-height: 1.12;
  margin: 12px 0 14px;
  overflow-wrap: break-word;
  color: #fff;
}
.ev48-photo-hero-copy .ev-breadcrumb {margin-bottom: 20px;}
.ev48-photo-hero-copy p {
  max-width: 680px;
  color: #e0e8ef;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.7;
  margin: 0;
}
.ev48-photo-caption {
  display: block;
  margin-top: 12px;
  color: #d5e0e8;
  font-size: 11px;
  line-height: 1.5;
}
.ev48-photo-caption span {display: block; margin-top: 3px;}
.ev48-photo-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  background: #102A43;
}
.ev48-photo-hero-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 445px;
  margin-inline: auto;
  border: 0;
  border-radius: 6px;
  object-fit: contain; /* show the entire photograph; never crop */
}
@media (min-width: 901px) {
  .ev48-photo-hero {
    position: relative;
    isolation: isolate;
    min-height: 532px;
    overflow: hidden;
    padding: 0 !important;
  }
  .ev48-photo-hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(248,246,241,.97) 0%, rgba(248,246,241,.9) 33%, rgba(248,246,241,.68) 47%, rgba(248,246,241,.24) 68%, rgba(248,246,241,.04) 86%, rgba(248,246,241,0) 100%);
    content: "";
    pointer-events: none;
  }
  .ev48-photo-hero-grid {
    position: static;
    display: flex;
    align-items: center;
    min-height: 532px;
    box-sizing: border-box;
    padding: 62px 0;
  }
  .ev48-photo-hero-copy {
    position: relative;
    z-index: 2;
    width: 58%;
    max-width: 820px;
    color: #102A43;
  }
  .ev48-photo-hero .ev48-photo-hero-copy .ev-breadcrumb,
  .ev48-photo-hero .ev48-photo-hero-copy .ev-breadcrumb a,
  .ev48-photo-hero .ev48-photo-hero-copy h1 {
    color: #102A43;
  }
  .ev48-photo-hero .ev48-photo-hero-copy .eventide-eyebrow {
    color: #A66F20;
  }
  .ev48-photo-hero .ev48-photo-hero-copy p {
    color: #294154;
  }
  .ev48-photo-hero .ev-guide-byline {color: #536578;}
  .ev48-photo-caption {color: #536578;}
  .ev48-photo-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
  }
  .ev48-photo-hero-media img {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 54%;
    border-radius: 0;
  }
}
@media (min-width: 901px) {
  .ev-content-page .ev35-safari-hero.ev39-safari-hero {
    height: 532px;
    min-height: 532px;
  }
  .ev-content-page .ev39-safari-hero::after {
    background: linear-gradient(90deg, rgba(248,246,241,.97) 0%, rgba(248,246,241,.9) 33%, rgba(248,246,241,.68) 47%, rgba(248,246,241,.24) 68%, rgba(248,246,241,.04) 86%, rgba(248,246,241,0) 100%);
  }
  .ev-content-page .ev39-safari-hero .ev39-hero-copy {padding: 62px 0;}
  .ev-content-page .ev39-safari-hero h1 {
    color: #102A43;
    text-shadow: none;
  }
  .ev-content-page .ev39-safari-hero p {
    color: #294154;
    text-shadow: none;
  }
  .ev-content-page .ev39-safari-hero .ev-breadcrumb,
  .ev-content-page .ev39-safari-hero .ev-breadcrumb a {color: #102A43;}
  .ev-content-page .ev39-safari-hero .eventide-eyebrow {color: #A66F20 !important;}
  .ev-content-page .ev39-safari-hero .ev-trip-meta > span {
    color: #294154;
    background: rgba(255,255,255,.84);
    border-color: rgba(16,42,67,.16);
    text-shadow: none;
  }
}
/* Natural ratio without the legacy max-height:510px / grey pillarbox.
   This rule covers other editorial content pages that retain an inline cover. */
.ev-content-page .eventide-article > img.eventide-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  background: transparent;
  margin-bottom: clamp(18px, 2.2vw, 32px);
}
/* The guide article starts below the hero, with clean separation. */
.ev-content-page .eventide-detail-grid { padding-top: clamp(26px,3vw,48px); }
.ev-content-page .eventide-article > .eventide-copy > h2:first-child { margin-top: 0; }

/* The menu, wishlist and logo have independent finite widths. Multiple earlier
   compact-menu styles disagreed about left/right placement and header sizes. */
@media (max-width: 1500px) {
  .eventide-header .eventide-nav,
  .eventide-header.is-floating .eventide-nav {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: auto !important; /* override inherited height:100% from desktop nav */
    min-height: calc(100dvh - 128px) !important; /* opaque panel hides page while menu is open */
    z-index: 2000 !important;
    opacity: 1 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    box-sizing: border-box;
    justify-content: flex-start !important; /* desktop nav right-align rule must not bottom-align drawer */
    align-content: flex-start !important;
    padding: 16px max(4vw, 18px) 32px !important;
    max-height: calc(100dvh - 128px) !important;
  }
  .eventide-header.is-floating .eventide-nav {
    min-height: calc(100dvh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
  }
  .eventide-header .eventide-nav:not(.is-open) { display: none !important; }
  .eventide-header .eventide-nav.is-open,
  .eventide-header.is-floating .eventide-nav.is-open { display: flex !important; }
  body.ev48-nav-open { overflow: hidden !important; }
  body.ev48-nav-open .eventide-header { transform: none !important; pointer-events: auto; }
  .eventide-header .eventide-nav .eventide-mega-panel {
    position: static !important;
    background: #fbfaf7 !important;
    width: 100% !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
@media (max-width: 1200px) {
  .eventide-header .eventide-nav { min-height: calc(100dvh - 104px) !important; max-height: calc(100dvh - 104px) !important; }
  .eventide-header.is-floating .eventide-nav { min-height: calc(100dvh - 88px) !important; max-height: calc(100dvh - 88px) !important; }
}
@media (max-width: 900px) {
  .ev48-photo-hero {padding: 16px 0 27px !important;}
  .ev48-photo-hero-grid {
    grid-template-columns: minmax(0,1fr);
    width: 98% !important;
    gap: 17px;
  }
  .ev48-photo-hero-media {
    grid-row: 1;
    width: 100%;
    border-radius: 5px;
  }
  .ev48-photo-hero-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }
  .ev48-photo-hero-copy { grid-row: 2; padding: 0 10px; }
}
@media (max-width: 680px) {
  .eventide-header .eventide-header-inner,
  .eventide-header.is-floating .eventide-header-inner {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
    width: 96% !important;
    min-width: 0;
    height: 100% !important;
    gap: 6px !important;
  }
  .eventide-header .eventide-header-inner .eventide-logo,
  .eventide-header.is-floating .eventide-header-inner .eventide-logo {
    flex: 0 1 190px !important;
    width: 190px !important;
    max-width: calc(100% - 108px) !important;
    min-width: 0 !important;
    height: 67px !important;
    overflow: visible !important;
  }
  .eventide-header .eventide-logo img,
  .eventide-header.is-floating .eventide-logo img {
    width: 100% !important;
    max-width: 190px !important;
    height: 67px !important;
    object-fit: contain !important;
    object-position: left center !important;
    mix-blend-mode: normal !important;
  }
  .eventide-header .eventide-header-inner .ev20-wishlist-launch,
  .eventide-header.is-floating .eventide-header-inner .ev20-wishlist-launch {
    display: inline-flex !important;
    margin-left: 0 !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
  }
  .eventide-header .eventide-header-inner .eventide-menu-button,
  .eventide-header.is-floating .eventide-header-inner .eventide-menu-button {
    margin: 0 !important;
    flex: 0 0 42px !important;
    min-width: 42px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
  }
  .eventide-header .eventide-nav { min-height: calc(100dvh - 88px) !important; max-height: calc(100dvh - 88px) !important; }
  .eventide-header.is-floating .eventide-nav { min-height: calc(100dvh - 76px) !important; max-height: calc(100dvh - 76px) !important; }
  .ev48-photo-hero-copy h1 { font-size: clamp(29px, 7.5vw, 39px); }
  .ev48-photo-hero-copy p { font-size: 14px; line-height: 1.65; }
}
@media (max-width: 370px) {
  .eventide-header .eventide-header-inner .eventide-logo,
  .eventide-header.is-floating .eventide-header-inner .eventide-logo {
    flex-basis: 165px !important;
    width: 165px !important;
  }
  .eventide-header .eventide-logo img,
  .eventide-header.is-floating .eventide-logo img { max-width: 165px !important; }
}

/* Stage 49: optimized WebP logo uses <picture>; keep Stage 48 header geometry. */
.eventide-header .eventide-logo picture,
.eventide-header.is-floating .eventide-logo picture {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
}
.eventide-header .eventide-logo picture img,
.eventide-header.is-floating .eventide-logo picture img { display: block; }
.ev35-footer-logo picture { display: block; width: 100%; max-width: 100%; }
.ev35-footer-logo picture img { max-width: 100%; height: auto; display: block; }
