* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
p {
    margin: 5px 0;
    padding: 2px;
  }
.wrapper {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 3;
    perspective: 10px;
}

.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    padding: 0 2%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

nav {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 1.25rem 5%;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .name{
    width: 4rem;
    z-index: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    opacity: 1; 
    z-index: 1;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 250;
    border-radius: 0.75rem;
    margin-top: 10%;
    padding: 0.31rem 0.44rem;
    transition: 0.2s;
}
.nav-links li a:hover {
    background-color: #ffffff;
    color: rgb(36, 36, 36);
    font-weight: 450;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 1.56rem;
    height: 0.188rem;
    background-color: #fff;
    margin: 0.31rem 0;
    transition: all 0.3s ease;
}

.background-header {
    height: 12vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    background-image: url('images/NAV/Charcoal.jpg');
    background-size: cover; /* Makes the image cover the whole container */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Ensures the image doesn't repeat */
    position: relative; /* Keeps it in place within its parent container */
}
  .header h1, .header h2 {
    transition: opacity 0.3s ease;
  }
  .header {
    text-align: center;
    z-index: -1;
    margin-top: 20px;
}
  .header h1{
  font-size: 3rem;
  color: #4f4f4f;
  font-weight: 600;
  padding-bottom: 2rem;
  margin-top: 0.5rem;
  }
  .header h2{
  font-size: 1.25rem;
  color: #4f4f4f;
  font-weight: 540;
  margin-top: -0.5rem;
  }
  .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
  }
  
  .image-item {
    position: relative;
    overflow: hidden;
  }
  
  .image-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .image-item:hover img {
    transform: scale(1.05);
  }
  
  .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: rgb(233, 220, 220);
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .image-item:hover .image-caption {
    opacity: 1;
  }    
section {
    color: #4f4f4f;  
    padding: 0.5rem;
    line-height: 150%;
    background-color: rgb(253, 247, 233);
    z-index: 2;
}
  
.footer{
  padding: 1%;
  color: #4f4f4f;
  opacity: 80%;
}

    @media (max-aspect-ratio: 16/9){
    .home-video{
        width: auto;
        height: 100%;
        transform: translateZ(-10px) scale(2); 
}
    }

@media screen and (max-width: 768px) {
.image-table {
        max-width: 100%;
      }
.image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
        padding: 15px;
      }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        opacity: 1; 
        background-color: rgb(255, 255, 255);
        flex-direction: column;
        align-items: center;
        justify-content:flex-start;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0.625rem 0;
        padding-top: 1.875rem;
    }

    .nav-links li a {
        text-decoration: none;
        color: #4f4f4f;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .hamburger {
        display: block;
        z-index: 2;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(0.313rem, 0.313rem);
        background-color: #000000;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0.438rem, -0.375rem);
        background-color: #000000;
    }

    .content h1, .content h2, .content a {
        transition: opacity 0.3s ease;
    }

    p {
      margin: 1px 0;
      margin-right: 4%;
      margin-left: 4%;
      padding: 2px;
    }

    .header h1{
      font-size: 2rem;
      color: #4f4f4f;
      font-weight: 600;
      padding-bottom: 1rem;
      margin-top: 0.5rem;
      }

    .header h2{
      font-size: 1rem;
      font-weight: 400;
      }
    
}
@media screen and (max-width: 480px) {  
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      }
    }
