.file-box-container {
    margin: 15px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.file-box-container:empty {
    display: none;
}

.file-box-container.empty {
    display: block;
}

.file-box {
    margin: 0;
    position: relative;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    width: 100%;
    min-width: initial;
    max-width: initial;
}

.file-box .file {
    margin: 0 !important;
}

.file-box  .icon,
.file-box  .image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-box  .icon > i {
    font-size: 3em;
}

.file-box  .image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.file-box .file-name {
    background: var(--light);
    padding: 10px;
    white-space:nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: var(--dark);
    border-top: 1px solid var(--border);
}


.file-box .file .fa-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 57px;
    margin: auto;
    width: 30px;
    height: 30px;
    font-size: 27px;
    color: white;
}


.file-box .file .fa-spinner:before {
    line-height: 30px;
}

/*
.file-box a {
    display: block;
    -webkit-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s;
    transition: all 0.3s ease-in 0s;
}

.file-box a:after {
    content: '';
}
*/

@media (max-width: 768px) {
    .file-box {
        width: 50%;
    }
}

@media (max-width: 575px) {
    .file-box {
        width: 100%;
    }
}