.clearfix {
    overflow: auto;
}

.dropzone {
    position: relative;
    height: 200px;
    border: 2px dashed #b3b3b3;
    border-radius: 4px;
    background-color: #f3f3f3;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.dropzone .msg {
    font-size: 20px;
    font-weight: bold;
    color: #c3c3c3;
    padding: 0 10px;
}

.disable:hover {
    background-color: #f3f3f3;
    border: 2px dashed #b3b3b3;
}

input.fileUpload {
    display: none;
}

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

.previewData {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    box-sizing: border-box;
    width: 100%;
}

.previewData img {
    max-width: 100%;
    margin: 5px;
    flex-basis: calc(25% - 10px);
    flex-shrink: 0;
}

.previewContainer {
    position: relative;
    display: flex;
    width: 23%;
    height: 300px;
    margin: 5px;
}

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

.previewContainer:hover .previewControls {
    display: block;
}

.detail {
    font-family: Arial;
    padding: 5px;
    overflow: hidden;
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.previewControls {
    display: none;
    position: absolute;
    top: 10px;
    right: 4px;
    z-index: 1;
    max-width: 100%;
}

/*Модальное окно для preview изображения*/
.modal-preview {
    visibility: hidden;
    position: fixed;
    z-index: 9000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-preview.show {
    visibility: visible;
}

.modal-preview-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-preview-content img {
    width: auto;
    height: auto;
    max-width: 1024px;
    max-height: 768px;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    transition: all 0.3s;
}

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


