.acc_elems {
    max-width: 1600px;
    margin: 0 auto;
}

.acc_elems .acc_elem {
    display: inline-block;
    width: 23%;
    margin: 10px 1%;
    position: relative;
}

.acc_elems .acc_elem:before {
    content: "";
    display: block;
    margin-top: 100%; /* initial ratio of 1:1 */
}

.acc_elems .acc_elem .ae_title {
    position: absolute;
    width: 100%;
    padding: 10px 0;
    background: rgba(150, 0, 0, 0.5);
    color: #FFF;
    font-size: 100%;
    text-shadow: 0 0 5px #000;
    top: 0;
    z-index: 20;
    text-align: center;
    transition: all ease 0.3s;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
}

.acc_elems .acc_elem img {
    border: solid 1px #666;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: all ease 0.3s;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
}

.acc_elems .acc_elem:hover .ae_title {
    background: rgba(120, 0, 0, 0.7);
}

.acc_elems .acc_elem:hover img {
    box-shadow: 0 0 10px 2px #999;
}

@media screen and (max-width: 1000px) {
    .acc_elems .acc_elem .ae_title {
        font-size: 100%;
    }
}

@media screen and (max-width: 750px) {
    .acc_elems .acc_elem {
        width: 31%;
    }
}

@media screen and (max-width: 550px) {
    .acc_elems .acc_elem {
        width: 48%;
    }
}
