/* Galería / Carrusel — Valente (mesmo padrão da galería Dunamis) */
.galeria-valente {
    /* Mesmo container central de 1200px do .content-wrapper (padrão Dunamis) */
    max-width: 1200px;
    margin: 40px auto;
}

.galeria-valente h2 {
    color: #2e7d32;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

.carrusel {
    position: relative;
    display: flex;
    align-items: center;
}

.carrusel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carrusel-track::-webkit-scrollbar {
    display: none;
}

.carrusel-item {
    flex: 0 0 auto;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carrusel-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.carrusel-item img {
    display: block;
    height: 240px;
    width: auto;
    object-fit: cover;
}

.carrusel-flecha {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(46, 125, 50, 0.92);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.carrusel-flecha:hover {
    background: #1b5e20;
}

.carrusel-flecha.prev {
    position: absolute;
    left: -6px;
}

.carrusel-flecha.next {
    position: absolute;
    right: -6px;
}

.carrusel-flecha.oculto {
    opacity: 0;
    pointer-events: none;
}

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

.lightbox.activo {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-cerrar {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

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

.lightbox-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-flecha:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-flecha.prev {
    left: 16px;
}

.lightbox-flecha.next {
    right: 16px;
}

.lightbox-contador {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
    opacity: 0.85;
}

/* Responsivo */
@media (max-width: 768px) {
    .galeria-valente h2 {
        font-size: 24px;
    }

    .carrusel-item img {
        height: 180px;
    }

    .lightbox-flecha {
        width: 46px;
        height: 46px;
        font-size: 32px;
    }

    .lightbox-cerrar {
        font-size: 38px;
        top: 12px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .galeria-valente h2 {
        font-size: 20px;
    }
}
