﻿
* {
    box-sizing: border-box;
}

.gallery-wrapper {
    width: 100%;
    margin: 20px auto 20px auto;
    padding: 20px 0;
}

.gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, #4f46e5, #0f172a 60%);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-viewport {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 70% 30%, #4f46e5, #0f172a 60%);
    overflow: hidden;
    position: relative;
}

    .gallery-viewport img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        user-select: none;
        border-radius: 50px;
        -webkit-user-drag: none;
        background: #fff;
    }

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 30%, #f0309d, #0f172a 60%);
    color: #111;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: 0.25s ease;
    backdrop-filter: blur(8px);
}

    .nav-btn:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.08);
    }

    .nav-btn.prev {
        right: 16px;
    }

    .nav-btn.next {
        left: 16px;
    }

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px 18px;
    background: transparent;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #c8d2e1;
    cursor: pointer;
    transition: 0.25s ease;
}

    .dot.active {
        width: 26px;
        border-radius: 999px;
        background: radial-gradient(circle at 50% 50%, #f0309d, #4f46e5 90%);
    }

/*desktop*/
@media (min-width: 1025px) {
    .gallery-viewport {
        aspect-ratio: 21 / 6.5; /* ارتفاع کمتر */
    }
}

/* موبایل و تبلت: دکمه‌ها مخفی شوند */
@media (max-width: 1024px) {
    .nav-btn {
        display: none;
    }

    .gallery {
        border-radius: 50px;
    }

    .gallery-viewport {
        aspect-ratio: 4 / 3;
    }
}

/* موبایل کوچکتر */
@media (max-width: 640px) {
    .gallery-wrapper {
        padding: 20px 0;
    }

    .gallery-viewport {
        aspect-ratio: 1 / 1;
    }
}
