/*
 * WRYEDGE DIRECT 2.0
 * Product Gallery Video v0.1.0-alpha1
 */

/* Slim image thumbnail scrollbar */

.wd-gallery-thumbs {
    scrollbar-width: thin;
    scrollbar-color: #b8bec6 transparent;
}

.wd-gallery-thumbs::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.wd-gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.wd-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #b8bec6;
    border-radius: 999px;
}

/* Product video launch */

.wd-product-gallery__main {
    position: relative;
}

.wd-product-video-launch {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    padding: 7px 10px;

    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;

    background: rgba(255, 255, 255, .94);
    color: #151515;

    box-shadow: 0 5px 18px rgba(0, 0, 0, .09);

    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.wd-product-video-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(0, 0, 0, .15);
}

.wd-product-video-launch[hidden] {
    display: none;
}

.wd-product-video-launch svg {
    display: block;
    width: 42px;
    height: 42px;
}

.wd-product-video-launch span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .065em;
}

/* Inline video player */

.wd-product-video-stage {
    position: absolute;
    inset: 0;
    z-index: 10;

    overflow: hidden;
    border-radius: inherit;

    background: #080808;
}

.wd-product-video-stage iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.wd-product-video-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 11;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .96);
    color: #151515;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.wd-product-video-launch:focus-visible,
.wd-product-video-close:focus-visible {
    outline: 3px solid #3879c9;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .wd-product-video-launch {
        right: 10px;
        bottom: 10px;
        padding: 5px 8px;
    }

    .wd-product-video-launch svg {
        width: 36px;
        height: 36px;
    }
}


/* ====================================================
   WRYEDGE DIRECT — PRODUCT VIDEO POLISH v0.1.1-alpha1
   ==================================================== */

/* 2 px native scrollbar where browser supports it */

.wd-gallery-thumbs {
    scrollbar-width: auto;
    scrollbar-color: auto;
}

.wd-gallery-thumbs::-webkit-scrollbar {
    width: 2px !important;
    height: 2px !important;
}

.wd-gallery-thumbs::-webkit-scrollbar-track {
    background: transparent !important;
}

.wd-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(120, 132, 146, .55) !important;
    border-radius: 999px;
}

/* Firefox provides a native thin scrollbar */

@supports (-moz-appearance: none) {
    .wd-gallery-thumbs {
        scrollbar-width: thin;
        scrollbar-color: #b8bec6 transparent;
    }
}

/* Subtle translucent white-glass video badge */

.wd-product-video-launch {
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    border-color: rgba(15, 23, 42, .15);

    box-shadow:
        0 4px 16px rgba(0, 0, 0, .07);
}

.wd-product-video-launch:hover {
    background: rgba(255, 255, 255, .82);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, .12);
}
