
/* TICKER DE TEXTO */

.ticker {
    display: block;
    position: relative;
    overflow: hidden;
    height: 60px;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: inherit;
}

.ticker.layout-ready { opacity: 1; }

.ticker-track {
    position: absolute;
    left: 0;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    will-change: transform;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
}

.ticker-track > * {
    margin: 0 !important;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    height: 100%; 
    max-width: none !important;
}

.ticker-track > *::after {
    content: var(--ticker-symbol, "");
    margin-left: var(--ticker-gap, 20px);
    margin-right: var(--ticker-gap, 20px);
    opacity: 0.6;
    display: inline-block;
    font-weight: normal;
    line-height: 1;
}

.ticker:not([style*='--ticker-symbol']) .ticker-track > *::after,
.ticker[style*='--ticker-symbol: ""'] .ticker-track > *::after {
    content: ""; width: 1px;
    margin-left: var(--ticker-gap, 20px);
    margin-right: var(--ticker-gap, 20px);
}


/* TICKER DE GALERIA */

.gallery-ticker {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: var(--ticker-height, 300px); 
    
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    list-style: none;
}

.gallery-ticker.layout-ready { opacity: 1; }

.gallery-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%; 
    display: flex;
    align-items: center; 
    gap: var(--ticker-gap, 0px);
    width: max-content;
    will-change: transform;
    margin: 0 !important;
    padding: 0 !important;
}

.gallery-item {
    display: block;
    height: 100%; 
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}

.gallery-item img {
    display: block;
    height: 100%; 
    width: auto;  
    object-fit: cover; 
    max-width: none !important; 
}

/* =========================================
   EFEITO FADE NAS BORDAS (MÁSCARA)
   ========================================= */
   
.ticker.has-fade,
.gallery-ticker.has-fade {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}