.image-preview-container {
    margin-bottom: 20px;
}

.image-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.image-preview .thumbnail {
    position: relative;
    width: 100px;
    height: 100px;
}

.image-preview .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.image-preview .thumbnail .remove-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.file-upload-label {
    background-color: rgb(59, 130, 246);
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
/* Контейнер для изображений */
.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Расстояние между изображениями */
    justify-content: center; /* Центрирование изображений */
}

/* Одно изображение */
.image-container.single-image .post-image {
    width: 100%; /* Занимает всю ширину контейнера */
    height: auto; /* Сохраняет пропорции */
    object-fit: cover; /* Заполняет контейнер, сохраняя пропорции */
    border-radius: 8px;
}

/* Два или три изображения */
.image-container.small-images .post-image {
    width: calc(50% - 5px); /* Два изображения в ряду */
    height: 150px; /* Фиксированная высота */
    object-fit: cover;
    border-radius: 8px;
}

/* Три и более изображений (до 10) */
.image-container.grid-images .post-image {
    width: calc(33.33% - 6px); /* Три изображения в ряду */
    height: 100px; /* Фиксированная высота */
    object-fit: cover;
    border-radius: 8px;
}