* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
p {
  margin: 4px 0;
  padding: 5px;
}


.wrapper {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 3;
  perspective: 10px;
}

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;
}
.header h1{
font-size: 3rem;
color: #4f4f4f;
font-weight: 600;
padding-bottom: 1rem;
margin-top: 1rem;
line-height: 1;
}

.header h2{
font-size: 1.4rem;
color: #4f4f4f;
font-weight: 400;
padding-top: 1rem;
}
.header h3{
  font-size: 1.3rem;
  color: #4f4f4f;
  font-weight: 550;
  line-height: normal;
  }
.header h4{
    font-size: 1.1rem;
    color: #4f4f4f;
    font-weight: 400;
    padding-top: 0px;
}
.p-h3 {
  font-size: 1em;
  line-height: normal;
  margin-top: 6px;
  margin-bottom: 10px;
}
.p-h4{
  font-size: 1.1em;
  line-height: 0.1;
  margin-top: 11px;
}
section {
  align-items: center;
  color: #4f4f4f;  
  padding: 2rem;
  line-height: 150%;
  background-color: rgb(253, 247, 233);
  z-index: 2;
}

.youtube-player {
width: 60%;
aspect-ratio: 16 / 9;
margin: 0 auto; 
display: block;
}

.youtube-player iframe {
position: relative;
width: 100%;
height: 100%;
}

.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%;
    }

  .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: 3px 0;
    padding: 8px;
  }

  .header h1{
    font-size: 2rem;
    font-weight: 550;
  }
  .header h2{
    font-size: 1rem;
    font-weight: 450;
    padding-top: 0.5rem;
  }
  
  .header h3{
    font-size: 1rem;
    font-weight: 550;
    line-height: 0.5;
    }
.p-h3{
  line-height: 0.5;
}
  .header h4{
    font-size: 1rem;
    color: #4f4f4f;
    font-weight: 400;
}
.p-h4{
  font-size: 1em;
  line-height: 0.2;
  margin-top: 1px;
}
  .youtube-player {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
  }
@media screen and (max-width: 480px) {  
  .image-gallery {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }
}