
/* FIGS Video Slideshow V1
   Standalone responsive slideshow styled to match the ShopFIGS OpenCart banner. */

.figs-video-slideshow {
    position: relative;
    width: 100%;
    margin: 0 0 60px;
    background: transparent;
    z-index: 1;
    border: none;
    border-radius: 8px;
    box-shadow:
        0 4px 12px rgba(0,0,0,.14),
        0 1px 3px rgba(0,0,0,.08);
    overflow: visible;
}

.figs-video-stage {
    position: relative;
    touch-action: pan-y;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 7px;
}

.figs-video-slide {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border-radius: 7px;
    transition: opacity .55s ease;
}

.figs-video-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.figs-video-image-link,
.figs-video-inline {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 7px;
}

.figs-video-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
    box-shadow:
        0 8px 18px rgba(0,0,0,.16),
        0 3px 8px rgba(0,0,0,.10);
    transform: translateZ(0);
    transition: transform .25s ease, box-shadow .25s ease;
}

.figs-video-placeholder {
    position: absolute;
    inset: 0;
    background: #000;
}

.figs-video-inline-player {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 7px;
    opacity: 0;
    transition: opacity .35s ease;
}

.figs-video-inline-player.is-ready {
    opacity: 1;
}

.figs-video-inline-player:empty {
    display: none;
}


.figs-video-inline-player iframe {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 168.75%;
    transform: translateY(-50%);
    border: 0;
    pointer-events: auto;
}

/* Keep the poster visible under the player until YouTube's startup chrome is gone. */
.figs-video-poster,
.figs-video-placeholder {
    z-index: 1;
}


/* Video-only context title. Uses the Design > Banners Title field. */
.figs-video-title-card {
    position: absolute;
    z-index: 4;
    left: 0;
    top: 24px;
    max-width: min(72%, 620px);
    padding: 11px 18px 11px 16px;
    background: linear-gradient(90deg, rgba(28,28,28,.92), rgba(28,28,28,.78));
    border-left: 4px solid #ff6600;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    color: #fff;
    opacity: 0;
    transform: translateX(-105%);
    pointer-events: none;
}

.figs-video-title-heading,
.figs-video-title-caption {
    display: block;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.figs-video-title-heading {
    font-size: 20px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: .25px;
}

.figs-video-title-caption {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: .1px;
    color: rgba(255,255,255,.92);
}

.figs-video-slide-video.is-active .figs-video-title-card {
    animation: figsVideoTitleInOut 3.8s ease both;
}

@keyframes figsVideoTitleInOut {
    0% { opacity: 0; transform: translateX(-105%); }
    9% { opacity: 1; transform: translateX(0); }
    76% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-105%); }
}

/* Keep v0.3.0's full-video control, but make it unobtrusive. */
.figs-video-watch-full {
    position: absolute;
    z-index: 8;
    right: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 4px;
    background: rgba(0,0,0,.68);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.figs-video-watch-full:hover,
.figs-video-watch-full:focus {
    background: rgba(0,0,0,.9);
    color: #fff;
    outline: none;
}
.figs-video-watch-full .fa { margin-right: 5px; }

/* Match live site's 38px round pager buttons. */
.figs-video-nav {
    position: absolute;
    z-index: 7;
    top: 50%;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(35,35,35,.42);
    color: #fff;
    font-size: 18px;
    line-height: 38px;
    text-align: center;
    text-shadow: none;
    box-shadow: 0 3px 8px rgba(0,0,0,.22);
    opacity: .88;
    cursor: pointer;
    transform: none;
    transition: all .25s ease;
}

.figs-video-prev { left: 12px; }
.figs-video-next { right: 12px; }

.figs-video-nav:hover,
.figs-video-nav:focus {
    background: rgba(25,25,25,.58);
    transform: scale(1.04);
    opacity: 1;
    color: #fff;
    outline: none;
}

/* Match live pagination location and dots. */
.figs-video-dots {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    margin: 0;
    line-height: 1;
    z-index: 10;
}

.figs-video-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    margin: 0 5px;
    border: 0;
    border-radius: 20px;
    background: #777;
    box-shadow:
        inset 0 0 3px rgba(0,0,0,.25),
        0 1px 3px rgba(0,0,0,.20);
    opacity: .75;
    cursor: pointer;
    transition: all .2s ease;
}

.figs-video-dot:hover {
    background: #555;
    opacity: .95;
}

.figs-video-dot.is-active {
    background: #111;
    opacity: 1;
    transform: scale(1.08);
}

/* Existing v0.3.0 full-video modal. */
.figs-video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.figs-video-modal.is-open { display: flex; }
.figs-video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.figs-video-modal-dialog { position: relative; z-index: 1; width: 96vw; max-width: 1100px; max-height: 94vh; }
.figs-video-frame-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #000; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.figs-video-frame-holder { position: absolute; inset: 0; }
.figs-video-frame-holder iframe { width: 100%; height: 100%; border: 0; }
.figs-video-modal-close { position: absolute; right: -8px; top: -48px; z-index: 2; border: 0; background: transparent; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }
body.figs-video-modal-open { overflow: hidden; }

@media (min-width: 768px) {
    .figs-video-prev {
        opacity: 0;
        left: -18px;
    }

    .figs-video-next {
        opacity: 0;
        right: -18px;
    }

    .figs-video-slideshow:hover .figs-video-prev {
        opacity: .92;
        left: 12px;
    }

    .figs-video-slideshow:hover .figs-video-next {
        opacity: .92;
        right: 12px;
    }

    .figs-video-slide:hover .figs-video-media {
        transform: scale(1.01) translateZ(0);
        box-shadow:
            0 12px 24px rgba(0,0,0,.20),
            0 4px 10px rgba(0,0,0,.12);
    }
}

@media (max-width: 767px) {
    .figs-video-inline-player iframe {
        pointer-events: none;
    }

    .figs-video-title-card {
        top: 12px;
        max-width: 78%;
        padding: 7px 11px 7px 9px;
        border-left-width: 3px;
        border-radius: 0 4px 4px 0;
    }

    .figs-video-title-heading {
        font-size: 13px;
        line-height: 1.12;
        letter-spacing: .15px;
    }

    .figs-video-title-caption {
        margin-top: 2px;
        font-size: 9px;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .figs-video-nav {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .figs-video-watch-full {
        right: 8px;
        bottom: 8px;
        padding: 5px 8px;
        font-size: 10px;
        line-height: 1.1;
        border-radius: 3px;
    }

    .figs-video-watch-full .fa {
        margin-right: 3px;
        font-size: 9px;
    }

    .figs-video-modal { padding: 10px; }
    .figs-video-modal-dialog { width: 100%; }
    .figs-video-modal-close { right: 0; top: -42px; }
}


/* Native self-hosted MP4 banner preview */
.figs-video-local,
.figs-video-native {
    width: 100%;
    height: 100%;
}

.figs-video-native {
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    border: 0;
    border-radius: 7px;
    background: #000;
    pointer-events: none;
}

.figs-video-local-poster {
    position: absolute;
    inset: 0;
    object-fit: cover;
}
