.gallery {
    .gallery-content {
        padding: 120px 0;
        .single-img {
            border-radius: 15px;
            position: relative;
            overflow: hidden;
            .hover {
                content: "";
                position: absolute;
                bottom: -10px;
                left: 0;
                right: 0;
                max-height: 100%;
                background: $gradient-1;
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 0 20px 40px;
                transition: .3s;
                button {
                    width: 50px;
                    height: 50px;
                    line-height: 50px;
                    font-size: 25px;
                    color: $color-1;
                    background: $white;
                    border-radius: 50%;
                    margin-top: -25px;
                    margin-bottom: 20px;
                }
                p {
                    text-align: center;
                    font-size: 14px;
                    line-height: 24px;
                    color: $white-2;
                    margin-top: -6px;
                    margin-bottom: -7px;
                }
            }
            &:hover {
                .hover {
                    bottom: 0;
                }
            }
        }
    }
}

.image-lightbox-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba($black, .6);
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    cursor: zoom-out;
    transition: all .3s ease-in;
    z-index: -1;
    .lightbox-image {
        cursor: default;
        transform: scale(0);
        transition: all .3s ease-in;
    }
    &.active {
        opacity: 1;
        visibility: visible;
        z-index: 9999;
        .lightbox-image {
            transform: scale(1);
        }
    }
}

@media screen and (max-width: 991px) and (min-width: 480px) {
    .gallery {
        .gallery-content {
            padding: 60px 0;
            .single-img {
                border-radius: 10px;
                .hover {
                    padding: 0 15px 25px;
                    button {
                        width: 35px;
                        height: 35px;
                        line-height: 35px;
                        font-size: 20px;
                        margin-top: calc(-35px / 2);
                        margin-bottom: 15px;
                    }
                    p {
                        font-size: 12px;
                        line-height: 22px;
                        margin-bottom: -6px;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 575px) and (min-width: 480px) {
    .gallery {
        .gallery-content {
            .single-img {
                max-width: 320px;
                margin: auto;
            }
        }
    }
}

@media screen and (max-width: 479px) and (min-width: 320px) {
    .gallery {
        .gallery-content {
            padding: 60px 0;
            .single-img {
                max-width: 320px;
                margin: auto;
                border-radius: 10px;
                .hover {
                    bottom: 0;
                    transform: translateY(calc(100% - 30px));
                    padding: 0 15px 20px;
                    button {
                        width: 35px;
                        height: 35px;
                        line-height: 35px;
                        font-size: 20px;
                        margin-top: calc(-35px / 2);
                        margin-bottom: 15px;
                    }
                    p {
                        font-size: 12px;
                        line-height: 22px;
                        margin-bottom: -6px;
                    }
                }
                &:hover {
                    .hover {
                        transform: translateY(0);
                    }
                }
            }
        }
    }
}