.ys-18c67303-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
}

.ys-18c67303-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: ys-18c67303-marquee 30s linear infinite;
}

.ys-18c67303-wrapper:hover .ys-18c67303-track {
    animation-play-state: paused;
}

@keyframes ys-18c67303-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ys-18c67303-item {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    aspect-ratio: 9/16;
}

.ys-18c67303-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ys-18c67303-item:hover img {
    transform: scale(1.05);
}

.ys-18c67303-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ys-18c67303-item:hover .ys-18c67303-play {
    background: #ff0000;
}

/* CTA Button Styles */
.ys-18c67303-cta {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e50914; /* Default YouTube Red, overrideable via Elementor */
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 2; /* ensure it's above the image */
    white-space: nowrap;
}

.ys-18c67303-cta:hover {
    transform: translateX(-50%) scale(1.05);
    color: #ffffff; /* keep text white on hover */
}

/* Lightbox styles */
.ys-18c67303-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ys-18c67303-iframe-wrapper {
    position: relative;
    height: 90vh;
    max-height: 900px;
    aspect-ratio: 9/16;
    background: #000;
}

.ys-18c67303-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ys-18c67303-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
