/* Global Styles to Ensure Scrolling and Hide Scrollbar */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
  }
  
  /* Header Styles (unchanged) */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: #E6ECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  nav {
    display: flex;
    gap: 15px;
  }
  nav a {
    text-decoration: none;
    color: #1A3C4D;
    font-size: 0.9rem;
    font-weight: 500;
  }
  nav a:hover {
    color: #333;
  }
  
  /* Story Section (unchanged) */
  .stories-container {
    width: 100%;
    height: calc(100vh - 30px);
    position: fixed;
    top: 30px;
    left: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .stories-track {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .story-item {
    width: 300px;
    text-decoration: none;
    color: #333;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .story-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
  }
  .story-text {
    text-align: left;
    color: #1A3C4D;
    opacity: 0;
  }
  .story-text h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: bold;
  }
  .story-text p {
    margin: 0;
    font-size: 1rem;
  }
  /* Photo Gallery (unchanged) */
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 30px;
    left: 0;
    box-sizing: border-box;
  }
  .photo-item {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .photo-gallery .photo-item:nth-child(5n+1) {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .photo-gallery .photo-item:nth-child(5n+2) {
    grid-column: 3;
    grid-row: auto;
  }
  .photo-gallery .photo-item:nth-child(5n+3) {
    grid-column: 1;
    grid-row: auto;
  }
  .photo-gallery .photo-item:nth-child(5n+4) {
    grid-column: 2;
    grid-row: auto;
  }
  .photo-gallery .photo-item:nth-child(5n+5) {
    grid-column: 3;
    grid-row: auto;
  }
  .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
  }
  .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .photo-overlay h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
  }
  .photo-item:hover img {
    opacity: 0.7;
  }
  .photo-item:hover .photo-overlay {
    opacity: 1;
  }
  
  /* Individual Story Pages (unchanged) */
  .story-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
  }
  .story-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
  }
  .story-content h2 {
    font-size: 1.5rem;
    color: #1A3C4D;
    margin-bottom: 10px;
  }
  .story-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
  }
  
  /* Home Page (unchanged) */
  .gif-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
  }
  .work-in-progress-gif {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
  }
  main {
    padding-top: 30px;
    min-height: 100vh;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  main:has(.photo-gallery) {
    padding: 0;
    margin: 0;
  }
  
  .about-me {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-me-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
  }
  .about-me-text {
    flex: 1;
  }
  .about-me-text h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #1A3C4D;
  }
  .about-me-text p {
    margin: 0;
    font-size: 1rem;
    color: #333;
  }
  
  /* Mobile Adjustments */
  @media (max-width: 768px) {
    .story-item {
      width: 200px;
      flex-direction: column;
      gap: 10px;
    }
    .story-text {
      text-align: center;
    }
    .about-me {
      flex-direction: column;
      text-align: center;
    }
    .about-me-photo {
      margin-bottom: 20px;
    }
    nav {
      gap: 10px;
    }
    nav a {
      font-size: 0.8rem;
    }
    .photo-gallery {
      grid-template-columns: 1fr;
      grid-auto-rows: auto;
      width: 100vw;
      height: auto;
      top: 30px;
    }
    .photo-gallery .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
    .photo-item img {
      height: auto;
      aspect-ratio: 3 / 2;
    }
    .photo-overlay h3 {
      font-size: 1rem;
    }
  }
  /* Custom layout for /vietnam/ page (non-repeating) */
  body.page-vietnam .photo-gallery {
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    grid-auto-rows: minmax(50vh, 1fr); /* Row height */
  }
  /* Define specific positions for each photo */
  body.page-vietnam .photo-gallery .photo-item:nth-child(1) {
    grid-column: 1 / 3; /* First photo spans 2 columns */
    grid-row: 1; /* First row */
  }
  body.page-vietnam .photo-gallery .photo-item:nth-child(2) {
    grid-column: 3; /* Second photo in the 3th column */
    grid-row: 1; /* First row */
  }
  body.page-vietnam .photo-gallery .photo-item:nth-child(3) {
    grid-column: 1; /* Third photo in the 1st column */
    grid-row: 2; /* Second row */
  }
  body.page-vietnam .photo-gallery .photo-item:nth-child(4) {
    grid-column: 2; 
    grid-row: 2; /* Second row */
  }
  body.page-vietnam .photo-gallery .photo-item:nth-child(5) {
    grid-column: 3; 
    grid-row: 2; /* Second row */
  }
  /* Adjust mobile layout for /vietnam/ */
  @media (max-width: 768px) {
    body.page-vietnam .photo-gallery {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    body.page-vietnam .photo-gallery .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }
  .photo-abandoned {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 30px;
    left: 0;
    box-sizing: border-box;
  }
   
  /* Define specific positions for each photo */
  .photo-abandoned .photo-item:nth-child(1) {
    grid-column: 1 ; /* First photo spans 2 columns */
    grid-row: 1; /* First row */
  }
  .photo-abandoned .photo-item:nth-child(2) {
    grid-column: 2 / 4; /* Second photo in the 3th column */
    grid-row: 1; /* First row */
  }
  .photo-abandoned .photo-item:nth-child(3) {
    grid-column: 1 / 4; /* Third photo in the 1st column */
    grid-row: 2 / 4 ; /* Second row */
  }
  .photo-abandoned .photo-item:nth-child(4) {
    grid-column: 1 / 3; 
    grid-row: 4; /* Second row */
  }
  .photo-abandoned .photo-item:nth-child(5) {
    grid-column: 3; 
    grid-row: 4; /* Second row */
  }
  .photo-abandoned .photo-item:nth-child(6) {
    grid-column: 1; 
    grid-row: 5; 
  }
  .photo-abandoned .photo-item:nth-child(7) {
    grid-column: 2; 
    grid-row: 5; 
  }
  .photo-abandoned .photo-item:nth-child(8) {
    grid-column: 3; 
    grid-row: 5; 
  }
  /* Adjust mobile layout for /abandoned/ */
  @media (max-width: 768px) {
    .photo-abandoned {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    .photo-abandoned .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }
  .photo-flowers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 30px;
    left: 0;
    box-sizing: border-box;
  }

    /* Define specific positions for each photo */
    .photo-flowers .photo-item:nth-child(1) {
      grid-column: 1 / 3; /* First photo spans 2 columns */
      grid-row: 1 / 3; /* First row */
    }
    .photo-flowers .photo-item:nth-child(2) {
      grid-column: 3; /* Second photo in the 3th column */
      grid-row: 1; /* First row */
    }
    .photo-flowers .photo-item:nth-child(3) {
      grid-column: 3; /* Third photo in the 1st column */
      grid-row: 2; /* Second row */
    }
    .photo-flowers .photo-item:nth-child(4) {
      grid-column: 1 / 3; 
      grid-row: 3; /* Second row */
    }
    .photo-flowers .photo-item:nth-child(5) {
      grid-column: 3; 
      grid-row: 3; 
    }
    .photo-flowers .photo-item:nth-child(6) {
      grid-column: 1 / 3; 
      grid-row: 4; 
    }
    .photo-flowers .photo-item:nth-child(7) {
      grid-column: 3; 
      grid-row: 4; 
    }
    .photo-flowers .photo-item:nth-child(8) {
      grid-column: 1; 
      grid-row: 5; 
    }
    .photo-flowers .photo-item:nth-child(9) {
      grid-column: 2 / 4; 
      grid-row: 5; 
    }
    /* Adjust mobile layout for /flowers/ */
    @media (max-width: 768px) {
      body.page-flowers .photo-flowers {
        grid-template-columns: 1fr; /* Single column on mobile */
        grid-auto-rows: auto;
      }
      body.page-flowers .photo-flowers .photo-item:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
      }
    }
  /* Custom layout for /experimental/ page (non-repeating) */
  body.page-experimental .photo-gallery {
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    grid-auto-rows: minmax(50vh, 1fr); /* Row height */
  }
  /* Define specific positions for each photo */
  body.page-experimental .photo-gallery .photo-item:nth-child(1) {
    grid-column: 1 / 3; /* First photo spans 2 columns */
    grid-row: 1; /* First row */
  }
  body.page-experimental .photo-gallery .photo-item:nth-child(2) {
    grid-column: 3; /* Second photo in the 3th column */
    grid-row: 1; /* First row */
  }
  body.page-experimental .photo-gallery .photo-item:nth-child(3) {
    grid-column: 1; /* Third photo in the 1st column */
    grid-row: 2; /* Second row */
  }
  body.page-experimental .photo-gallery .photo-item:nth-child(4) {
    grid-column: 2; 
    grid-row: 2; /* Second row */
  }
  body.page-experimental .photo-gallery .photo-item:nth-child(5) {
    grid-column: 3; 
    grid-row: 2; /* Second row */
  }
  /* Adjust mobile layout for /experimental/ */
  @media (max-width: 768px) {
    body.page-experimental .photo-gallery {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    body.page-experimental .photo-gallery .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }

  .photo-people {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 0px;
    left: 0;
    box-sizing: border-box;
  }
  /* Define specific positions for each photo */
  .photo-people .photo-item:nth-child(1) {
    grid-column: 1; 
    grid-row: 1; 
  }
  .photo-people .photo-item:nth-child(2) {
    grid-column: 2; 
    grid-row: 1; 
  }
  .photo-people .photo-item:nth-child(3) {
    grid-column: 3; 
    grid-row: 1; 
  }
  .photo-people .photo-item:nth-child(4) {
    grid-column: 1; 
    grid-row: 2; 
  }
  .photo-people .photo-item:nth-child(5) {
    grid-column: 2; 
    grid-row: 2; 
  }
  .photo-people .photo-item:nth-child(6) {
    grid-column: 3; 
    grid-row: 2; 
  }
  /* Adjust mobile layout for /abandoned/ */
  @media (max-width: 768px) {
    .photo-people {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    .photo-people .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }
  .photo-peoplenadia {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 0px;
    left: 0;
    box-sizing: border-box;
  }
  /* Define specific positions for each photo */
  .photo-peoplenadia .photo-item:nth-child(1) {
    grid-column: 1; 
    grid-row: 1; 
  }
  .photo-peoplenadia .photo-item:nth-child(2) {
    grid-column: 2; 
    grid-row: 1; 
  }
  .photo-peoplenadia .photo-item:nth-child(3) {
    grid-column: 3; 
    grid-row: 1; 
  }
  .photo-peoplenadia .photo-item:nth-child(4) {
    grid-column: 1; 
    grid-row: 2; 
  }
  .photo-peoplenadia .photo-item:nth-child(5) {
    grid-column: 2; 
    grid-row: 2; 
  }
  .photo-peoplenadia .photo-item:nth-child(6) {
    grid-column: 3; 
    grid-row: 2; 
  }
  /* Adjust mobile layout for /abandoned/ */
  @media (max-width: 768px) {
    .photo-peoplenadia {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    .photo-peoplenadia .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }
  .photo-peoplemeo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 0px;
    left: 0;
    box-sizing: border-box;
  }
  /* Define specific positions for each photo */
  .photo-peoplemeo .photo-item:nth-child(1) {
    grid-column: 1; 
    grid-row: 1; 
  }
  .photo-peoplemeo .photo-item:nth-child(2) {
    grid-column: 2; 
    grid-row: 1; 
  }
  .photo-peoplemeo .photo-item:nth-child(3) {
    grid-column: 3; 
    grid-row: 1; 
  }
  .photo-peoplemeo .photo-item:nth-child(4) {
    grid-column: 1; 
    grid-row: 2; 
  }
  .photo-peoplemeo .photo-item:nth-child(5) {
    grid-column: 2; 
    grid-row: 2; 
  }
  .photo-peoplemeo .photo-item:nth-child(6) {
    grid-column: 3; 
    grid-row: 2; 
  }
  .photo-peoplemeo .photo-item:nth-child(7) {
    grid-column: 1 / 3; 
    grid-row: 3; 
  }
  .photo-peoplemeo .photo-item:nth-child(8) {
    grid-column: 3; 
    grid-row: 3; 
  }
  /* Adjust mobile layout for /abandoned/ */
  @media (max-width: 768px) {
    .photo-peoplemeo {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    .photo-peoplemeo .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }
  .photo-peopleicecream {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 0px;
    left: 0;
    box-sizing: border-box;
  }
  /* Define specific positions for each photo */
  .photo-peopleicecream .photo-item:nth-child(1) {
    grid-column: 1 / 3; 
    grid-row: 1 / 3; 
  }
  .photo-peopleicecream .photo-item:nth-child(2) {
    grid-column: 3; 
    grid-row: 1; 
  }
  .photo-peopleicecream .photo-item:nth-child(3) {
    grid-column: 3; 
    grid-row: 2; 
  }

  /* Adjust mobile layout for /abandoned/ */
  @media (max-width: 768px) {
    .photo-peopleicecream {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    .photo-peopleicecream .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }
  .photo-peopledje {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 0px;
    left: 0;
    box-sizing: border-box;
  }
  /* Define specific positions for each photo */
  .photo-peopledje .photo-item:nth-child(1) {
    grid-column: 1 / 3; 
    grid-row: 1; 
  }
  .photo-peopledje .photo-item:nth-child(2) {
    grid-column: 3; 
    grid-row: 1; 
  }
  .photo-peopledje .photo-item:nth-child(3) {
    grid-column: 1; 
    grid-row: 2; 
  }
  .photo-peopledje .photo-item:nth-child(4) {
    grid-column: 2 / 4; 
    grid-row: 2; 
  }
  .photo-peopledje .photo-item:nth-child(5) {
    grid-column: 1 / 3; 
    grid-row: 3; 
  }
  .photo-peopledje .photo-item:nth-child(6) {
    grid-column: 3; 
    grid-row: 3; 
  }
  .photo-peopledje .photo-item:nth-child(7) {
    grid-column: 1; 
    grid-row: 4; 
  }
  .photo-peopledje .photo-item:nth-child(8) {
    grid-column: 2 / 4; 
    grid-row: 4; 
  }

  /* Adjust mobile layout for /abandoned/ */
  @media (max-width: 768px) {
    .photo-peopledje {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    .photo-peopledje .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }
  .photo-peoplebml {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(50vh, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F8F8F8;
    width: 100vw;
    min-height: calc(100vh - 30px);
    position: relative;
    top: 0px;
    left: 0;
    box-sizing: border-box;
  }
  /* Define specific positions for each photo */
  .photo-peoplebml .photo-item:nth-child(1) {
    grid-column: 1; 
    grid-row: 1; 
  }
  .photo-peoplebml .photo-item:nth-child(2) {
    grid-column: 2; 
    grid-row: 1; 
  }
  .photo-peoplebml .photo-item:nth-child(3) {
    grid-column: 3; 
    grid-row: 1; 
  }

  /* Adjust mobile layout for /abandoned/ */
  @media (max-width: 768px) {
    .photo-peoplebml {
      grid-template-columns: 1fr; /* Single column on mobile */
      grid-auto-rows: auto;
    }
    .photo-peoplebml .photo-item:nth-child(n) {
      grid-column: 1;
      grid-row: auto;
    }
  }