/* Modal de imagem */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}
.image-modal.active { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.image-modal img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
}
.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: all 0.3s;
}
.image-modal-close:hover { 
    background: rgba(0,0,0,0.8); 
    transform: scale(1.1); 
}

/* Galeria */
.galeria-single {
    display: flex;
    justify-content: center;
}
.galeria-single .galeria-thumb {
    max-width: 450px;
    width: 100%;
}
.galeria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.galeria-carousel-wrapper {
    display: none;
    position: relative;
}
.galeria-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.galeria-carousel::-webkit-scrollbar { 
    display: none; 
}
.galeria-carousel .galeria-thumb {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.galeria-nav:hover { 
    background: rgba(0,0,0,0.7); 
}
.galeria-nav.prev { left: 8px; }
.galeria-nav.next { right: 8px; }
.galeria-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.galeria-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.3s;
    cursor: pointer;
}
.galeria-dot.active { 
    background: #6b7280; 
}
.galeria-thumb {
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    aspect-ratio: 4/5;
    background: #e5e7eb;
}
.galeria-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.galeria-thumb:hover { 
    transform: scale(1.02); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}
.galeria-thumb:hover img { 
    transform: scale(1.05); 
}

@media (max-width: 640px) {
    .galeria-grid { display: none; }
    .galeria-carousel-wrapper { display: block; }
}

/* Anunciantes */
.evento-carousel-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    margin-bottom: 1rem;
}
.evento-carousel-container {
    position: relative;
    width: 100%;
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.evento-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.5s ease;
}
.evento-carousel-slide.active { 
    opacity: 1; 
}
.evento-carousel-slide img,
.evento-carousel-slide video {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
}
