.filerow:not(#modalfilerow):after {
    content: ' ';
    padding: 0;
    margin: 0;
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    display: block;
    position: absolute;
    width: 100%;
    bottom: 0px;
}
.filerow {
    position: relative;
}
.filerow:not(.galleryview) {
    height: auto !important;
}
#filebox {
    max-height:500px;
    overflow-y:scroll;
    border:1px solid gray;
}
#investigatorlist.collapsed {
    max-height: 110px;
}
.preview_cell {
    float:left;
    width:100px;
    height:100px;
    display:table;
    margin-right:10px;
}
.preview_cell div {
    text-align:center;
    vertical-align:middle;
    display:table-row
}
.preview_cell img {
    max-width:100px;
    max-height:100px;
}


.remotedata {
    background-color: rgb(252, 247, 220);
    color: #000000;
}
.remotedata a {
    color: #765C0B !important;
    border-color: #765C0B !important;
}

.gallerysub {
    display: flex;
    flex-wrap: wrap;
}
.nogallery {
    display: block;
}

.gallerycell {
    word-wrap: break-word;
}
.galleryview {
    float:left;
    width:130px;
    margin: 2px;
    padding: 4px;
    border: 1px solid gray;
}
.galleryview .preview_cell {
    width: 130px;
}
.preview_cell a {
    display: table-cell;
    vertical-align: middle;
    border: none !important;
}
.preview_cell div {
    position: relative;
}
.preview_cell a:hover:after {
    content: 'Preview';
    position: absolute;
    width: 100px;
    height: 30px;
    left: 0px;
    top: 35px;
    line-height: 30px;
    background-color: gray;
    color: white;
    font-weight: bold;
}
.galleryview .preview_cell a:hover:after {
    width: 134px !important;
}
#gallerytoggles {
    float: right;
}
#gallerytoggles div {
    float:left;
    padding: 4px 8px;
    margin: 2px 0px;
    border-style: solid;
    border-color: #ddd;
    color: #666;
    font-size: 14px;
    line-height: 14px;
}
.galleryswitch {
    border-radius: 4px 0px 0px 4px;
    border-width: 1px 0px 1px 1px;
}
.listswitch {
    border-radius: 0px 4px 4px 0px;
    border-width: 1px 1px 1px 0px;
}
#gallerytoggles div.selected {
    cursor: auto;
    background-color: #ddd;
}
#gallerytoggles div:not(.selected) {
    cursor: pointer;
    background-color: #fff;
}
.modalbackground {
    position:fixed;
    width:100%;
    height:100%;
    z-index:1000;
    background-color:rgba(0,0,0,0.8);
    top:0px;
    left:0px;
    display: none;
}
.modalcontainer {
    position:absolute;
    width:720px;
    height:550px;
    top:50%;
    left:50%;
    margin-top:-280px;
    margin-left:-365px;
    background-color:#ffffff;
}
.modalscroll {
    position:relative;
    width:100%;
    height:100%;
}
#modalfilerow {
    overflow-y:scroll;
    max-height: 140px;
}
.imgcontainer {
    height:400px;
    text-align:center;
    margin:0px auto;
    display:table;
    width:100%;
    background-color:black;
}
.imgcontainer div {
    display:table-cell;
    vertical-align: middle;
}
.imgcontainer img {
    margin: 5px;
    border: 3px solid #666;
    border-radius: 8px;
    max-height: 384px;
    max-width: 684px;
}
.exit {
    height:30px;
    line-height:30px;
    font-size: 30px;
    text-align:center;
    position:absolute;
    top:5px;
    right:10px;
    cursor:pointer;
    color:#666;
}
.right_arrow {
    height:40px;
    line-height:40px;
    font-size:40px;
    text-align:center;
    position:absolute;
    top:180px;
    right:10px;
    cursor:pointer;
    color:#666;
}
.left_arrow {
    height:40px;
    line-height:40px;
    font-size:40px;
    text-align:center;
    position:absolute;
    top:180px;
    left:10px;
    cursor:pointer;
    color:#666;
}
.exit:hover,.right_arrow:hover,.left_arrow:hover {
    color:white;
}
/* SVG arrow icons (replace FontAwesome fa-chevron-circle-*). The SVG is used as a mask over
   the current text color, so the icon is sized by font-size and colored by color like a font icon */
.arrow_circle_left,.arrow_circle_right {
    display:inline-block;
    width:1em;
    height:1em;
    vertical-align:middle;
    background-color:currentColor;
    -webkit-mask:no-repeat center / contain;
    mask:no-repeat center / contain;
}
.arrow_circle_left {
    -webkit-mask-image:url("arrow_circle_left_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg");
    mask-image:url("arrow_circle_left_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg");
}
.arrow_circle_right {
    -webkit-mask-image:url("arrow_circle_right_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg");
    mask-image:url("arrow_circle_right_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg");
}
/*Download modal window*/
#postForm #download_document {
    margin-top: 10px;
    position: relative;
}
#postForm #otherText {
    display:none;
}
#postForm #downloaddiv {
    text-align: center;
}
#download_terms {
    background-color: rgb(238, 238, 248);
    border-radius: 8px;
    margin: 5px 0px 10px 0px;
    padding: 8px;        
    font-weight: 200;
    font-size: 1em;
    line-height: 1.4em;
    font-family: Helvetica,Arial,sans-serif;
}
#download_terms #acceptTerms, #postForm .download_submit {
    background-color: #153088;
    height: 30px;
    color: #fff;
    font-size: 1.3em;
    display: block;
    border-radius: 5px;
    width: 200px;
    margin: 10px auto 5px auto;
    border: none;
}
#download_terms #acceptTerms:hover, #postForm .download_submit:hover {
    background-color: #3556c1;
}
#postForm .download_submit:disabled {
    background-color: #aaa;
    color: #ddd;
}
#postForm {
    display: none;
    font-size: .9em;
    font-family: Helvetica, Arial, sans-serif;
}
#postForm .setstitle {
    font-size: 1.3em;
    font-weight: 200;
}
#postForm #document_list {
    display: none;
}
#postForm #showdocs {
    cursor: pointer;
}
#postForm .doc_row>label, #postForm #purpose_block>div>label, #postForm .bundle_div>label  {
    display: flex;
    align-items: center;
    cursor: pointer;
}
#postForm .doc_row>label:hover,#postForm #purpose_block>div>label:hover,#postForm .bundle_div>label:hover {
    background-color: #eee;
}
#postForm .doc_row .doc_check {
    float: left;
    width: 30px;
}
#postForm .doc_row .doc_metadata {
    float: left;
    width: 350px;
}
#postForm .doc_row .doc_type {
    font-size: 1.1em;
    font-weight: bold;
}
#postForm .doc_row .doc_details {
    font-style: italic;
}
#postForm .doc_row .doc_file_name {
    font-size: smaller;
}
#postForm .doc_row .doc_file_size {
    float: right;
}
#postForm .clearfix::after,#postForm #purpose_block>div>label::after {
    content: "";
    clear: both;
    display: table;
}
#postForm .purpose, #postForm .bundle_docs {
    float: left;
    width: 30px;
}
#postForm .purpose + div, #postForm .bundle_docs + div {
    float: left;
    flex: 1;
}
hr.gradient {
    clear: both;
	margin: 0px 20px;
	border: 0;
	height: 1px;
	background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
	background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
	background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
	background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}
