/* Gallery Page Specific Styles */
.gallery-page {
    padding: 4rem 0;
}

.gallery-page-categories {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-page-category-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.gallery-page-category-btn:hover,
.gallery-page-category-btn.active {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-page-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
}

.gallery-page-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.gallery-page-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 5/4;
    overflow: hidden;
    cursor: pointer;
}

.gallery-page-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-page-image:hover {
    transform: scale(1.05);
}

.gallery-page-placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.gallery-page-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-page-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.gallery-page-info p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
}

/* Lightbox Styles */
.gallery-page-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-page-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: galleryPageLightboxOpen 0.3s ease;
}

@keyframes galleryPageLightboxOpen {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-page-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-page-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

#gallery-page-lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.gallery-page-lightbox-info {
    padding: 1.5rem;
    background: white;
}

.gallery-page-lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.gallery-page-lightbox-info p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-page-image-container {
        aspect-ratio: 5/4;
    }
    
    .gallery-page-info {
        padding: 1.2rem;
    }
    
    .gallery-page-info h4 {
        font-size: 1.2rem;
    }
    
    .gallery-page-info p {
        font-size: 0.9rem;
    }
    
    .gallery-page-lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .gallery-page-lightbox-info {
        padding: 1.2rem;
    }
    
    .gallery-page-lightbox-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .gallery-page-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-page-image-container {
        aspect-ratio: 5/4;
    }
    
    .gallery-page-info {
        padding: 1rem;
    }
    
    .gallery-page-info h4 {
        font-size: 1.1rem;
    }
    
    .gallery-page-info p {
        font-size: 0.85rem;
    }
    
    .gallery-page-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}
