/* --- استایل‌های Thumbnail ویدیو در گالری --- */
.wpv-video-thumb-wrapper {
    /* اطمینان از قرارگیری در کنار سایر بندانگشتی‌ها */
    display: inline-block; 
}

.wpv-video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    /* این استایل‌ها را با استایل بندانگشتی‌های ووکامرس خود هماهنگ کنید */
    border-radius: 6px; 
}

.wpv-video-thumbnail-img {
    width: 100%;
    height: auto;
    display: block;
}

.wpv-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 102, 0, 0.8); /* رنگ برند برای دکمه پلی */
    color: #fff;
    border-radius: 50%;
    width: 30px; 
    height: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.wpv-video-thumb:hover .wpv-play-icon {
    background: rgba(255, 102, 0, 1);
}

/* --- استایل Modal (پنجره پاپ آپ) --- */
.video-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* پس‌زمینه تیره */
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    background: #000;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 11;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* نسبت تصویر 16:9 برای ویدیو */
    height: 0;
    overflow: hidden;
}

.video-embed-container iframe,
.video-embed-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}