﻿
.mediagrid {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 4px;
    /*background-color: white*/
}

.mediagrid.timeline {
    padding-left: 48px !important;
}

.mediagrid.timeline::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 28px;
    border-left: 1px dotted #a7a7a7;
}

.mediagrid .header {
    font-size: 17px;
    font-weight: normal;
    color: #878787;
    padding: 12px 0px 0px 8px;
    clear: both;
}

.mediagrid.timeline .header {
    margin-left: -30px;
}

.mediagrid.timeline .header::before {
    display: inline-block;
    content: '';
    -webkit-border-radius: 5px;
    border-radius: 5px;
    height: 5px;
    width: 5px;
    margin-right: 5px;
    background-color: #878787;
    vertical-align: middle;
}

.mediagrid .thumb {
    position: relative;
    display: block;
	float: left;
	width: 160px;
	height: 120px;
	overflow: hidden;
	margin: 8px;
	box-sizing: border-box;
    background-color: #fafafa;
	cursor: pointer;
}

.mediagrid.smaller .thumb {
    /*width: 60px !important;
    height: 45px !important;
    margin: 6px;
    display: flex;
    justify-content: center;
    align-items: center;*/
    width: 48px !important;
    height: 48px !important;
    margin: 6px;
    flex-shrink: 0;
}

.mediagrid.small .thumb {
    width: 80px !important;
    height: 60px !important;
}

.mediagrid.larger .thumb {
    width: 240px !important;
    height: 180px !important;
}

.mediagrid .thumb > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.mediagrid .thumb.thumb-icon {
	/*background-color: #fafafa;
    background-size: auto;
	border: 1px solid #c0c0c0;*/
}

.mediagrid .thumb.thumb-icon > img
{
    object-fit: none !important;
}

/*.mediagrid.smaller .thumb.thumb-icon > img {
    object-fit: scale-down !important;
    width: 34px !important;
    height: 34px !important;
}*/

.mediagrid .thumb .thumb-overlay {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #333;
	opacity: 0;
}

.mediagrid .thumb:hover .thumb-overlay {
	opacity: 0.75;
}

.mediagrid .thumb .thumb-detail {
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 8px;
    opacity: 0;
}

.mediagrid .thumb .thumb-detail * {
    user-select: none;
}

.mediagrid .thumb:hover .thumb-detail {
    opacity: 1;
}

.mediagrid.smaller .thumb:hover .thumb-detail {
    opacity: 0 !important;
}

.mediagrid.small .thumb:hover .thumb-detail {
    opacity: 0 !important;
}

.mediagrid .thumb .thumb-detail span {
	display: block;
	margin-left: 8px;
	margin-right: 8px;
	color: #fafafa;
	text-align: right;
	text-overflow: ellipsis;
	overflow: hidden;
}

.mediagrid .thumb .thumb-detail .title {
	margin-top: 8px;
	font-size: 8.5pt;
	font-weight: bold;
	white-space: nowrap;
}

.mediagrid .thumb .thumb-detail .description {
	font-size: 8.5pt;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	max-height: 40px;
}

.mediagrid .thumb .thumb-detail .timestamp {
    font-size: 7pt;
    color: antiquewhite;
    margin-top: 2px;
}

.mediagrid .thumb .thumb-toolbar {
	display: none;
	position: absolute;
    padding: 4px;
	right: 0;
	top: 0;
	overflow: hidden;
}

.mediagrid .thumb .thumb-toolbar img {
    display: block;
    float: left;
    margin: 0 4px;
}

.mediagrid .thumb:hover .thumb-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
