/* =========================================================
   ECO LODGE ITORORÓ — CAMERA TRAP VIDEO CAROUSEL
   2 slides visible • 1 slide per scroll • infinite
   Each slide contains 2 videos stacked vertically.
   ========================================================= */

.itororo-video-carousel {
    --itororo-video-radius: 16px;
    --itororo-video-gap: 14px;
    width: 100%;
    min-width: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.itororo-video-carousel__viewport {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.itororo-video-carousel__track {
    display: flex;
    align-items: stretch;
    gap: var(--itororo-video-gap);
    width: max-content;
    min-width: 100%;
    will-change: transform;
}

.itororo-video-carousel__slide {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--itororo-video-gap);
}

.itororo-video-card {
    position: relative;
    width: 100%;
    min-width: 0;
    border-radius: var(--itororo-video-radius);
    overflow: hidden;
    background: #162217;
    box-shadow: 0 8px 22px rgba(26, 34, 22, 0.10);
    isolation: isolate;
    aspect-ratio: 800 / 441;
}

.itororo-video-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(218, 208, 191, 0.10);
}

.itororo-video-card--playing::after {
    display: none;
}

.itororo-video-card__trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: inherit;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.itororo-video-card__trigger:focus-visible {
    outline: 2px solid #C7A66A;
    outline-offset: -3px;
}

.itororo-video-card__image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 800 / 441;
    object-fit: cover;
    border-radius: inherit;
    transform: scale(1);
    transition: transform 0.35s ease, filter 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .itororo-video-card__trigger:hover .itororo-video-card__image {
        transform: scale(1.018);
        filter: brightness(1.05);
    }
}

.itororo-video-card__player {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 800 / 441;
    border: 0;
    border-radius: inherit;
    background: #000;
}

/* Pagination */
.itororo-video-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    min-height: 18px;
}

.itororo-video-carousel__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(46, 65, 39, 0.28);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: width 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.itororo-video-carousel__dot:hover {
    background: rgba(46, 65, 39, 0.60);
}

.itororo-video-carousel__dot.is-active {
    width: 22px;
    background: #B99A62;
}

.itororo-video-carousel__dot:focus-visible {
    outline: 2px solid #2E4127;
    outline-offset: 3px;
}

/*
 * Keep two columns + two rows even on smaller breakpoints, as requested.
 * Only spacing/radius are reduced.
 */
@media (max-width: 1024px) {
    .itororo-video-carousel {
        --itororo-video-gap: 12px;
        --itororo-video-radius: 14px;
    }
}

@media (max-width: 767px) {
    .itororo-video-carousel {
        --itororo-video-gap: 8px;
        --itororo-video-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itororo-video-card__image,
    .itororo-video-carousel__dot {
        transition: none;
    }

    .itororo-video-carousel__track {
        scroll-behavior: auto;
    }
}
