.document-preview-wrapper {
	border: 1px solid #aaa;
	background-color: #f9f9f9;
	margin: 10px 0px;
}

.document-preview-container {
    display: inline-block;
    width: 189.5px;
    height: 130px;
    overflow: hidden;
    margin: 5px;
    cursor: pointer;
    position: relative;
}

.document-preview-container svg {
	opacity: 0.6;
	transition: opacity .2s;
}

.document-preview-container:hover svg {
    opacity: 0.2;
}

.document-preview-container .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-preview-container .preview-video {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #fff;
    font-size: 20px;
}


/* gallery */


.gallery-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    z-index: 100;
}

.preview-row {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    display: flex;
    overflow-x: scroll;
    background-color: #202020;
}

.main-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-image {
    max-height: calc(100vh - 190px);
    max-width: calc(100% - 30px);
    border: 4px solid white;
}



.gallery-container .preview-image {
	cursor: pointer;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 20px;
    cursor: pointer;
    font-size: 48px;
    color: white;
    z-index: 10;
}

.close-button:not(:hover) {
	opacity: 0.3;
}

.arrow {
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: calc(50% - 80px);
    color: white;
    z-index: 10;
    user-select: none;
    padding: 10px;
    border-radius: 100%;
    background-color: #555;
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    transition: opacity 0.3s;
}

.arrow:not(:hover) {
	opacity: 0.2;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.selected-thumbnail {
    border: 3px solid white;
}

.gallery-container .preview-image:not(.selected-thumbnail) {
	transform: scale(0.90);
}

.gallery-container .preview-video-container:not(.selected-thumbnail) {
	transform: scale(0.90);
}

.gallery-container .preview-video-container.selected-thumbnail {
	transform: scale(0.94);
	margin-top: -5px;
}

.gallery-container .preview-video-container {
	height: 150px;
	max-height: 150px;
	display: inline-block;
	position: relative;
	cursor: pointer;
	margin: 0 3px;
}

.gallery-container .preview-video-container svg {
	transition: opacity .15s;
}

.gallery-container .preview-video-container:hover svg {
	opacity: 0.3;
}



