/* ==========================================================================
   EVANGELIZACAO - GALERIA E VIDEOS
   ========================================================================== */

/* Photo Gallery - Estilo igual ao Sobre Nos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.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;
}

.gallery-item-image img {
    width: 100%;
    height: auto;
    display: block;
    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;
    z-index: 5;
}

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

.gallery-item-overlay i {
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.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;
}

/* 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;
    padding: 0.5rem;
}

.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;
}

/* Videos Section */
.videos-section {
    background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
    padding: 5rem 2rem;
    color: white;
}

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

.videos-header {
    text-align: center;
    margin-bottom: 3rem;
}

.videos-header i {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 1rem;
}

.videos-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    color: white;
}

.videos-header p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Video Categories */
.video-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.category-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn:hover {
    background: rgba(255,255,255,0.2);
}

.category-btn.active {
    background: #f39c12;
    border-color: #f39c12;
}

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

.video-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.video-card.hidden {
    display: none;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

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

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 4rem;
    color: #ff0000;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-info {
    padding: 1.25rem;
}

.video-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
    color: white;
}

.video-info p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.5;
}

.video-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}

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

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

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

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

.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) {
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item-info h4 {
        font-size: 0.95rem;
    }

    .gallery-item-info p {
        font-size: 0.8rem;
    }

    .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;
    }

    .lightbox-caption h3 {
        font-size: 1.1rem;
    }

    .lightbox-caption p {
        font-size: 0.9rem;
    }

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

    .videos-section {
        padding: 3rem 1rem;
    }
}

@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;
    }
}
