.thumbnail.album {
    background-color:#FFFFFF;
    height:200px;
}

.thumbnail.album a.album {
    background-size:cover;
    /*background-position:center center;*/
    background-repeat:no-repeat;
    display:block;
    width:150px;
    height:150px;
    margin:auto;
}

.thumbnail.album a.album.noThumbnail {
    background-size:auto;
}

.thumbnail.album .caption {
    text-transform: uppercase;
    height:40px;
    overflow:hidden;
    font-size:12px;
}


.grid-item {
    border: 2px solid #f5f8fa;
    overflow: hidden;
    position: relative;
    width:16.66%;
    margin:0;
}


.grid-item.article {
    float:left;
    height:200px;
    margin:5px;
}

.grid-item img, .table-item img {
    width: 100%;
    display: block;
    position: relative;
    transition: all 0.3s ease-out 0.1s;
}

.grid-item .mask, .grid-item .content, .table-item .mask {
    position: absolute;
    overflow: hidden;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    filter: alpha(opacity=0);
    opacity: 0;
    transition: all 0.3s ease-in 0.4s;
    cursor: pointer;
}

.infotitre, .table-item .infotitre {
    position: absolute;
    width:100%;
    bottom:5px;
    font-size:16px;
    text-align: center;
    color: #fff;
}



.grid-item .open {
    position:absolute;
    width:100%;
    text-align:center;
    margin-top:-30px;
    font-size:20px;
    top:40%;
    color:#FFFFFF;
}

.grid-item .open i {
    opacity:0.6;
    color:#999;
}

.infotitre .btn, .table-item .infotitre .btn {
    border:1px solid #FFF;
    padding:10px 25px;
    text-align:center;
    color:#FFF;
    margin-top:15px;
}

.infotitre .btn:hover, .table-item .infotitre .btn:hover {
    background-color:#FAFAFA;
    color:#333;
}

.grid-item a, .table-item a {
    text-decoration: none;
}

.grid-item h2 {
    filter: alpha(opacity=0);
    opacity: 0;
    background: transparent;
    margin: 0px 40px 0px 40px;
    transform: scale(3);
    transition: all 0.3s ease-in-out 0.1s;
    /* top:32%; */
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    position: relative;
    font-weight: normal;
    font-size: 14px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .3);
    border: 1px solid #888 \9;
}

.grid-item p {
    filter: alpha(opacity=0);
    opacity: 0;

    transition: all 0.3s ease-in-out 0.2s;
    font-size: 100%;
    position: relative;
    padding: 0;
    margin:0;
}

#albums .grid-item .mask {
    filter: alpha(opacity=100);
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}


#albums .grid-item .open {
    top:50%;
    height:80px;
    margin-top:-40px;
}

#albums .grid-item p {
    filter: alpha(opacity=100);
    opacity:1;
    transform: scale(1);
    text-transform: uppercase;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

#albums .grid-item .open .btn {
    background-color:transparent;
    border:1px solid #FFF;
    transition:background-color 0.5s;
}

#albums .grid-item .open .btn:hover{
    background-color:#FFF;
    color:#333;
}

.grid-item:hover, .table-item:hover {
    cursor: pointer;
}

.grid-item:hover .mask, .table-item:hover .mask {
    filter: alpha(opacity=100);
    opacity: 1;
    transition-delay: 0s;
    cursor: pointer;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-item:hover h2, .grid-item:hover p {
    filter: alpha(opacity=100);
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.1s;
}

.photo-selected {
    display:none;
    position:absolute;
    color:#FFF;
    border:1px solid white;
    border-radius:30px;
    right:10px;
    top:10px;
    font-size:20px;
    padding:5px;
    z-index:2;
    pointer-events: none;
    background-color:#777;
}

.grid-item.selected .photo-selected{
    display:block;
}

