@media screen and (max-width: 480px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
 .mobile-body {
    display: block;
    margin-top: 150px;
  }
  h1 {
    font-size: 2rem;
    text-align: center;
  }

  .heading-1 {
    margin-top: 20vh;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);

  }

  figcaption {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 8px;
  }

  .heading-2, .heading-3 {
    font-size: 2rem;
  }

  .heading-3 {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.2;
  text-wrap: balance;
}
div.story-image-div {
        display: flex;
        max-width: 100% !important;
        width: 90%;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        }

  .heading-5 {
    z-index: 0;
  }

  /* HERO BACKGROUND (random image is set via JS) */
  .background-container {
    width: 100vw;
    height: 100vh;
    background: #333 no-repeat center center;
    background-size: 200%;
    background-position: calc(50% - 20px) 30%;

    /* iOS + mobile friendliness */
    background-attachment: scroll;

    position: relative;
    overflow: hidden;
  }

  /* Dark overlay (won't block clicks) */
  .background-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28); /* tweak 0.20–0.40 */
    pointer-events: none;
    z-index: 0;
  }

  /* Keep hero text/CTA above overlay but BELOW the mobile menu */
  .hero-section,
  .heading-1,
  .cta-container {
    position: relative;
    z-index: 2000;
  }

  /* NAV + HAMBURGER always above hero */
  .nav-container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
  }

  img#hamburger{
    display: block;
    position: relative;
    margin-right: 12px;
    z-index: 10001;
  }

  /* MOBILE MENU overlays everything (prevents H1/CTA showing over it) */
  #nav-list{
    display: none;
    position: fixed;
    top: 70px;          /* adjust if your nav bar height differs */
    left: 0;
    width: 100%;
    background: #000;
    z-index: 10002;
    padding: 12px 0;
  }

  #nav-list.active{
    display: flex;
    flex-direction: column;
  }
}

/* --- everything below this line is your existing file content --- */


    @media (hover: hover) {
        li.arlo-link:hover {
            transform: scale(1.05);
        }
    
        .arlo-link a:hover {
            transform: scale(1.1);
            background-color: rgba(234, 126, 126, 0.25);
        }

        .gallery-item img:hover {
            transform: scale(1.05);
        }
    }

@media screen and (min-width: 481px) and (max-width: 840px) {
    body {
  overflow-x: hidden;
}
h1, h2, h3 {
    z-index: 2000;
}
.heading-1 {
    display: block;
    justify-content: left;
}
    .video-flex {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    div.story-image-div {
        display: flex;
        max-width: 100% !important;
        width: 90%;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        }
    .arlo-link a:active {
        transform: scale(1.05); /* Slight effect on tap */
        background-color: rgba(234, 126, 126, 0.35); /* Darker for visual feedback */
        }

    /* Hamburger Menu */
    img#hamburger {
            display: block;
            padding-bottom: 2vh;
            position: relative;
            z-index: 10001;
            /* Show on mobile screens */
        }

        .heading-3 {
          text-align: center;
          max-width: 90%;
          margin: 0 auto;
          line-height: 1.2;
          text-wrap: balance;
        }
    .nav-container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
  }

  #nav-list{
    display: none;
    position: fixed;
    top: 70px;     /* match your nav height */
    left: 0;
    width: 100%;
    background: #000;
    z-index: 10002;
    padding: 12px 0;
  }

  #nav-list.active{
    display: flex;
    flex-direction: column;
  }

    .nav-link li {
        text-align: center;
        padding: 1rem 0;
        border: 1px solid #fff;
        color: #fff;
    }

    .nav-link a {
        width: 80%;
        text-align: center;
        color: #fff;  
    }
    
    .hamburger {
        cursor: pointer;
    }

    .background-container::before { pointer-events: none; }

    @media (max-width: 768px) {
  /* give the whole list breathing room */
  .arlo-list {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* make each card feel like a card, not a billboard */
  .arlo-link {
    width: 100%;
    max-width: 520px;          /* stops them from getting huge on larger phones */
    margin: 12px auto;         /* centers + adds spacing */
    padding: 12px 14px;        /* smaller padding */
    box-sizing: border-box;

    display: flex;
    flex-direction: column;    /* KEY: stack icon above text on mobile */
    align-items: center;
    text-align: center;

    overflow: hidden;
  }

  /* shrink logos/icons so they don't dominate */
  .arlo-link img {
    width: 56px;               /* adjust 48–64 to taste */
    height: auto;
    max-width: 100%;
    margin-bottom: 8px;
  }

  /* fix the “long line” problem + make text prettier */
  .arlo-link a,
  .arlo-link p,
  .arlo-link span,
  .arlo-link div {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;

    font-size: 1rem;           /* adjust down if needed (0.95rem) */
    line-height: 1.25;         /* tighter vertical rhythm */
  }

  /* optional: if headings are giant, tame them */
  .arlo-link h1,
  .arlo-link h2,
  .arlo-link h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0;
  }
}
    #nav-list {
        position: absolute;
        top: -100%; /* Start off-screen */
        left: 0;
        width: 100%;
        background: rgb(0, 0, 0);
        transition: top 0.5s ease-in-out;
    }
#nav-list.active { top: 60px; } /* Slide in from the top */
}