body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 20px 0;
}

.logo img {
  padding-top: 30px;
  height: 150px;
}

nav {
  padding-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.menu {
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin: 10px 0;
  padding: 0;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 38px;
  text-decoration: none;
  color: #000;
  font-weight: 300;
}

#overmij {
  opacity: 50%;
  transition: ease-out 200ms;
}

#overmij:hover {
  opacity: 100%;
  transition: ease-in 200ms;
}

#werk {
  opacity: 50%;
  transition: ease-out 200ms;
}

#werk:hover {
  opacity: 100%;
  transition: ease-in 200ms;
}

#contact {
  opacity: 50%;
  transition: ease-out 200ms;
}

#contact:hover  {
  opacity: 100%;
  transition: ease-out 200ms;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
}

.hamburger-menu span {
  height: 3px;
  width: 25px;
  background: #000;
  margin: 4px 0;
}
main {
  padding: 20px;
  width: 80%; /* Changed from 100% to 80% */
  max-width: 1000px; /* Added max-width */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-container, .video-container, .grid-container {
  width: 100%;
  max-width: 1000px; /* Same max-width for text, video, and grid */
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;

}

.grid-item {
  position: relative;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;

}

.grid-item img:hover {
  filter: grayscale(0%);
}

/* Lightbox */
.lightbox {
  display: none; 
  position: fixed; 
  z-index: 1; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.9); 
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


.about {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  text-align: left; 
}

.about-img img {
  height: 500px;
  margin-right: 20px;
}

.about-text {
  max-width: 800px;
  font-size: large;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .menu {
      display: none;
      flex-direction: column;
      width: 100%;
  }

  .menu.active {
      display: flex;
  }

  .hamburger-menu {
      display: flex;
  }

  header {
      position: relative;
  }

  .logo {
      order: 1;
  }

  nav {
      order: 2;
  }

  .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}