.loadingDiv {
    display: none;
    position: fixed;
    z-index: 100000000000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, .1) url('http://i.stack.imgur.com/FhHRx.gif') 50% 50% no-repeat;
}


.elem,
.elem * {
    box-sizing: border-box;
    margin: 0 !important;
}

.elem {

    display: inline-block;
    font-size: 0;

    /* border: 2px solid transparent; */
    border-bottom: none;
    /* background: #fff; */

    height: auto;
    background-clip: padding-box;
}

@media (min-width: 767px) {
    .elem {

        display: inline-block;
        font-size: 0;

        /* border: 2px solid transparent; */
        border-bottom: none;
        /* background: #fff; */
        padding: 3px;
        height: auto;
        background-clip: padding-box;
    }
}

.elem>span {
    border-radius: 5px;
    display: block;
    cursor: pointer;
    height: 0;
    padding-bottom: 70%;
    background-size: cover;
    background-position: center center;
}

.lcl_fade_oc.lcl_pre_show #lcl_overlay,
.lcl_fade_oc.lcl_pre_show #lcl_window,
.lcl_fade_oc.lcl_is_closing #lcl_overlay,
.lcl_fade_oc.lcl_is_closing #lcl_window {
    opacity: 0 !important;
}

.lcl_fade_oc.lcl_is_closing #lcl_overlay {
    -webkit-transition-delay: .15s !important;
    transition-delay: .15s !important;
}

* {
    margin: 0;
    padding: 0;

}

.title {
    padding-top: 0px;
}

.main {
    position: relative;
    height: 100%;
    width: 100%;
}

.main .gallery {
    position: relative;
    height: auto;
    width: 100%;
    margin: auto;

    display: grid;
    grid-template-columns: auto auto auto auto;
    /*i write auto four time because we want four rows*/
    /* grid-gap: 2vh; */
    grid-auto-flow: dense;
}

.main .gallery .img {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.9 ); */
    border-radius: 2px;
}

.main .gallery .hidden {
    display: none;
}

.main .gallery .img:first-child {
    grid-column-start: span 2;
    grid-row-start: span 2;
}

.main .gallery .img:nth-child(2n+3) {
    grid-row-start: span 2;
}

.main .gallery .img:nth-child(4n+5) {
    grid-column-start: span 2;
    grid-row-start: span 2;
}

.main .gallery .img:nth-child(6n+7) {
    grid-row-start: span 1;
}

.main .gallery .img:nth-child(8n+9) {
    grid-column-start: span 1;
    grid-row-start: span 1;
}

.main .gallery .img>span {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.8) grayscale(0);
    border-radius: 4px;
    transition: 0.3s ease-in-out;
}

.main .gallery .img:hover>span {
    filter: brightness(1) grayscale(0);
}

@media only screen and (max-width: 768px) {
    .main h1 {
        font-size: 1.8em;
        width: 400px;
    }

    .main p {
        font-size: 1.2em;
    }

    .main .gallery {
        display: grid;
        grid-template-columns: auto auto auto;
    }
}

@media only screen and (max-width: 430px) {

    .main .gallery {
        display: block;
    }

    .main .gallery .img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 2% 0;
    }

    .main .gallery .hidden {
        display: block;
        width: 100%;
        height: 100%;
        margin: 2% 0;
    }

    .main .gallery .img img {
        display: block;
        filter: brightness(1) grayscale(0);
    }
}

.carousel-middle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15%;
    right: 15%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;

}

.carousel-indicators li {
    width: 6px;
    height: 6px;
    border-radius: 100%;
    bottom: -20px;
}

.image-cropper {
    width: 170px;
    height: 170px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.userfeed-image {
    width: 36px;
    height: 36px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.profile-pic {
    display: inline;
    margin: 0 auto;

    height: 100%;
    width: auto;
}

#second {
    color: white;
}

.topfeed {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.topfeediamge {
    position: absolute;
    top: 0px;
    left: 0px;
}

.topfeedname {
    position: absolute;
    padding-left: 46px;
    top: 7px;
    font-weight: 500;
}