#galeria {
    background-color: #b7f5db; /* Tono verde muy suave y fresco */
    border-top: 1px solid #c8e6c9;
    border-bottom: 1px solid #c8e6c9;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Radio de borde más sutil para imágenes pequeñas */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 110px; /* Altura más compacta */
    width: 100%;
    background-color: #1b5e20; /* Fondo verde oscuro de respaldo mientras carga */
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin deformarse */
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}
