.worker-file {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 24px;

    height: 110px;
    display: flex;
    flex-direction: row;
    padding: 12px;
    gap: 12px;

    cursor: pointer;

    transition: background-color 0.5s ease;
}

.worker-file:hover {
    background-color: #eee;
}

.worker-file-icon {
    height: 100%;
    position: relative;
    flex-basis: auto;
}

.worker-file-icon img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.worker-file-info {
    flex-grow: 1;
    min-width: 0; /* Don't force element to be at least as large as its content */
}

.worker-file-info > :last-child {
    margin-bottom: 0;
}

.worker-file-name {
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: normal;
}

.worker-file-open-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.5s;
}

.worker-file-open-overlay,
.worker-file-open-overlay:hover,
.worker-file-open-overlay:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;;
}

.worker-file-open-overlay i {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 20px 15px;
}

.worker-file-open-overlay:hover {
    opacity: 1;
}

.worker-file-control {
    display: flex;
    flex-direction: row;
    justify-content: end;
    gap: 8px;
}
