.gallery-hero {
    background:
      radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.2), transparent 28rem),
      radial-gradient(circle at 16% 12%, rgba(124, 58, 237, 0.22), transparent 30rem),
      #07080d;
    color: white;
  }

  .gallery-hero h1 {
    max-width: 9ch;
  }

  .gallery-list {
    padding-top: 3rem;
  }

  .gallery-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.1rem;
    position: relative;
    z-index: 2;
  }

  .gallery-card {
    position: relative;
    aspect-ratio: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #0b0d12;
    color: white;
    text-decoration: none;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  }

  .gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(7, 8, 13, 0.08), transparent 38%, rgba(7, 8, 13, 0.88));
  }

  .gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.06);
    transition: transform 520ms ease;
  }

  .gallery-card:hover img {
    transform: scale(1.045);
  }

  .card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
  }

  .card-top,
  .card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .card-top {
    align-items: start;
  }

  .card-bottom {
    align-items: flex-end;
  }

  .gallery-card strong {
    font-family: "Space Grotesk", "Inter", Arial, sans-serif;
    display: block;
    max-width: 12ch;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .gallery-card p {
    display: -webkit-box;
    max-width: 18rem;
    margin: 0.65rem 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .gallery-card small,
  .gallery-card em {
    display: inline-flex;
    padding: 0.48rem 0.64rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
  }

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

  @media (max-width: 680px) {
    .card-top,
    .card-bottom {
      flex-direction: column;
      align-items: start;
    }

    .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
      gap: 0.8rem;
    }

    .gallery-card {
      border-radius: 18px;
    }
  }
