
#masonry {
    margin-top: 20px;
    margin-bottom: 120px;
}
.masonry-wrapper {
    columns: 300px;
    column-gap: 15px;
    margin-left: 0px;
    margin-right: 0px;
}

.masonry-item {
    margin-bottom: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.masonry-item img {
    display: block;
    width: 100%;
    filter: grayscale(1) brightness(0.5);
    transition: 0.5s;
}
.masonry-item img:hover {
    transform: scale(1.2);
    filter: grayscale(0);
}


.baguetteBox-button#close-button {
    top: unset;
    bottom: 50px;
    right: 50%;
    width: 30px;
    height: 30px;
    transform: translateX(50%);
    background-color: unset;
    border-radius: 2px;
}
.baguetteBox-button svg g {
    stroke: rgb(255, 255, 255);
    stroke-width: 2px;
    transition: 0.4s ease;
}
#baguetteBox-overlay {
    backdrop-filter: blur(30px);
    background-color: rgba(0, 0, 0, 0.7) !important;
}
#baguetteBox-overlay .full-image img {
    border-radius: 15px;
    filter: unset;
    max-height: 80%;
}
.custom-badge {
    pointer-events: none;
    width: 100%;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    transition-delay: 0.3s;
    transition: 0.3s;
    
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
}
.masonry-item:hover > .custom-badge {
    bottom: 0;
    left: 0;
    transform: translateY(0);
}
.custom-top-badge {
    pointer-events: none;
    width: 100%;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    transition-delay: 0.3s;
    transition: 0.3s;
    
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
}
.masonry-item:hover > .custom-top-badge {
    top: 0;
    left: 0;
    transform: translateY(0);
}
@media screen and (max-width:992px) {
    #masonry h1 {
        font-size: 24px;
    }
    #masonry h2 {
        font-size: 20px;
    }
    .masonry-wrapper {
        columns: 150px;
        column-gap: 15px;
        margin-left: 5px;
        margin-right: 5px;
    }
    .custom-badge {
        font-size: 12px;
    }
    
    
    #baguetteBox-overlay .full-image img {
        width: 95%;
    }
}

@media screen and (max-width:360px) {
    #masonry h1 {
        font-size: 18px;
    }
    #masonry h2, #masonry h3 {
        font-size: 16px;
    }

}