.gallery_main_out {
    margin-block: 2rem;
}


.gallery_main {
    column-count: 4;
    --webkit-column-count: 4;
    --moz-column-count: 4;
    /* gap: 1rem; */
    /* padding: 4rem; */
}

.gallery_main .image {
    padding-block: 8px;
    position: relative;
    display: inline-block;
}

.image img {
    height: auto;
    width: 100%;
    display: block;
}

.image:hover img {
    filter: brightness(40%);
}

.image:hover .bi-plus-lg {
    opacity: 1;
    transform: rotate(-90deg);
}

.bi-plus-lg {
    position: absolute;
    top: 45%;
    left: 45%;
    transform: translate(-50%, -50%);
    font-size: 45px;
    font-weight: bold;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1111;
    opacity: 0;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}



.pagination button {
    padding: 7px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: #824d3f;
    color: white;
    border-radius: 2px;
}

.pagination button:disabled {
    background: #c1c1c1;
    cursor: not-allowed;
}






.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}



.fullscreen-modal img {
    max-width: 90%;
    max-height: 90%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Responsive-ness for different screen-sizes */
@media screen and (max-width: 810px) {
    .gallery_main {
        column-count: 3;
        --webkit-column-count: 3;
        --moz-column-count: 3;
    }
}

@media screen and (max-width: 500px) {
    .gallery_main {
        column-count: 2;
        --webkit-column-count: 2;
        --moz-column-count: 2;
    }
}

@media screen and (max-width: 400px) {
    .gallery_main {
        column-count: 1;
        --webkit-column-count: 1;
        --moz-column-count: 1;
    }
}