﻿/* ======== گالری تمام صفحه ======== */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

    .fullscreen-gallery.active {
        display: flex;
        opacity: 1;
    }

    .fullscreen-gallery .gallery-close {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 100;
        width: 50px;
        height: 50px;
        background: rgba(255,255,255,0.2);
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        color: white;
        font-size: 28px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

        .fullscreen-gallery .gallery-close:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }

    .fullscreen-gallery .gallery-main {
        flex: 1;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .fullscreen-gallery .gallery-main .swiper-container {
            width: 100%;
            height: 100%;
        }

        .fullscreen-gallery .gallery-main .swiper-slide {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
        }

            .fullscreen-gallery .gallery-main .swiper-slide img {
                max-width: 100%;
                max-height: 100%;
                object-fit: contain;
            }

            .fullscreen-gallery .gallery-main .swiper-slide video {
                max-width: 100%;
                max-height: 100%;
                object-fit: contain;
                background: #000;
            }

    /* دکمه‌های قبلی/بعدی */
    .fullscreen-gallery .gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 60px;
        height: 60px;
        background: rgba(255,255,255,0.15);
        border: 2px solid rgba(255,255,255,0.2);
        border-radius: 50%;
        color: white;
        font-size: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

        .fullscreen-gallery .gallery-nav:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-50%) scale(1.1);
        }

        .fullscreen-gallery .gallery-nav.prev {
            right: 20px;
        }

        .fullscreen-gallery .gallery-nav.next {
            left: 20px;
        }

    /* شمارنده */
    .fullscreen-gallery .gallery-counter {
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255,255,255,0.8);
        font-size: 16px;
        background: rgba(0,0,0,0.5);
        padding: 6px 18px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        z-index: 10;
    }

    /* Thumbnail ها */
    .fullscreen-gallery .gallery-thumbs {
        height: 120px;
        padding: 10px 0;
        background: rgba(0,0,0,0.8);
        border-top: 1px solid rgba(255,255,255,0.1);
        position: relative;
    }

        .fullscreen-gallery .gallery-thumbs .swiper-container {
            width: 100%;
            height: 100%;
            padding: 0 20px;
        }

        .fullscreen-gallery .gallery-thumbs .swiper-slide {
            width: 100px !important;
            height: 100px !important;
            cursor: pointer;
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
            opacity: 0.6;
            position: relative;
        }

        .fullscreen-gallery .gallery-thumbs .swiper-slide-thumb-active {
            border-color: #fff;
            opacity: 1;
            transform: scale(1.05);
        }

        .fullscreen-gallery .gallery-thumbs .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .fullscreen-gallery .gallery-thumbs .swiper-slide .thumb-play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 15px;
            background: rgba(44, 75, 235, 0.6);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(255,255,255,0.5);
        }

        .fullscreen-gallery .gallery-thumbs .swiper-slide .thumb-video-label {
            position: absolute;
            bottom: 5px;
            left: 5px;
            right: 5px;
            background: rgba(0,0,0,0.7);
            color: white;
            font-size: 10px;
            text-align: center;
            padding: 2px;
            border-radius: 4px;
        }

/* Responsive */
@media (max-width: 768px) {
    .fullscreen-gallery .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

        .fullscreen-gallery .gallery-nav.prev {
            right: 10px;
        }

        .fullscreen-gallery .gallery-nav.next {
            left: 10px;
        }

    .fullscreen-gallery .gallery-thumbs {
        height: 80px;
    }

        .fullscreen-gallery .gallery-thumbs .swiper-slide {
            width: 60px !important;
            height: 60px !important;
        }

    .fullscreen-gallery .gallery-counter {
        bottom: 80px;
        font-size: 14px;
    }

    .fullscreen-gallery .gallery-close {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }
}



.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    z-index: 10;
    border: 3px solid rgba(255,255,255,0.3);
}


.video-play-btn-sm {
    width: 40px;
    height: 40px;
  
}



    .video-play-btn i {
        color: #2c4beb;
        font-size: 35px;
        margin-left: 5px;
    }

.video-play-btn-sm i {
    font-size: 20px;
}