.custom-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    padding: 20px 0;
}

.custom-ticker-container {
    display: flex;
    align-items: center;
    gap: 0;
    animation-name: ticker-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    width: max-content;
}

.custom-ticker-container:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    flex-shrink: 0;
    width: var(--ticker-item-width, 300px);
    height: var(--ticker-item-height, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.ticker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ticker-item.ticker-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ticker-item.ticker-image img:hover {
    transform: scale(1.05);
}

.ticker-item.ticker-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ticker-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.ticker-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ticker-text-content {
    padding: 30px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
    max-height: 100%;
}

.ticker-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    padding: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
}

.ticker-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.ticker-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1000000;
}

.ticker-lightbox-close:hover,
.ticker-lightbox-close:focus {
    color: #bbb;
}

@media (max-width: 768px) {
    .ticker-text-content {
        padding: 20px;
        font-size: 14px;
    }

    .ticker-lightbox {
        padding: 20px;
    }

    .ticker-lightbox-content {
        max-width: 95%;
    }

    .ticker-lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}
