﻿.container {
    display: inline-block;
    vertical-align: middle;
    width: 40%;
    margin: 20px;
    background-color: white;
    cursor: pointer;
    max-width: 500px;direction:rtl
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none;
    outline: none; 
}

    .slider::-webkit-scrollbar {
        display: none;
    }

    .slider img {
        flex: 0 0 auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
        scroll-snap-align: start;
        user-select: none;
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-drag: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }



.prev, .next {
    border: 1px solid #012f6d;
    outline: none;
    border-radius: 50px;
    cursor: pointer;
    position: absolute;
    top: calc(50% - 16px);
    width: 30px;
    height: 30px;
    background-image: url(../pic/felesh.png);
    background-size: 30px;
    background-position: center;
}

.prev {
    opacity: 0;
    right: 20px;
    transform: rotate(90deg);
}

.next {
    opacity: 1;
    left: 20px;
    transform: rotate(270deg);
}

.indicator {
    display: flex;
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: .3s;
    border: 1px solid #ccc
}

    .dot.active {
        background-color: #7bb0f8;
        width: 30px;
    }

/* استایل برای حالت تمام صفحه */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 11;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    max-width: none;
}

    .fullscreen .slider-container {
        width: 90%;
        height: 90%;
    }

@media(max-width:768px) {
    .container {
        display: block;
        vertical-align: auto;
        width: 100%;
        margin: 0;
    }

    .fullscreen .slider-container {
        width: 100%;
        height: 100%;
    }

    .slider {
        border-bottom: 1px solid #012f6d;
    }
}
@media(max-width:768px) and (min-width:501px) {
    .container {
        display: table;
        width: 500px;
        margin: 80px auto 40px auto;
    }

    .slider {
        border-bottom:none;
    }
}




    .fullscreen .slider {
        height: 100%;
        border: none;
    }

        .fullscreen .slider img {
            object-fit: contain;
        }

    .close-fullscreen {
        position: fixed;
        top: 40px;
        left: 40px;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 12;
        font-size: 24px;
        color: red;
        font-weight: bold;
    }

        .close-fullscreen:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }
