  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }

  .gallery-card {
    position: relative;
    flex: 1 1 calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .gallery-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease-in-out;
  }

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

  .gallery-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
  }

  .gallery-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    font-family: system-ui;
    z-index: 2;
  }

  .gallery-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 0 0 0 8px;
    font-size: 14px;
    font-weight: bold;
    font-family: system-ui;
    z-index: 2;
  }

  @media (max-width: 992px) {
    .gallery-card {
      flex: 1 1 100%;
    }
  }

  @media (max-width: 768px) {
    .gallery-card img {
      height: 200px;
    }
  }