* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

header {
  background: linear-gradient(90deg, #4b0082, #000);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between; /* Ensure space between logo and hamburger */
  align-items: center;
  flex: 1; /* Make it take up the full width of the container */
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Adjust gap as needed */
  cursor: pointer;
  z-index: 10;
  margin-left: 20px; /* Pushes hamburger away from the logo */
}

.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background-color: white;
}

.nav-left, .nav-right {
  display: none; /* Hide desktop nav by default */
}

/* Mobile Nav */
.nav-mobile {
  display: none; /* Hidden by default */
  flex-direction: column;
  gap: 1em;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, #4b0082, #000);
  padding: 1em;
  z-index: 1000;
}

.nav-mobile a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  text-align: center;
}


/* Media Query for Mobile View */
@media screen and (max-width: 768px) {
  .nav-left, .nav-right {
    display: none; /* Hide desktop nav */
  }

  .hamburger {
    display: block; /* Show hamburger */
  }

  .nav-mobile.active {
    display: flex;
  }
}

.gallery-section {
  padding: 20px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.gallery-item {
  width: 100%;
  position: relative;
}

.image-wrapper {
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: block;
}

.gallery-item .overlaywhite {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-item:hover .overlaywhite {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr; 
  }
}
