body.is_front.unlogged {
    background-attachment: fixed;
    background: none;
}

.banner {
    background: none;
    height: auto;
}

.grid {
    padding-top: 10px;
    margin: 0 auto;
    opacity: 0;
    padding-bottom: 90px;

}

.grid-item {
    width: 160px;
    background: white;
    margin: 10px;
    display: block;
    cursor: pointer;

}

.ifonline, .ifoffline {
    width: 15px;
    height: 15px;
}

.form-type-1, .form-type-2 {
    display: none;
}

.pagination {
    margin: 20px 0 5px;
    clear: both;
    position: absolute;
    bottom: 0;
}

.grid-item:hover {
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
}

.grid-item .l4img {
    position: relative;
    overflow: hidden;
    width: 160px;
    height: 160px;
}

.grid-item .l4about {
    padding: 0 10px;
    overflow: hidden;
    word-wrap: break-word;
}

.grid-item .l4btn {
    background: #f8f8f8;
    color: #ccc;
    border: 1px solid #ccc;
    margin: 10px;
    padding: 5px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.grid-item .l4img .overlay-envelope {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grid-item .l4img .overlay-envelope:after {
    content: "";
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.grid-item:hover .l4img img {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.grid-item .l4name {
    padding: 10px;
    line-height: 1;
}

.grid-item .l4name span {
    text-decoration: underline;
    display: inline-block;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*effect 1*/
.effect-1 .grid-item:hover .l4img img {
    width: 180px;
    height: 180px;
    margin-left: -10px;
    margin-top: -10px;
}

.grid:not(.effect-2) .thumb-envelope {
    display: none !important;
}

.effect-1 .grid-item:hover .l4img .overlay-envelope {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

.effect-1 .grid-item:hover .l4img .overlay-envelope:after {
    content: "\f0e0";
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 55px;
    line-height: 160px;
}

.effect-1 .grid-item:hover .l4btn {
    background: #ff9900;
    color: #fff;
    border: 1px solid #ff9900;
}

/*effect 2*/
.effect-2 .grid-item .thumb-envelope {
    position: absolute;
    left: -5px;
    top: -5px;
    font-size: 15px;
    display: block;
    text-align: center;
    line-height: 27px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 100%;
    background: #fff;
    color: #ff9900;
    border: 1px solid #fff;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.effect-2 .grid-item:hover .thumb-envelope {
    left: -10px;
    top: -10px;
}

.effect-2 .grid-item:hover {
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 3px #ff9900;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 3px #ff9900;
}

.effect-2 .grid-item:hover .l4img img {
    width: 180px;
    height: 180px;
    margin-left: -10px;
    margin-top: -10px;
}

.effect-2 .grid-item:hover .l4img:after {
    background: rgba(0, 0, 0, 0.5);
}

.effect-2 .grid-item:hover .l4btn {
    background: #ff9900;
    color: #fff;
    border: 1px solid #ff9900;
}

@media (max-width: 767px) {
    body.unlogged.is_front {
        margin-bottom: auto;
    }

    /*.grid-item {*/
        /*width: 140px;*/
    /*}*/

    /*.grid-item .l4img {*/
        /*width: 140px;*/
        /*height: 140px;*/
    /*}*/

    .footer {
        position: inherit;
    }
}

#infscr-loading {
    position: absolute;
    bottom: 0;
    width: 200%;
    left: 0;
    color: white;
    font-size: 14px !important;;
    background-color: #999;
    border: 1px solid #ABAB99;
    text-shadow: 1px 1px 2px black;
    padding: 20px;
    text-align: center;
    margin-left: -50%;
    margin-right: -50%;
}

#infscr-loading img {
    display: none;
}

#infscr-loading a {
    color: white;
    text-decoration: underline;
}

#infscr-loading div {
    width: 90vw;
    margin: 0 auto;
}