:root {    
    --popup-content-bg: #822833;                            /* COLOR: BG MODAL */
    --popup-close-bg: #DBBC7C;                                /* COLOR: BG CLOSE BUTTON */
    --popup-link-bg: #DBBC7C;                                 /* COLOR: BG LINK BUTTON */
    --popup-link-text: black;                               /* COLOR: LINK TEXT */
    --popup-hover-overlay: rgba(6, 100, 131, 0.2);          /* COLOR: BG OVERLAY VIDEO */
    --popup-text-color: white;                              /* COLOR: OPTIONAL TEXT */
    --popup-open-bg: #822833;                               /* COLOR: BG POPUP BUTTON */
    --popup-open-bg-hover: #822833;                         /* COLOR: BG HOVER POPUP BUTTON */
    --popup-open-text: white;                               /* COLOR: POPUP BUTTON */
}

#ns-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:  rgba(0, 0, 0, 0.8);  
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999 !important;
}

.ns-popup-content {
    background: var(--popup-content-bg);
    padding-bottom: 15px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 10px;
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ns-popup-link {
    display: block;
    margin-top: 15px;
    width: 90%;
    background-color: var(--popup-link-bg);
    color: var(--popup-link-text);
    border: none;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
}

#ns-popup-close {
   
    position: absolute;
    display: flex;
    margin-top: 15px;
    margin-right: 15px;
    width: 34px;
    height: 34px;
    background-color: var(--popup-close-bg);
    color: #000;
    border: none;
    padding: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    top: 0;
    right: 0;
    align-items: center;
    justify-content: center;
	border-radius: 10px;
    z-index:50;
}

.ns-popup-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ns-popup-video-wrapper {
    width: 100%;
    height: 100%;
    cursor: pointer;
        position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 0.5rem; 
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); 
}

.ns-play-button {
    transition: 0.3s ease;
    color: var(--popup-text-color);
    font-size: 1.875rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end; 
    gap: 0.5rem;
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 20px;
}

.play-button-svg {
    transition: stroke 0.3s ease;
}

.ns-play-button:hover .play-button-svg path {
    stroke: #00a7e1;
}

.ns-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ns-play-button:hover {
    background-color: var(--popup-hover-overlay);
}

.ns-popup-custom-text {
    padding: 10px;
    color: var(--popup-text-color);
    font-size: 20px;
    text-align: center; 

    align-items: center;   
     
}

.ns-progress-bar {
    width: 100%;
    margin-top: 8px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    z-index: 50;
}

.ns-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00a7e1;
    cursor: pointer;
}

#ns-reopen-button {
    position: fixed;
    right: 25px;
    top: 70%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    background-color:var(--popup-open-bg);
    color: var(--popup-open-text);
    padding: 5px 25px;
    font-size: 12px;
    letter-spacing: 2px;
    border-radius:100px;
    cursor: pointer;
    z-index: 40;
    transition: background-color 0.3s ease;
    display:none;
}

#ns-reopen-button:hover {
    background-color: var(--popup-open-bg-hover);;
}