/* Стили для модального слайдера изображений (admin slider) */
.modal-slider {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal-slider.active {
    display: flex;
}
.slider-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
}
.slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.slider-close {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s;
}
.slider-close:hover {
    color: #e60000;
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: background 0.2s;
}
.slider-prev:hover, .slider-next:hover {
    background: #e60000;
}
.slider-prev {
    left: 18px;
}
.slider-next {
    right: 18px;
}
.slider-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    z-index: 1001;
}
@media (max-width: 600px) {
    .slider-container {
        width: 98vw;
        height: auto;
        max-height: 90vh;
    }
    .slider-image {
        height: auto;
        max-height: 90vh;
        border-radius: 4px;
    }
    .slider-prev, .slider-next {
        display: none;
    }
    .slider-close {
        font-size: 24px;
    }
    .slider-counter {
        font-size: 13px;
        padding: 2px 10px;
    }
}
