/* Gallery */
.hidden{
    display: none !important;
}

.hidden_visibility{
    visibility: hidden;
}

.gallery{
    width: 100%;
}

.gallery .post_gallery{
    display: flex;
    width: 100%;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.gallery .gallery_item{
    position: relative;
    overflow: hidden;
}

.gallery .gallery_item img,
.gallery_modal .swiper-slide img{
    max-width: 100%;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.gallery_pagination{
    display: flex;
    max-width: 900px;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    margin: 25px auto;
    background: #7f7f7f;
    border-radius: 5px;
}

.gallery_pagination .pagination_button{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    flex-grow: 1;
}

.gallery_pagination .pagination_button:hover,
.gallery_pagination .pagination_button.active{
    background: #393939;
}

/* Gallery Modal */
.gallery_modal{
    display: none;
    position: fixed;
    background: rgb(0 0 0 / 25%);
    height: 100%;
    min-width: 100%;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    z-index: 999999999999999;
}

.gallery_modal.active{
    display: flex;
    flex-direction: column;
}

.gallery_modal .swiper{
    max-height: 60%;
    width: 90%;
    max-width: 1200px;
    z-index: 2;
    background: #000;
}

.close_modal{
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px #474747;
    font-weight: bold;
    position: absolute;
    top: 20;
    right: 20;
}

.gallery_modal .thumb_swiper{
    background: #000;
    max-height: 25%;
}

.thumb_swiper .swiper-slide {
    opacity: 0.4;
}

.thumb_swiper .swiper-slide {
    opacity: 0.4;
}

.thumb_swiper .swiper-slide-thumb-active {
    opacity: 1;
}

@media screen and (max-width: 1000px) {
    .gallery .post_gallery {
        flex-wrap: wrap;
    }

    .gallery .gallery_item{
        width: 48%;
    }
}

@media screen and (max-width: 700px) {
    
    .gallery .gallery_item{
        width: 100%;
    }

    .gallery_pagination .pagination_button{
        font-size: 14px;
    }
}