/* Floating Close Button */
.floating-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

.floating-close-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
    color: white;
}

/* Gallery Container */
.full-gallery {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Masonry Layout */
.masonry-container {
    column-count: 4;
    column-gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.masonry-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    break-inside: avoid;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

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

.gallery-overlay i {
    font-size: 24px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.7);
}

.lightbox-nav.prev {
    left: -60px;
}

.lightbox-nav.next {
    right: -60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .masonry-container {
        column-count: 3;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .full-gallery {
        padding: 15px;
    }
    
    .masonry-container {
        column-count: 2;
        column-gap: 10px;
        max-width: 600px;
    }
    
    .masonry-item {
        margin-bottom: 10px;
    }
    
    .lightbox-nav.prev {
        left: -50px;
    }
    
    .lightbox-nav.next {
        right: -50px;
    }
}

@media (max-width: 480px) {
    .masonry-container {
        column-count: 1;
        max-width: 400px;
    }
    
    .floating-close-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-nav.prev {
        left: -45px;
    }
    
    .lightbox-nav.next {
        right: -45px;
    }
} 