:root {
    --accent: #14b8a6;
}

/*body {*/
/*    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;*/
/*    margin: 0;*/
/*    background: #0b0b0b;*/
/*    color: #eee;*/
/*}*/

.slideshow_cont{
    background-color: black;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 120;
}

.slideshow_cont .ctrl_{
    text-align: left;
    margin: 20px;
}
.slideshow_cont .ctrl_ .close_{
    font-size: 120%;
}

.slideshow-hide{
    display: none;
}

/* ظرف اصلی */
.x-wrap {
    max-width: 960px;
    margin: 32px auto;
    padding: 0 12px;
}

/* استیج نمایش بزرگ: روش لایه‌ای (fade) تا مشکل ترجمه/عرض نداشته باشیم */
.x-slider {
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.x-stage {
    position: relative;
    aspect-ratio: 16/9; /* ریسپانسیو */
    isolation: isolate;
    direction: ltr;
}

.x-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}

.x-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.x-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.x-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #fff;
    font-size: 14px;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .55));
    border-radius: 10px;
}

/* کنترل‌ها */
.x-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.x-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .85);
    display: grid;
    place-items: center;
    margin: 0 10px;
    cursor: pointer;
    pointer-events: auto;
}

.x-btn:active {
    transform: scale(.97);
}

/* بندانگشتی‌ها */
.x-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 12px 4px;
    background: #0f0f0f;
    border-radius: 12px;
    margin-top: 12px;
}

.x-thumb {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    outline: 1px solid rgba(255, 255, 255, .18);
}

.x-thumb img {
    width: 112px;
    height: 70px;
    object-fit: cover;
    display: block;
    opacity: .7;
    transition: opacity .2s, transform .2s;
}

.x-thumb:hover img {
    opacity: .95;
    transform: scale(1.03);
}

.x-thumb.is-active {
    outline: 2px solid var(--accent);
}

.x-thumb.is-active img {
    opacity: 1;
}

@media (max-width: 640px) {
    .x-thumb img {
        width: 90px;
        height: 58px;
    }
}
