#navbar {
    position: sticky;
    top: 0;
    /* Remove overflow: hidden - it's causing the issue */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 10px var(--dark);
    background-color: #f0f0f0;
    z-index: 100;
    width: 100%; /* Ensure full width */
  }
  
  #navbar a {
    /* Remove float: left - not needed with flexbox */
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    color: orangered;
    position: relative;
    transition: color 0.3s ease; /* Smooth color transition */
  }
  
  #navbar a:hover {
    color: darkorange; /* Slightly darker on hover */
  }
  
  #navbar a::before {
    content: "";
    display: block;
    position: absolute;
    width: 70%;
    height: 3px;
    bottom: 0;
    left: 15%; /* Center the underline */
    background-color: var(--dark);
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: center; /* Grow from center */
  }
  
  #navbar a:hover::before,
  #navbar a.main-menu-active::before {
    transform: scaleX(1);
  }


.gallery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 100%;
}

  /* Base Heading Style */
.gallery-section h2 {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 1rem 0 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
  }
  
  /* Underline Effect */
  .gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 3px;
  }
  
  /* Alternative Color Variations */
  .gallery-section h2.primary {
    color: #3498db;
  }
  
  .gallery-section h2.accent {
    color: #e74c3c;
  }
  
  .gallery-section h2.dark {
    color: #2c3e50;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .gallery-section h2 {
      font-size: 1.75rem;
      margin: 1.5rem 0 1rem;
    }
  }
  
  /* Animation Option */
  .gallery-section h2.animated {
    animation: fadeInUp 0.6s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .images-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  .images-container img {
    max-width: 45%;
    border-radius: 5px;
    box-sizing: border-box;
    border: 10px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  @media screen and (max-width: 768px) {
    .images-container img {
      max-width: 90%;
    }
    
  }


































