/* Masonry Gallery Frontend Styles */
.masonry-gallery-container {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    gap: 1px;
    justify-content: center;
    margin:0;
    max-width: 100%;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #E2E8F0;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: #2A2D43;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
    background: #6C63FF;
    color: white;
    border-color: #6C63FF;
}

.masonry-gallery {
    column-count: 3;
    column-gap: 25px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .item-info {
    transform: translateY(0);
}

.item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.item-info .category {
    display: inline-block;
    background: #6C63FF;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.masonry-gallery-empty {
    text-align: center;
    padding: 60px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 12px;
}


/* For mobile only */
@media only screen and (max-width: 767px) {
    .masonry-gallery {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .gallery-item {
        width: calc(50% - 7.5px) !important;
        flex: 0 0 calc(50% - 7.5px) !important;
        margin: 0 !important;
    }
}