.major {
    display: grid;
}

@media screen and (min-width:768px) {
    .major {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 30px;
    }
}

@media screen and (max-width:768px) {
    .major {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }
}


.major .item {
    text-align: center;
}

.major .item .img {
    width: 100%;
}

.major .item .intro {
    text-align: center;
    font-size: 15px;
    margin-top: 10px;
}

.majorIndex .intro {
    color: white;
}