#photos {
    /* Prevent vertical gaps */
    line-height: 0;
    -webkit-column-count: 4;
    -webkit-column-gap: 0;
    -moz-column-count: 4;
    -moz-column-gap: 0;
    column-count: 4;
    column-gap: 0;
}

.download-link, .pin-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFF;
    padding: 4px;
    border-radius: 50%;
    color: #333;
    border: 1px #CCC solid;
    text-decoration: none !important;
}
.pin-image { right: 45px}
#photos img {
    /* Just in case there are inline attributes */
    width: 100% !important;
    height: auto !important;
}

#photos .image {
    position: relative;
    margin: 0 5px 20px 10px;
}

#photos .image_bg {
    background: #000;
}

#photos .image:hover .image_bg img {
    opacity: 0.7;
}

#photos .user {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    color: #FFF;
}

#photos .user_photo, #photos .user_photo div {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: top;
}

#photos .author {
    display: inline-block;
    width: calc(100% - 82px);
    line-height: 1.2;
    vertical-align: top;
    font-size: 10px;
    margin-top: 3px;
}

#photos .image .tags {
    width: calc(100% - 60px);
}

#photos .tags {
    position: absolute;
    top: 15px;
    left: 10px;
}

#photos .image:hover .user,
#photos .image:hover .tags,
#photos .image:hover .download-link,
#photos .image:hover .pin-image
{
    display: block !important;
}

#search-images-bank .search-form {
    max-width: 600px;
    margin: 0 auto;
    width: 80%;
}

#search-images-bank .search-form input {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

#search-images-bank .search-form button {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}


#photos a.download-link.activated,
html.dark-mode #photos a.download-link.activated {
    background: #dc3c5f !important;
    border-color: #dc3c5f !important;
}

#photos a.download-link.activated i, html.dark-mode #photos a.download-link.activated i {
    color: #FFF !important;
}


#photos .tags a {
    color: #FFF !important;
    margin: 3px;
    line-height: normal;
    display: inline-block;
}

#photos .author a {
    font-size: 10px !important;
    color: #FFF
}

@media (max-width: 1200px) {
    #photos {
        -moz-column-count: 4;
        -webkit-column-count: 4;
        column-count: 4;
    }
}

@media (max-width: 1000px) {
    #photos {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}

@media (max-width: 800px) {
    #photos {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
}

@media (max-width: 400px) {
    #photos {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
}


