/* Gallery Pages Styles */

/* Breadcrumb */
.breadcrumb-section {
    padding: 1.5rem 0;
    background: var(--bg-tertiary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb i.fa-chevron-right {
    font-size: 0.75rem;
}

.breadcrumb span {
    color: var(--color-primary);
    font-weight: 500;
}

/* Gallery Hero */
.gallery-hero {
    padding: 4rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.gallery-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.gallery-badge i {
    margin-right: 0.5rem;
}

.gallery-hero h1 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.gallery-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.view-btn {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}

.gallery-caption {
    padding: 1.5rem;
}

.gallery-caption h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.gallery-caption p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Gallery Actions */
.gallery-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    text-align: center;
    color: #ffffff;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 968px) {
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-actions {
        flex-direction: column;
    }
    
    .gallery-actions .btn {
        width: 100%;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
