.picture-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.picture-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    max-width: 60%;
    border-radius: 8px;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Устанавливаем высокий z-index */
}

.modal-content {
    margin: 0;
    box-sizing: border-box;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    position: relative;
    line-height: 20px;
}

.modal-content h2 {
    color: #152e4c; /* Цвет текста */
    font-size: 20px; 
    line-height: 20px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.modal-content .close {
    color: #152e4c;
    font-size: 1em; 
    cursor: pointer; /* Указатель мыши в виде руки */
}

.small-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    position: relative;
    line-height: 20px;
}

.small-modal-content h2 {
    color: #152e4c; /* Цвет текста */
    font-size: 20px; 
    line-height: 20px;
}

.small-modal-content .close {
    color: #aaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

img#largeImage {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.image-placeholder {
    height: 200px;
    width: auto;
    margin: 10px; /* Отступ теперь на контейнере */
    background-color: #f0f0f0;
    display: inline-block;
}

.image-placeholder img {
    display: block;
    height: 100%;
    width: auto;
    margin: 0; /* Убираем отступ у картинки */
}

.cancel-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #f44336; /* Красный цвет */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.cancel-btn:hover {
    background-color: #d32f2f; /* Более темный оттенок */
}

.choose-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #4CAF50; /* Зеленый цвет */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.choose-btn:hover {
    background-color: #45a049; /* Более темный оттенок зеленого */
}
