body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
  }

  .gallery-container {
    display: flex;
    min-height: 100vh;
  }

  .categories-sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    position: sticky;
    top: 5%;
    height: 100vh;
    overflow-y: auto;
  }

  .categories-sidebar h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #34495e;
  }

  .category-list {
    list-style: none;
    padding: 0;
  }

  .category-list li {
    margin-bottom: 10px;
  }

  .category-list a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .category-list a:hover {
    background-color: #34495e;
    color: #fff;
  }

  .gallery-content {
    flex: 1;
    padding: 20px;
  }

  .gallery-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
  }

  .gallery-section h2 {
    color: #2c3e50;
    margin-top: 0;
  }

  .image-grid {
    display: grid;
    gap: 40px;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .image-grid img {
    width: 100%;
    height: auto;
    border-radius: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
  }

  .image-grid img:hover {
    transform: scale(1.03);
  }

  /* Mobile Toggle Button */
  .mobile-toggle-btn {
    display: none;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
  }

  .mobile-toggle-btn i {
    margin-right: 10px;
  }

  /* Image Viewer Modal */
  .image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    display: block;
    margin: 60px auto;
    max-width: 90%;
    max-height: 80vh;
  }

  .close-btn {
    position: absolute;
    top: 5px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  .close-btn:hover {
    color: #ccc;
  }

  .caption {
    color: white;
    text-align: center;
    padding: 10px 20px;
    max-width: 80%;
    margin: 0 auto 30px;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .gallery-container {
      flex-direction: column;
    }

    .mobile-toggle-btn {
      display: block;
    }

    .categories-sidebar {
      width: 100%;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
      position: relative;
      padding: 0 20px;
      height: auto;
    }

    .categories-sidebar.active {
      max-height: 500px;
      padding: 20px;
    }

    .category-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .category-list li {
      margin-bottom: 0;
    }

    /* 2-column grid for mobile */
    .image-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .image-viewer-modal {
      display: none;
      position: fixed;
      z-index: 1000;
      width: 100%;
      height: auto;
      background-color: rgba(0, 0, 0, 0.9);
      overflow: auto;
      align-items: center;
      justify-content: center;
    }

  }

  @media (max-width: 480px) {

    /* Optional: Reduce gap on very small screens */
    .image-grid {
      gap: 10px;
    }
  }

  .club-header {
    background-color: #172A3A;
  }