.album-list {
    max-width: 1200px;
    margin: 0 auto;
}
.album-list .item {
    width: 25%;
}
.album-list .item:nth-child(4n+1) {
    clear: left;
}
.album-list .box {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.album-list .box:before {
    content: '';
    display: block;
    background:  rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.3s;
}
.album-list .box:hover:before {
    opacity: 1;
    background-size: 49% auto;
}
.album-list .fancybox {
    display: none;
}
.album-list .name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50px;
    color: #fff;
    font-size: 18px;
    /* padding: 0 12px; */
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
    margin: 0 40px;
    font-family: '標楷體', '微軟正黑體';
}
.album-list .box:hover .name {
    bottom: 0;
    height: 85px;
    margin: 66px 40px;
    box-sizing: border-box;
    
}

@media screen and (max-width: 1000px) {
    .album-list {
        max-width: 900px;
    }
    .album-list .item {
        width: 33.33%;
    }
    .album-list .item:nth-child(4n+1) {
        clear: none;
    }
    .album-list .item:nth-child(3n+1) {
        clear: left;
    }
}
@media screen and (max-width: 600px) {
    .album-list .item {
        width: 50%;
    }
    .album-list .item:nth-child(3n+1) {
        clear: none;
    }
    .album-list .item:nth-child(2n+1) {
        clear: left;
    }
}
@media screen and (max-width: 400px) {
    .album-list .item {
        width: 100%;
    }
    .album-list .item:nth-child(n) {
        clear: none;
    }
}