.itemmain {
    padding-top: 60px;
    padding-bottom: 80px;
}
.itemmain  .main {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}
.itemmain  .main .item {
    position: relative;
    width: calc((100% - 32px)/3);
    margin-right: 16px;
    height: 330px;
    margin-bottom: 16px;
    overflow: hidden;
}
.itemmain  .main .item:nth-child(3n){
    margin-right: 0;
}

.itemmain  .main .item  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1.0s;
}
.itemmain  .main .item:hover img {
    transform: scale(1.2);
}
.itemmain  .main .item .mask {
    position: absolute;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    color: #fff;
    bottom: 0;
    left: 0;
    height: 160px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7)); 
    transition: all 1.0s; 
}
.itemmain  .main .item .mask h3 {
    margin-top: 30px;
    font-size: 20px;
    line-height: 24px;
}
.itemmain  .main .item .mask a {
    width: 120px;
    height: 42px;
    border-radius: 21px;
    border: solid 1px #ffffff;
    line-height: 42px;
    text-align: center;
    margin-top: 30px;
    display: none;
}
.itemmain  .main .item:hover .mask {
    height: 100%;
    background: none;
    background-color: rgba(0,126,232,0.9);
    flex-direction: column;
}
.itemmain  .main .item:hover .mask a {
    display: block;
}
.itemmain  .main .item:hover .mask h3  {
    margin-top: 0;
    font-size: 26px;
    font-weight: bold;
}
@media only screen and (max-width: 600px) {
    .itemmain {
        padding-top: 30px;
        padding-bottom: 40px;
    }
    .itemmain  .main .item {
        width: 100%;
        margin-right: 0;
    }
   
}
@media only screen and (min-width: 601px) and (max-width: 1199px) {
    .itemmain {
        padding-top: 30px;
        padding-bottom: 40px;
    }
    .itemmain  .main .item {
        width: 100%;
        margin-right: 0;
    }
}