/* JN Carousel PRO V8 */
.jn-carousel {
    position: relative;
    overflow: hidden;
}
.jn-track {
    display: flex;
    transition: transform 0.4s ease;
}
.jn-slide {
    min-width: 100%;
    flex-shrink: 0;
}
.jn-slide img,
.jn-slide video,
.jn-slide iframe {
    width: 100%;
    display: block;
    /* Proporção 16:9 para iframes e vídeos */
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.jn-prev,
.jn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    /* Foco visível para acessibilidade */
    outline-offset: 2px;
}
.jn-prev:focus-visible,
.jn-next:focus-visible {
    outline: 3px solid #fff;
}
.jn-prev { left: 10px; }
.jn-next { right: 10px; }

.jn-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.jn-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.jn-dot.active {
    background: #fff;
}
.yt-lazy {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: #000;
}
.yt-lazy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.yt-lazy .play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    pointer-events: none;
}
