#postrating, #removerating {
    margin-bottom: 25px;
}

.gallery-index-item .image-wrap,
.gallery-album-item .image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 190px;
    max-width: 100%;
    overflow: hidden;
    background-color: #2f2f2f;
    margin-left: auto;
    margin-right: auto;
}

.gallery-index-item .image-wrap > a,
.gallery-album-item .image-wrap > a,
.gallery-photo .photogallery_photo_link,
.gallery-blur-thumb > a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.gallery-blur-thumb::before {
    content: '';
    position: absolute;
    inset: -12px;
    background-image: var(--gallery-thumb-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.12);
    opacity: 0.82;
    z-index: 0;
}

.gallery-blur-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
    z-index: 0;
}

.gallery-index-item .image-wrap img,
.gallery-album-item .image-wrap img,
.gallery-photo .photogallery_photo_link img {
    display: block;
}

.gallery-index-item .image-wrap img,
.gallery-album-item .image-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.gallery-blur-thumb img.img-responsive {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.gallery-pagination-top {
    margin-bottom: 28px;
}

@media (max-width: 767px) {
    .gallery-index-item .image-wrap,
    .gallery-album-item .image-wrap {
        height: 150px;
    }
}

.gallery_album {
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.gallery_album > .gallery_actions > .image_container > img {
    width: 100% !important;
}

.gallery_album > .gallery_actions > .gallery_overlay {
    background-color: rgb(0, 0, 0);
    border-radius: 6px 6px 0px 0px;
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.04s linear 0s;
    cursor: zoom-in;
}

.gallery_album > .gallery_actions {
    position: relative;
    bottom: 0px;
    left: 0px;
    right: 0px;
    top: 0px;
    overflow: hidden;
    -webkit-border-radius: 6px 6px 0 0;
    -moz-border-radius: 6px 6px 0 0;
    border-radius: 6px 6px 0 0;
}

.gallery_album > .gallery_actions:hover {
    opacity: 1;
}

.gallery_album > .gallery_actions:hover > .gallery_overlay {
    opacity: 0.25;
}

.gallery_album > .gallery_actions > .gallery_buttons {
    position: absolute;
    top: 8px;
    left: 8px;
    opacity: 0;
}

.gallery_album > .gallery_actions > .gallery_writer {
    position: absolute;
    right: 8px;
    top: 8px;
    opacity: 0;
}

.gallery_album > .gallery_actions:hover > .gallery_buttons, .gallery_album > .gallery_actions:hover > .gallery_writer {
    opacity: 1;
}

.gallery_album .gallery_profile_link {
    line-height: 115%;
}