 
    /* Search Box - Below header, right aligned */
    .search-container-wrapper {
      padding: 1rem 0;
    }

    .search-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 1rem;
      margin-bottom: -25px;
    }

    .search-box-container {
      position: relative;
      width: 250px;
      /* Decreased from 350px */
    }

    .search-box {
      width: 100%;
      padding: 0.7rem 0.9rem 0.7rem 2.3rem;
      border: 1px solid #cfcec8;
      border-radius: 8px;
      background: rgba(100, 116, 139, 0.1);
      color: #031329;
      font-size: 0.85rem;
      font-family: "Inter", sans-serif;
      transition: all 0.3s ease;
    }

    .search-box:focus {
      outline: none;
      border-color: #94a3b8;
      box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
      background: rgba(100, 116, 139, 0.2);
    }

    .search-box::placeholder {
      color: #94a3b8;
    }

    .search-icon {
      position: absolute;
      left: 0.7rem;
      /* Adjusted for smaller size */
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      font-size: 0.9rem;
      /* Smaller icon */
    }

    .search-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      margin-top: 0.25rem;
      font-size: 0.75rem;
      /* Smaller font */
      color: #e9edf3;
      text-align: center;
      background: rgba(75, 79, 88, 0.9);
      padding: 0.2rem 0.4rem;
      /* Smaller padding */
      border-radius: 4px;
      backdrop-filter: blur(10px);
      z-index: 100;
    }

    /* Sort Dropdown */
    .sort-container {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .sort-label {
      color: #475569;
      font-size: 0.85rem;
      font-weight: 500;
      white-space: nowrap;
    }

    .sort-dropdown {
      position: relative;
      min-width: 160px;
    }

    .sort-button {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      padding: 0.7rem 0.9rem;
      background: rgba(100, 116, 139, 0.1);
      border: 1px solid #cfcec8;
      border-radius: 8px;
      color: #031329;
      font-size: 0.85rem;
      font-family: "Inter", sans-serif;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 100%;
    }

    .sort-button:hover {
      border-color: #94a3b8;
      background: rgba(100, 116, 139, 0.2);
    }

    .sort-button i {
      color: #94a3b8;
      font-size: 0.8rem;
      transition: transform 0.3s ease;
    }

    .sort-button.active i {
      transform: rotate(180deg);
    }

    .sort-options {
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;
      margin-top: 0.5rem;
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 100;
      overflow: hidden;
    }

    .sort-options.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .sort-option {
      padding: 0.75rem 1rem;
      color: #334155;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .sort-option:hover {
      background: #f1f5f9;
      color: #1e293b;
    }

    .sort-option.active {
      background: #64748b;
      color: white;
    }

    .sort-option i {
      font-size: 0.8rem;
      opacity: 0.7;
    }

    .sort-option.active i {
      opacity: 1;
    }

    /* Slate Dark Theme - Event Cards */
    .events-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 1rem;
    }

    .event-card {
      background: #1e293b;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      border: 1px solid #475569;
      position: relative;
      height: 320px;
    }

    .event-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
      border-color: #94a3b8;
    }

    .event-image-container {
      width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
    }

    .event-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .event-card:hover .event-image {
      transform: scale(1.05);
    }

    .event-gradient-overlay {
      display: none;
    }

    .event-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 1.25rem;
      background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 70%, transparent 100%);
      display: flex;
      flex-direction: column;
      z-index: 10;
    }

    .event-title {
      margin: 0 0 0.5rem 0;
      font-size: 1.1rem;
      font-weight: 600;
      color: #f7fafd;
      line-height: 1.3;
    }

    .event-description {
      margin: 0 0 1rem 0;
      color: #e2e8f0;
      font-size: 0.85rem;
      line-height: 1.5;
      flex-grow: 1;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .event-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 0.75rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .event-date {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      color: #cbd5e1;
      font-size: 0.8rem;
      font-weight: 500;
    }

    .event-date i {
      color: #f1f5f9;
    }

    .event-photos {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      background: rgba(255, 255, 255, 0.1);
      padding: 0.35rem 0.75rem;
      border-radius: 6px;
      color: #f1f5f9;
      font-size: 0.75rem;
      font-weight: 500;
    }

    .event-photos i {
      color: #f1f5f9;
    }

    /* Back Button */
    .back-button {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      padding: 0.6rem 1.25rem;
      background: #3d4755;
      border: none;
      border-radius: 8px;
      color: #f1f5f9;
      text-decoration: none;
      font-weight: 500;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .back-button:hover {
      background: #475569;
      transform: translateX(-3px);
    }

    /* Masonry Grid Layout for Images */
    .masonry-grid {
      columns: 220px;
      column-gap: 12px;
      margin-top: 1.5rem;
    }

    .masonry-item {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      background: transparent;
      transition: all 0.3s ease;
      margin-bottom: 12px;
      break-inside: avoid;
    }

    .masonry-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .masonry-item img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;
      background: transparent;
    }

    .masonry-item:hover img {
      transform: scale(1.02);
    }

    .masonry-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
      color: white;
      padding: 0.75rem;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .masonry-item:hover .masonry-overlay {
      opacity: 1;
    }

    .masonry-name {
      font-size: 0.8rem;
      font-weight: 500;
      color: #f1f5f9;
      margin-bottom: 0.2rem;
      word-break: break-all;
    }

    .masonry-size {
      font-size: 0.7rem;
      color: #cbd5e1;
    }

    .masonry-type-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      background: rgba(0, 0, 0, 0.7);
      color: #f1f5f9;
      padding: 0.2rem 0.5rem;
      border-radius: 12px;
      font-size: 0.65rem;
      font-weight: 500;
    }

    /* Lightbox */
    .lightbox {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(15, 23, 42, 0.98);
      z-index: 1000;
      justify-content: center;
      align-items: center;
      padding: 1rem;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .lightbox.active {
      display: flex;
      opacity: 1;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    .lightbox-content {
      position: relative;
      width: 90%;
      height: 90%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .lightbox-image-container {
      position: relative;
      width: 100%;
      height: 70vh;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 15px;
    }

    .lightbox-image-container img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      background: transparent;
      display: block;
    }

    .lightbox-caption {
      text-align: center;
      color: #f1f5f9;
      margin-bottom: 15px;
      min-height: 50px;
    }

    .lightbox-caption h3 {
      color: #f1f5f9;
      margin: 0;
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 0.3rem;
    }

    .lightbox-caption .image-counter {
      font-size: 0.85rem;
      color: #94a3b8;
    }

    .lightbox-close {
      position: fixed;
      top: 25px;
      right: 25px;
      color: #f1f5f9;
      font-size: 2rem;
      cursor: pointer;
      background: rgba(100, 116, 139, 0.8);
      border: none;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      line-height: 1;
      border-radius: 50%;
      transition: all 0.3s ease;
      z-index: 1002;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .lightbox-close:hover {
      background: rgba(148, 163, 184, 0.8);
      transform: rotate(90deg);
    }

    /* Lightbox Navigation Buttons */
    .lightbox-nav {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(100, 116, 139, 0.8);
      border: none;
      color: #f1f5f9;
      width: 55px;
      height: 55px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      line-height: 1;
      font-size: 1.4rem;
      transition: all 0.3s ease;
      z-index: 1001;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .lightbox-nav:hover {
      background: rgba(148, 163, 184, 0.8);
      transform: translateY(-50%) scale(1.1);
    }

    .lightbox-nav.prev {
      left: 25px;
    }

    .lightbox-nav.next {
      right: 25px;
    }

    .lightbox-nav:disabled {
      opacity: 0.3;
      cursor: not-allowed;
      display: flex;
    }

    .lightbox-nav:disabled:hover {
      background: rgba(100, 116, 139, 0.8);
      transform: translateY(-50%);
    }

    /* Lightbox Thumbnails - Horizontal Scroll */
    .lightbox-thumbnails-container {
      width: 100%;
      max-width: 700px;
      margin: 0 auto;
      padding: 8px 0;
    }

.lightbox-thumbnails {
  display: flex;
  justify-content: center; /* 👈 THIS */
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #64748b #1e293b;
}


    .lightbox-thumbnails::-webkit-scrollbar {
      height: 4px;
    }

    .lightbox-thumbnails::-webkit-scrollbar-track {
      background: #1e293b;
      border-radius: 2px;
    }

    .lightbox-thumbnails::-webkit-scrollbar-thumb {
      background: #64748b;
      border-radius: 2px;
    }

    .lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }

    .thumbnail {
      flex: 0 0 auto;
      width: 70px;
      height: 70px;
      border-radius: 6px;
      overflow: hidden;
      cursor: pointer;
      opacity: 0.6;
      transition: all 0.3s ease;
      border: 2px solid transparent;
      background: #475569;
    }

    .thumbnail:hover {
      opacity: 0.8;
      transform: scale(1.05);
    }

    .thumbnail.active {
      opacity: 1;
      border-color: #f1f5f9;
      transform: scale(1.1);
    }

    .thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Loading */
    .loading {
      text-align: center;
      padding: 3rem;
      color: #94a3b8;
    }

    .loading i {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: #64748b;
      animation: spin 1.5s linear infinite;
    }

    @keyframes spin {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    .loading p {
      font-size: 1rem;
      color: #cbd5e1;
    }

    /* Page Title and Subtitle */
    .page-header {
      padding: 2rem 0;
      text-align: center;
    }

    .page-header h1 {
      margin: 0 0 0.5rem 0;
      color: #3e444b;
      font-size: 2.5rem;
      font-weight: 700;
    }

    .page-header .subtitle {
      color: #94a3b8;
      font-size: 1.1rem;
      max-width: 600px;
      margin: 0 auto;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .search-box-container {
        width: 220px;
        /* Adjusted for tablet */
      }

      .sort-dropdown {
        min-width: 140px;
      }

      .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      }

      .masonry-grid {
        columns: 200px;
        column-gap: 10px;
      }

      .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
      }

      .thumbnail {
        width: 65px;
        height: 65px;
      }

      .page-header h1 {
        font-size: 2.2rem;
      }
    }

    @media (max-width: 768px) {
      .search-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: -15px;
      }

      .search-box-container {
        width: 100%;
        max-width: 350px;
        order: 1;
      }

      .sort-container {
        order: 2;
        width: 100%;
        justify-content: center;
      }

      .sort-dropdown {
        min-width: 180px;
      }

      .search-box {
        padding: 0.65rem 0.8rem 0.65rem 2.2rem;
        font-size: 0.8rem;
      }

      .search-icon {
        left: 0.65rem;
        font-size: 0.85rem;
      }

      .lightbox-content {
        width: 95%;
      }

      .lightbox-caption h3 {
        font-size: 1.1rem;
      }

      .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
      }

      .masonry-grid {
        columns: 180px;
        column-gap: 8px;
      }

      .lightbox-image-container {
        height: 60vh;
      }

      .thumbnail {
        width: 60px;
        height: 60px;
      }

      .page-header h1 {
        font-size: 2rem;
      }

      .page-header .subtitle {
        font-size: 1rem;
      }
    }

    @media (max-width: 600px) {
      .search-container-wrapper {
        padding: 0.75rem 0;
      }

      .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }

      .event-card {
        height: 300px;
      }

      .event-image-container {
        height: 100%;
      }

      .event-content {
        padding: 1rem;
        height: auto;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 70%, transparent 100%);
      }

      .masonry-grid {
        columns: 150px;
        column-gap: 6px;
      }

      .lightbox {
        padding: 0.5rem;
      }

      .lightbox-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
      }

      .lightbox-nav.prev {
        left: 10px;
      }

      .lightbox-nav.next {
        right: 10px;
      }

      .lightbox-image-container {
        height: 50vh;
      }

      .thumbnail {
        width: 50px;
        height: 50px;
      }

      .page-header {
        padding: 1.5rem 0;
      }

      .page-header h1 {
        font-size: 1.8rem;
      }

      .page-header .subtitle {
        font-size: 0.95rem;
      }

      .sort-button {
        padding: 0.65rem 0.8rem;
        font-size: 0.8rem;
      }

      .sort-option {
        padding: 0.65rem 0.9rem;
        font-size: 0.8rem;
      }
    }

    @media (max-width: 480px) {
      .masonry-grid {
        columns: 1;
        column-gap: 0;
      }

      .masonry-item {
        margin-bottom: 8px;
      }

      .page-header h1 {
        font-size: 1.6rem;
      }

      .search-container {
        flex-direction: column;
        align-items: stretch;
      }

      .search-box-container,
      .sort-container {
        width: 100%;
      }

      .sort-dropdown {
        min-width: 100%;
      }
    }

    /* Empty State */
    .empty-state {
      text-align: center;
      padding: 3rem 1.5rem;
      color: #94a3b8;
    }

    .empty-state i {
      font-size: 2.5rem;
      margin-bottom: 0.8rem;
      color: #64748b;
    }

    .empty-state h3 {
      color: #cbd5e1;
      margin-bottom: 0.4rem;
      font-size: 1.2rem;
    }

    .empty-state p {
      color: #94a3b8;
      max-width: 350px;
      margin: 0 auto;
      font-size: 0.9rem;
    }
 