table, th, td {
  border: 2px solid black;
  border-collapse: collapse;
}
td,th{
    padding:5px;
}
table{
    max-width:100%;
    position:relative;
    height: 500px;
    overflow: auto;
}
th{
    position:sticky;
    top:0;
    background:grey;
    color:white;
    font-weight:900;
    border: 2px solid black;
}
.select-div{
    width:30px;
    aspect-ratio:1/1;
    max-width: 100%;
    border: 2px solid grey;
    cursor: pointer;
}
tr[data-image]{
    background: rgb(135, 206, 235,.2);
    color: darkblue;
}
tr[data-video]{
    background: hsl(300, 50%, 99%);
    color: darkslateblue;
}
tr[data-selected]{
    background:rgba(50, 205, 50,.5);
    color:darkgreen;
}
.select-div[data-selected]{
    background: darkgreen;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    border: 0;
}
.select-div[data-selected]::before{
    content:'✓';
    position:absolute;
    color:white;
}
.previewWRapper{
    width: 50px;
    height: 50px;
    background: darkgrey;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
}
.previewWRapper > img, .previewWRapper > video{
    border: 1px solid grey;
}

/* --*/
.table-wrapper{
    max-width:100%;
    overflow: auto;
    position:relative;
    display: contents;
}
.table{
    width: 100%;
    overflow: scroll;

}
.tr{
    display: table-row;
}
.th{
    display: table-cell;
    background:grey;
    font-weight:900;
    color:white;
    position:sticky;
    top:0;
}
.td{
    display: table-cell;
}
.td, .th{
    height: auto;
    width: auto;
    padding: 5px;
}

.tr[data-image]{
    background: rgb(135, 206, 235,.2);
    color: darkblue;
}
.tr[data-video]{
    background: hsl(300, 44%, 90%);
    color: rgb(49, 18, 57);
}
.tr[data-selected]{
    background:rgba(50, 205, 50,.5);
    color:darkgreen;
}