/* Gallery Page Styles */
.gallery-header {
    padding: 120px 0 60px 0;
    background: #f8f9fa;
    text-align: center;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1rem;
}

.gallery-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-section {
    padding: 60px 0;
    background: #fff;
}

/* Masonry Gallery */
.masonry-gallery {
    columns: 4;
    column-gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

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

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.gallery-item:hover img {
    opacity: 0.9;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .masonry-gallery {
        columns: 3;
        column-gap: 18px;
    }
}

@media (max-width: 768px) {
    .gallery-header {
        padding: 100px 0 40px 0;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .masonry-gallery {
        columns: 2;
        column-gap: 15px;
        padding: 0 15px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
        padding: 12px 16px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        columns: 1;
        column-gap: 0;
        padding: 0 10px;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
}
