/* --- ESTILOS GENERALES Y ESTRUCTURA --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7faff;
    margin: 0;
    padding: 10px;
}

/* --- CUADRÍCULA DE 2x2 PARA LAS GALERÍAS --- */
.galleries-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 950px;
    margin: 0 auto;
}

/* --- ESTILOS PARA CADA SECCIÓN DE GALERÍA --- */
.gallery-section {
    width: 100%;
}

.animated-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #004a9e;
    text-align: center;
    margin-bottom: 10px;
}

/* --- CONTENEDOR DE LA GALERÍA --- */
.slideshow-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #eef5ff;
    box-shadow: 0 6px 15px rgba(0, 87, 184, 0.12);
}

/* --- ESTILOS DE IMAGEN Y ANIMACIÓN --- */
.slideshow-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* La clase 'is-active' hace la imagen visible */
.slideshow-image.is-active {
    opacity: 1;
}

/* --- RESPONSIVE: PARA MÓVILES --- */
@media (max-width: 900px) {
    .galleries-wrapper {
        grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
    }
}
