.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 0 1rem;
  }

  .lightbox-arrow.left { left: 10px; }
  .lightbox-arrow.right { right: 10px; }
  .lightbox-caption {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    color: #ddd;
    font-size: 1.2rem;
    font-family: 'Figtree', sans-serif;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5); /* dark translucent background */
    box-sizing: border-box;
  }

  .category-filters {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .category-filters button {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-family: 'Figtree', sans-serif;
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
  }

  .category-filters button.active,
  .category-filters button:hover {
    background-color: var(--secondary);
    color: var(--primary);
  }

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}