/* =========================================================
   LEISURE EQUIPMENT - PRODUCT VIDEO
   Product Watch Video Button
   + Shared YouTube Modal
   ========================================================= */


/* =========================================================
   WATCH VIDEO BUTTON
   ========================================================= */

.leisure-watch-video {
    display: block;

    width: 100%;

    margin: 12px 0 0;
    padding: 0;

    text-align: center;
}



/* =========================================================
   OPTIONAL PLAY ICON
   =========================================================

.leisure-video-btn::before {
    content: "▶";

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-right: 8px;

    font-size: 12px;
    line-height: 1;
} */


/* =========================================================
   SHARED YOUTUBE MODAL
   Homepage + Product Detail
   ========================================================= */

.le-youtube-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    width: 100%;
    height: 100%;

    isolation: isolate;
}

.le-youtube-modal.active {
    display: block;
}


/* =========================================================
   MODAL OVERLAY
   ========================================================= */

.le-youtube-modal-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.88);

    cursor: default;
}


/* =========================================================
   MODAL BOX
   ========================================================= */

.le-youtube-modal-box {
    position: absolute;

    top: 50%;
    left: 50%;

    width: min(92vw, 430px);
    height: min(88vh, 765px);

    transform: translate(-50%, -50%);

    overflow: hidden;

    background: #000;

    border-radius: 12px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.55);
}


/* =========================================================
   YOUTUBE IFRAME
   ========================================================= */

.le-youtube-modal-box iframe {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: #000;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.le-youtube-close {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.75);

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.le-youtube-close:hover {
    background: rgba(0, 0, 0, 0.95);

    color: #fff;

    transform: scale(1.05);
}

.le-youtube-close:focus {
    outline: none;
}

.le-youtube-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* =========================================================
   NEXT BUTTON
   Homepage ONLY
   ========================================================= */

.le-youtube-next {
    position: absolute;

    top: 50%;
    right: 12px;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.75);

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    appearance: none;
    -webkit-appearance: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.le-youtube-next:hover {
    background: rgba(0, 0, 0, 0.95);

    color: #fff;

    transform:
        translateY(-50%)
        scale(1.05);
}

.le-youtube-next:focus {
    outline: none;
}

.le-youtube-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* =========================================================
   BODY LOCK WHEN MODAL IS OPEN
   ========================================================= */

body.le-youtube-modal-open {
    overflow: hidden;
}


/* =========================================================
   PRODUCT PAGE
   ========================================================= */

.single-product .leisure-watch-video {
    width: 100%;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .leisure-watch-video {
        margin-top: 10px;
    }

    .leisure-video-btn {
        min-height: 44px;

        padding: 9px 15px;

        font-size: 13px;
    }


    .le-youtube-modal-box {
        width: 94vw;
        height: 88vh;

        border-radius: 8px;
    }


    .le-youtube-close {
        top: 8px;
        right: 8px;

        width: 36px;
        height: 36px;

        font-size: 24px;
    }


    .le-youtube-next {
        right: 8px;

        width: 42px;
        height: 42px;

        font-size: 31px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .le-youtube-modal-box {
        width: 95vw;
        height: 86vh;
    }

}


.leisure-video-popup{

position:fixed;

inset:0;

background:rgba(0,0,0,.85);

display:flex;

justify-content:center;

align-items:center;

z-index:999999;

}

.popup-inner{

width:90%;

max-width:900px;

position:relative;

}

.popup-inner iframe{

width:100%;

aspect-ratio:16/9;

border:0;

background:#000;

}

.popup-close{

position:absolute;

right:-10px;

top:-40px;

font-size:40px;

color:#fff;

cursor:pointer;

}