#gallery {
    padding: 5rem 0;
  }

  .text-center {
    text-align: center;
  }

  .gallery-header {
    margin-bottom: 4rem;
  }

  .gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .gallery-description {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 48rem;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
  }

  .filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
  }

  .filter-button {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: #f1f1f1;
    color: #4a5568;
  }

  .filter-button:hover {
    background-color: #e2e8f0;
  }

  .filter-button.active {
    background-color: #0d9488;
    color: white;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }

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

  @media (min-width: 1024px) {
    .gallery-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translate(10px, 10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .gallery-item-inner {
    position: relative;
    height: 16rem;
    overflow: hidden;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .gallery-item:hover img {
    transform: scale(1.1);
  }

  .gallery-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
  }

  .gallery-item:hover .gallery-item-overlay {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .gallery-item-text {
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

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

  /* Lightbox */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

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

  .lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
  }

  .lightbox-prev, .lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-image {
    max-height: 85vh;
    max-width: 85vw;
    object-fit: contain;
  }

  /* Animation class */
  .in-view {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }