/* Gallery Masonry Layout Styles */

/* Gallery Filters */
.gallery-filters {
    margin-bottom: 40px;
    text-align: center;
}

.filter-btn {
    background: transparent;
    border: 2px solid #2c243c;
    color: #2c243c;
    padding: 10px 25px;
    margin: 0 10px 10px 0;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2c243c;
    color: #fff;
}

/* Masonry Gallery Container */
.masonry-gallery {
    position: relative;
    margin-top: 20px;
    width: 100%;
}

/* Gallery Items */
.gallery-item {
    position: absolute;
    width: calc(25% - 15px);
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 36, 60, 0.8), rgba(44, 36, 60, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-info p {
    color: #f0f0f0;
    font-size: 14px;
    margin: 0;
}

.gallery-zoom {
    align-self: flex-end;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-zoom i {
    color: #fff;
    font-size: 20px;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #2c243c;
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(44, 36, 60, 0.8);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #2c243c;
    transform: scale(1.1);
}

.lightbox-prev {
    margin-left: 20px;
}

.lightbox-next {
    margin-right: 20px;
}

.lightbox-image-container {
    max-width: 80%;
    max-height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.lightbox-info {
    text-align: center;
    color: #fff;
    margin-top: 30px;
    max-width: 600px;
}

.lightbox-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.lightbox-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 5px;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-item {
        width: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 10px);
        margin-bottom: 15px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        margin: 0 5px 10px 0;
        font-size: 14px;
    }
    
    .lightbox-content {
        width: 95%;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .lightbox-info h3 {
        font-size: 24px;
    }
    
    .lightbox-info p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: calc(100% - 10px);
    }
    
    .gallery-filters {
        text-align: center;
    }
    
    .filter-btn {
        display: inline-block;
        margin: 5px;
    }
}
