.mf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    align-items: start;
  }

  .mf-item-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    overflow: hidden;
    height: 250px;
  }

  .mf-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }

  .mf-item-card a {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .mf-card-image {
    width: 100%;
    height: 250px; /* 🔼 Изменено с 150px на 250px */
    object-fit: cover;
    object-position: top;
    display: block;
  }

  .mf-card-text {
    padding: 12px;
  }

  .mf-card-title-main {
    font-family: 'Bebas Neue', cursive;
    font-size: 18px;
    margin: 0 0 4px 0;
    color: #222;
    transition: color 0.25s ease;
  }

  .mf-item-card:hover .mf-card-title-main {
    color: #0066cc;
  }

  .mf-card-title-sub {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #666;
    transition: color 0.25s ease;
  }

  .mf-item-card:hover .mf-card-title-sub {
    color: #0055aa;
  }

  .mf-card-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto+Condensed:wght@400;700&display=swap');
