
.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #f4e1d2; /* Светлый фон */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Тень вокруг контейнера */
}

.gallery div {
    position: relative;
    min-width: 150px;
    max-width: 250px;
}

.gallery-img {
	cursor: pointer; /* Добавляем курсор для интерактивности */
	border: 2px solid #ddd;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавные анимации */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Легкая тень на изображениях */
}

/* Эффект увеличения при наведении */
.gallery-img:hover {
    transform: scale(1.1); /* Увеличение изображения */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Тень при наведении */
}



.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}


.modal-content {
    max-width: 90vw;   /* Максимальная ширина – 90% от ширины окна */
    max-height: 90vh;  /* Максимальная высота – 90% от высоты окна */
    width: auto;       /* Автоматическая ширина, чтобы сохранить пропорции */
    height: auto;      /* Автоматическая высота, чтобы сохранить пропорции */
    object-fit: contain; /* Изображение сохраняет пропорции и полностью видимо */
    display: block;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.modal-arrow-left {
    left: 10px;
}

.modal-arrow-right {
    right: 10px;
}

.modal-arrow:hover {
    color: #ffcc00; /* Цвет стрелки при наведении */
}