.yaftom-project-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.yaftom-project-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yaftom-project-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yaftom-project-grid.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yaftom-project-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yaftom-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.yaftom-project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.yaftom-project-image-wrap {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: #f5f5f5;
}

.yaftom-project-image {
    width: 100%;
    display: block;
    transform: translateY(0);
    transition: transform 2.5s linear;
    will-change: transform;
}

.yaftom-project-info {
    padding: 18px 18px 22px;
    text-align: center;
}

.yaftom-project-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.yaftom-project-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .yaftom-project-grid.columns-3,
    .yaftom-project-grid.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .yaftom-project-grid.columns-2,
    .yaftom-project-grid.columns-3,
    .yaftom-project-grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .yaftom-project-image-wrap {
        height: 380px;
    }
}