.veiss-gallery-filter {
    text-align: center;
}

/* Estilo de los botones de filtro */
.veiss-gallery-filters button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    background: #f0f0f0;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

.veiss-gallery-filters button.active {
    background: #000;
    color: #fff;
}

/* Contenedor grid ajustable por Elementor */
.veiss-gallery-grid {
    display: grid;
    margin-top: 20px;
    gap: 10px;
    /* puedes ajustar el espacio entre elementos */
}

/* Ajuste de cada item */
.veiss-gallery-grid .gallery-item {
    padding: 0;
    overflow: hidden;
}

/* Estilo para las imágenes */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item {
    margin-bottom: 0;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    pointer-events: auto;
    position: relative;
}

/* Fade out (ocultar) */
.gallery-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Fade in (mostrar) */
.gallery-item.fade-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.gallery-title {
    position: absolute;
    bottom: 0;
    z-index: 10;
    color: white;
    background: #0000006e;
    width: 100%;
    text-align: center;
}