/* Home: mobile photograph below a bordeaux navigation bar. */
@media (max-width: 600px) {
  .landing > .hero {
    --mobile-nav-height: 84px;
    background: #482127;
  }
  .landing > .hero > .hero-editorial-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 75px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    height: var(--mobile-nav-height);
    padding: 20px 24px;
    background: #482127;
  }
  /* Override the legacy mobile link margin equally for both controls. */
  .landing > .hero > .hero-editorial-nav > .nav-product,
  .landing > .hero > .hero-editorial-nav > .menu-trigger {
    margin: 0;
    padding: 0;
    border: 0;
    height: 44px;
    min-height: 44px;
    align-self: center;
    display: flex;
    align-items: center;
    font: 400 14px/1.4 Montserrat, Arial, sans-serif;
    letter-spacing: -.03em;
  }
  .landing > .hero > .hero-editorial-nav > .nav-product {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    white-space: nowrap;
  }
  .landing > .hero > .hero-editorial-nav > .identity {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0 !important;
  }
  .landing > .hero > .hero-editorial-nav > .menu-trigger {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    white-space: nowrap;
  }
  .landing > .hero > .portrait {
    top: var(--mobile-nav-height);
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100% - var(--mobile-nav-height));
    max-width: none;
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
    scale: 1;
    clip-path: none;
  }
  .landing > .hero > .shade { top: var(--mobile-nav-height); }
}

/* Mobile second slide: product details directly below the second image. */
@media (max-width: 600px) {
  #story-378 .wine-product {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }
  #story-378 .wine-photo {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  #story-378 .wine-label {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding-top: 0;
    margin: 0;
    text-align: center;
  }
}

/* Mobile fourth slide: keep the model on the right of the source in view. */
@media (max-width: 600px) {
  #story-380 .bed-photo { object-position: 100% 50%; }
  #story-380 .bed-copy { top: 16%; text-align: left; }
}

/* Mobile: reveal the return arrow only after a tap on the last section. */
@media (max-width: 600px) {
  #story-377 .section-back-top,
  #story-377:hover .section-back-top { opacity: 0; pointer-events: none; }
  #story-377.top-revealed .section-back-top,
  #story-377 .section-back-top:focus-visible { opacity: 1; pointer-events: auto; }
}
