.modal {
    display: none;
    position: absolute;
    z-index: 999;
    padding-top: 50px;
    padding-bottom: 200px;
    left: 0;
    top: 0;

    width: 100%;
    height: auto;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);

}

s {
    color: #bbb
}

.whatsup a {
    text-decoration: none;
    color: black;
}
.whatsup img {
    width: 45px;
}


.modal-content {
    margin: auto;
    display: block;
    justify-content: center;
    width: 100%;
    max-width: 700px;


    /* margin-left: 10em; */

}

/* Стили для кнопки закрытия */
.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 20px;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;

}

/* Стили для листания изображений */
.prev,
.next {
    position: absolute;
    top: 37%;
    padding: 30px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    cursor: pointer;


}

.prev {
    left: 5px;
}

.next {
    right: 5px;
}

.container_bp img {
    height: auto;
    cursor: zoom-in;
    width: 100%; /* Ширина 100% от родительского контейнера */
    height: auto; /* Высота будет автоматически */
    aspect-ratio: 1 / 1; /* Соотношение сторон 1:1 для квадратной формы */
    object-fit: cover; /* Заполнение контейнера без искажений */
}

.container_sp img {
    width: 15%;
    height: auto;
    cursor: zoom-in;
}

.container_sp1 img {
    display: none;
    width: 15%;
    height: auto;
    cursor: zoom-in;
}


@media (max-width: 600px) {
    .modal {
        display: none;
        position: fixed;
        z-index: 999;
        padding-top: 50px;
        padding-bottom: 300px;
        left: 0;
        top: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        height: auto;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.9);
    }

    .modal-content {
        margin: auto;
        display: block;
        justify-content: center;
        width: 100%;
        max-width: 600px;

    }

    .prev,
    .next {
        position: absolute;
        top: 30%;
        padding: 10px;
        color: white;
        font-weight: bold;
        font-size: 40px;
        cursor: pointer;
        background-color: #4d4b4b86;
        border-style: solid;
        border-color: #4d4b4b00;
        border-width: 10px;
        border-radius: 40px;
    }

    .prev {
        left: 0px;
    }

    .next {
        right: 0px;
    }

    .container_sp img {
        display: none;
    }

    .container_sp1 img {
        display: inline-flex;
        width: 15%;
        height: auto;
        cursor: zoom-in;

    }
}

@media (max-width: 767px) {
    .container_sp img {
        display: none;
    }

    .container_sp1 img {
        display: inline-flex;
        width: 15%;
        height: auto;
        cursor: zoom-in;

    }
    
    

}