/* --- SimpleLightbox Base & Neon Theme --- */
body.hidden-scroll {
    overflow: hidden;
}

/* پس‌زمینه شیشه‌ای و تاریک شده */
.sl-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* مقدار 0.6 را اگر کمتر کنی شفاف‌تر می‌شود (مثلاً 0.4) */
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    display: none;
    z-index: 1035;
}

.sl-wrapper {
    z-index: 1040;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: fixed;
}

    .sl-wrapper * {
        box-sizing: border-box;
    }

    /* دکمه‌های کنترلی نئونی (بستن و ناوبری) */
    .sl-wrapper button {
        border: 0 none;
        background: rgba(0, 98, 155, 0.15) !important;
        backdrop-filter: blur(5px);
        color: #fff !important;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10060;
        border: 1px solid rgba(0, 98, 155, 0.4) !important;
    }

        .sl-wrapper button:hover {
            background: #00629b !important;
            box-shadow: 0 0 20px rgba(0, 98, 155, 0.8);
            opacity: 1 !important;
        }

    .sl-wrapper .sl-close {
        display: none;
        position: fixed;
        right: 30px;
        top: 30px;
        height: 50px;
        width: 50px;
        border-radius: 50% !important;
        font-size: 30px;
        line-height: 50px;
    }

    .sl-wrapper .sl-navigation button {
        position: fixed;
        top: 50%;
        margin-top: -25px;
        height: 55px;
        width: 55px;
        border-radius: 50% !important;
        font-size: 24px;
    }

        .sl-wrapper .sl-navigation button.sl-next {
            right: 25px;
        }

        .sl-wrapper .sl-navigation button.sl-prev {
            left: 25px;
        }

    /* استایل تصویر اصلی با نور نئونی آبی */
    .sl-wrapper .sl-image {
        position: fixed;
        z-index: 10000;
    }

        .sl-wrapper .sl-image img {
            margin: 0;
            padding: 0;
            display: block;
            width: 100%;
            height: auto;
            border-radius: 20px !important;
            /* لایه‌های سایه برای ایجاد نور نئون */
            border: 2px solid rgba(0, 98, 155, 0.5) !important;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), 0 0 45px rgba(0, 98, 155, 0.4), 0 0 80px rgba(0, 98, 155, 0.2) !important;
        }

    /* شمارنده و کپشن */
    .sl-wrapper .sl-counter {
        display: none;
        position: fixed;
        top: 35px;
        left: 30px;
        z-index: 1060;
        color: #fff;
        background: rgba(0, 98, 155, 0.4);
        padding: 6px 18px;
        border-radius: 20px;
        font-size: 14px;
        border: 1px solid rgba(0, 98, 155, 0.3);
    }

    .sl-wrapper .sl-image .sl-caption {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent) !important;
        color: #fff;
        padding: 25px 15px 15px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        text-align: center;
    }

/* لودر چرخان نئونی */
.sl-spinner {
    display: none;
    border: 4px solid rgba(0, 98, 155, 0.2);
    border-left-color: #00629b;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    left: 50%;
    margin: -25px 0 0 -25px;
    position: fixed;
    top: 50%;
    z-index: 1007;
    animation: neon-spin 1s linear infinite;
}

@keyframes neon-spin {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 5px #00629b;
    }

    50% {
        box-shadow: 0 0 15px #00629b;
    }

    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 5px #00629b;
    }
}

/* انیمیشن جابجایی */
.sl-transition {
    transition: transform 0.3s ease-out;
}
/* افکت پررنگ شدن سایه نئونی هنگام نگه داشتن موس روی عکس */
.sl-wrapper .sl-image img:hover {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 98, 155, 0.7), 0 0 100px rgba(0, 98, 155, 0.4) !important;
    border-color: rgba(0, 98, 155, 1) !important;
    transform: scale(1.01); /* یک لرزش/بزرگنمایی خیلی ملایم */
}