    section.gallery {
      padding: 6rem 1.5rem 4.5rem;
      background: var(--bg-card);
      backdrop-filter: blur(12px);
      border-radius: 28px;
      margin-top: 80px;
      margin-bottom: 2.5rem;
    }

    section[id] {
      scroll-margin-top: 80px;
    }

    @media (max-width: 768px) {
      section.gallery {
        margin-top: 100px;
      }
    }

    h2 {
      font-size: 2.2rem;
      text-align: center;
      margin-bottom: 2.5rem;
      color: var(--text-primary);
      position: relative;
    }

    h2::after {
      content: '';
      display: block;
      width: 60px;
      height: 3px;
      background: var(--accent-gradient);
      margin: 0.6rem auto;
      border-radius: 2px;
    }

    .gallery-grid {
      display: grid;
      gap: 2rem;
      margin-top: 1.5rem;
    }

    @media (min-width: 951px) {
      .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 950px) {
      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 650px) {
      .gallery-grid {
        grid-template-columns: 1fr;
      }
    }

    .gallery-item {
      background: var(--bg-card);
      border-radius: 20px;
      overflow: hidden;
      transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      border: 1px solid var(--border-color);
      box-shadow: 0 6px 16px var(--shadow);
    }

    .gallery-item:hover {
      transform: translateY(-8px) scale(1.01);
      border-color: rgba(139, 92, 246, 0.6);
      box-shadow: 0 12px 30px var(--shadow);
    }

    .gallery-item img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.05);
    }

    .gallery-item .desc {
      padding: 1.6rem 1.2rem;
      text-align: center;
    }

    .gallery-item h3 {
      margin-bottom: 0.6rem;
      color: var(--text-primary);
    }

    .gallery-item p {
      font-size: 1rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .gallery-actions {
      display: flex;
      gap: 0.8rem;
      justify-content: center;
      margin-top: 1.2rem;
    }

    .action-btn {
      flex: 1;
      padding: 0.55rem 0.9rem;
      font-size: 0.9rem;
      font-weight: 600;
      border-radius: 8px;
      text-decoration: none;
      text-align: center;
      transition: all 0.3s ease;
      border: 1px solid var(--border-color);
      background: rgba(99, 102, 241, 0.1);
      color: var(--text-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
    }

    .action-btn:hover {
      background: rgba(99, 102, 241, 0.2);
      transform: translateY(-2px);
    }

    .action-btn.download {
      background: rgba(56, 189, 248, 0.1);
      border-color: var(--tag-coded-border);
    }

    .action-btn.download:hover {
      background: rgba(56, 189, 248, 0.2);
    }
