/* Estilos CSS de la galería de actividades */

/* Estilos del contenedor */

.gallery {
    padding: 0px 0px 10px 0px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Cambiado a 250px para pantallas más pequeñas */
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.mini-gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px)); /* Formato reducido */
}

/* Estilos de los elementos */

.gallery-item {
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

@keyframes zoom {
    from { transform: scale(0.4); }
    to { transform: scale(1); }
}

@media (max-width: 992px) {

    .mini-gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

}

/* Ajustes para pantallas muy pequeñas (móviles) */
@media (max-width: 576px) {
    .gallery-img {
        height: 300px;
    }
    .overlay {
        height: 300px;
    }
}