.modal-slider-container {
    position: relative;
    width: 150%;
    max-width: 600px;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index:100;
}

.modal-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    touch-action: pan-y;
}

.modal-slides {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.modal-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-slide-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.modal-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: background 0.2s;
    z-index: 10;
}

.modal-nav-button:hover {
    background: white;
}

.modal-nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

.modal-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
}

.modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-dot.modal-active {
    background: #333;
    width: 24px;
    border-radius: 4px;
}

@media (max-width:990px){
    .modal-slider-container { width:100%;}
}

@media (max-width: 768px) {
    .modal-slider {
        height: 300px;
    }

    .modal-nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}