// main: ../main.scss
/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery {
  .isotope-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;

    li {
      display: inline-block;
      padding: 10px 20px;
      background: var(--surface-color);
      color: var(--default-color);
      border-radius: 30px;
      cursor: pointer;
      font-weight: 500;
      font-size: 15px;
      transition: 0.3s;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

      &:hover {
        background: color-mix(in srgb, var(--accent-color), transparent 80%);
      }

      &.filter-active {
        background: var(--accent-color);
        color: var(--contrast-color);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      }
    }

    @media (max-width: 576px) {
      gap: 8px;

      li {
        padding: 8px 14px;
        font-size: 14px;
      }
    }
  }

  .gallery-item {
    margin-bottom: 30px;

    @media (max-width: 768px) {
      margin-bottom: 20px;
    }
  }

  .gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;

    &:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);

      .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
      }

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

  .gallery-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 75%; // 4:3 aspect ratio
    overflow: hidden;

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.7s ease;
    }
  }

  .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--contrast-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;

    h4 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--contrast-color);
    }

    p {
      font-size: 14px;
      margin-bottom: 15px;
      opacity: 0.9;
    }

    .gallery-actions {
      display: flex;
      gap: 15px;

      a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--accent-color);
        color: var(--contrast-color);
        font-size: 18px;
        transition: 0.3s;

        &:hover {
          background: color-mix(in srgb, var(--accent-color), transparent 20%);
          transform: scale(1.1);
        }
      }
    }
  }

  // Lightbox styles
  .glightbox-clean .gslide-description {
    background: #272727;
  }

  .glightbox-clean .gslide-title {
    color: rgba(255, 255, 255, .8);
    margin: 0;
  }
}