.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.works-item {
    height: 375px;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.works-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.works-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media screen and (width < 1400px) {
    .works-item {
        height: 350px;
    }
}

@media screen and (width < 1200px) {
    .works-grid {
        gap: 20px;
    }

    .works-item {
        height: 300px;
    }
}

@media screen and (width < 992px) {
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .works-item {
        height: 300px;
    }
}

@media screen and (width < 768px) {
    .works-item {
        height: 225px;
    }
}

@media screen and (width < 525px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-item {
        height: 250px;
    }
}

@media screen and (width < 400px) {
    .works-item {
        height: 240px;
    }
}

@media screen and (width < 370px) {
    .works-item {
        height: 200px;
    }
}