
/* Masonry Gallery Styles */
.masonry-gallery {
    column-count: 3;
    column-gap: 25px;
    margin-bottom: 40px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
}

.masonry-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.masonry-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-card:hover img {
    transform: scale(1.1);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(204, 85, 0, 0.95) 0%, rgba(204, 85, 0, 0.7) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: all 0.4s ease;
}

.masonry-card:hover .masonry-overlay {
    opacity: 1;
}

.masonry-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.masonry-card:hover .masonry-content {
    transform: translateY(0);
}

.masonry-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.masonry-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.masonry-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 0;
}

.masonry-lightbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cc5500;
    font-size: 20px;
    transform: scale(0);
    transition: all 0.4s ease;
    text-decoration: none;
}

.masonry-card:hover .masonry-lightbox {
    transform: scale(1);
}

.masonry-lightbox:hover {
    background: #ffd700;
    color: #cc5500;
    transform: scale(1.1) !important;
}

/* Responsive Masonry */
@media (max-width: 991px) {
    .masonry-gallery {
        column-count: 2;
        column-gap: 20px;
    }
    
    .masonry-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .masonry-gallery {
        column-count: 1;
        column-gap: 0;
    }
    
    .masonry-item {
        margin-bottom: 20px;
    }
    
    .masonry-overlay {
        padding: 20px;
    }
    
    .masonry-content h3 {
        font-size: 18px;
    }
    
    .masonry-content p {
        font-size: 13px;
    }
}

/* Hide load more row when no items */
#load-more-row {
    display: block;
}

#load-more-row.hidden {
    display: none;
}
