.album-list {
    max-width: 1200px;
    margin: 0 auto;
}
.album-list .item {
    width: 25%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 5px;
}
.album-list .item:nth-child(4n+1) {
    clear: left;
}
.album-list .box {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    background: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: solid 1px #dbdbdb;
}
.album-list .box:hover{
    -webkit-box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
    border-color: #ffef98;
}
.album-list .box:before{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: solid 10px #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;;
    left: 0;
    top: 0;
    z-index: 5;
}

.album-list .box img {
    display: block;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
.album-list .box:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.album-list .fancybox {
    display: none;
}
.album-list .name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 15px;
    line-height: 45px;
    padding: 0 12px;
    height: 45px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
.album-list .box:hover .name {
    bottom: 10px;
}

@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;
    }
}