/* ==========================================================================
   GALERIA - FOTOS E VIDEOS
   ========================================================================== */

/* Hero */
.gallery-hero {
    background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.gallery-hero .container {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.gallery-hero h1 i {
    margin-right: 0.5rem;
    color: #f39c12;
}

.gallery-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Navigation */
.gallery-nav {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.gallery-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 50px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
}

.nav-btn.active {
    background: #8e44ad;
    color: white;
}

.nav-btn .count {
    background: rgba(0,0,0,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.nav-btn.active .count {
    background: rgba(255,255,255,0.2);
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gallery-item-overlay i {
    color: white;
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 5;
}

.gallery-item-info {
    padding: 1.25rem;
    background: white;
    border-top: 3px solid #f39c12;
}

.gallery-item-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8e44ad;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.gallery-item-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    font-size: 1.8rem;
    color: #666;
    margin: 0 0 0.5rem;
}

.empty-state p {
    color: #999;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-caption {
    text-align: center;
    margin-top: 1.5rem;
    color: white;
}

.lightbox-caption h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.lightbox-caption p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: -4rem;
}

.lightbox-next {
    right: -4rem;
}

.lightbox-counter {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal .modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.video-modal .modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.video-modal .modal-close:hover {
    color: #f39c12;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 3rem 1.5rem;
    }

    .gallery-hero h1 {
        font-size: 1.8rem;
    }

    .gallery-nav .container {
        flex-wrap: wrap;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-content {
        padding: 0 3rem;
    }
}

@media (max-width: 576px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox-content {
        padding: 0 2.5rem;
    }

    .lightbox-close {
        top: -2.5rem;
        right: -0.5rem;
        font-size: 1.5rem;
    }
}
