.ff-container{
    width: 100%;
    text-align: center;
    }

.ff-container label{
    padding-top: 9px;
    border-radius: 5px;
    font-family:'Roboto', sans-serif!important; 
    width: 25%;
    height: 50px;
    cursor: pointer;
    border-color:#666 ;
    color:#666;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
    line-height: 33px;
    font-size: 19px;
    background: linear-gradient(top, #ffffff 1%,#eaeaea 100%);
    
}

.ff-container input.ff-selector-type-all:checked ~ label.ff-label-type-all,
.ff-container input.ff-selector-type-1:checked ~ label.ff-label-type-1,
.ff-container input.ff-selector-type-2:checked ~ label.ff-label-type-2{
    border-radius: 5px;
    border-color: #666;
    background-color: #666;
    color: #fff;
    text-shadow: 0px 1px 1px rgba(255,255,255,0.3); 
}

.ff-container input{
    display: none;
}

.ff-items{
    padding-left: 0px;
    display: inline-table;
    align-items: center;
    margin: 0 auto;
    text-align: center!important;
    margin-top: 50px;
    list-style: none;
    position: relative;
    width: 100%;
    height: 283px;
    background-color: #d7d7d7;
   
}

.ff-item-type-1, .ff-item-type-2 {
    display: inline-block; 	
    padding:0px; 
    margin-bottom: 10px; 
    width: 200px; 
    height: 283px;  
    transition: opacity 0.6s ease-in-out;
    box-shadow: 7px 7px 5px black;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);

}

.ff-items a{
    display: inline;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 283px;
    padding: 0px;

    background-color: #666;
}
.ff-items a span{
    font-size: 20px;
    display: block;
    background-color:rgba(117, 117, 117, 0.4    );
    color: #fff;
    font-weight: bold;
    padding: 20px;
    padding-top: 150px;
    position: absolute;
    width: 200px;
    height: 283px;
    opacity: 0;
    text-align: center;
    transition: all 0.3s ease-in-out;
}
.ff-items a:hover span{
    width: 200px;
    height: 283px;
    opacity: 1;
}
.ff-items li img{
    display: block;
    width: 200px;
    height: 283px;

}

.ff-items li{
    margin: 10px;
    opacity: 0;
    width: 200px;
    height: 283px;
    transition: opacity 0.6s ease-in-out;
}

.ff-container input.ff-selector-type-all:checked ~ .ff-items li,
.ff-container input.ff-selector-type-1:checked ~ .ff-items .ff-item-type-1,
.ff-container input.ff-selector-type-2:checked ~ .ff-items .ff-item-type-2,
.ff-container input.ff-selector-type-3:checked ~ .ff-items .ff-item-type-3{
    opacity: 1;
}

.ff-container input.ff-selector-type-1:checked ~ .ff-items li:not(.ff-item-type-1),
.ff-container input.ff-selector-type-2:checked ~ .ff-items li:not(.ff-item-type-2){
    opacity: 0.1;
}
.ff-container input.ff-selector-type-1:checked ~ .ff-items li:not(.ff-item-type-1) span,
.ff-container input.ff-selector-type-2:checked ~ .ff-items li:not(.ff-item-type-2) span{
    display: none;
}