html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

ol, ul, li {
  list-style: none;
}
blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  text-decoration: none;
}

code, pre, samp {
  font-family: monospace;
}

img, video {
  max-width: 100%;
  vertical-align: middle;
}


html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html,body,#contentWrap { width: 100%;min-width: 300px;background: #fff; }

a, a:visited, a:active {
	text-decoration: none;
}
button.btn {
	outline: none;
	border: none;
}
.wf {
	width: 100%;
}
.w50p,
.whalf {width: 50%;}

.mb5 {margin-bottom: 5px;}
.mb10 {margin-bottom: 10px;}
.mb20 {margin-bottom: 20px;}
.mb30 {margin-bottom: 30px;}
.mb40 {margin-bottom: 40px;}
.mb50 {margin-bottom: 50px;}

.mt5 {margin-top: 5px;}
.mt10 {margin-top: 10px;}
.mt20 {margin-top: 20px;}
.mt30 {margin-top: 30px;}
.mt40 {margin-top: 40px;}
.mt50 {margin-top: 50px;}

.pb5 {padding-bottom: 5px;}
.pb10 {padding-bottom: 10px;}
.pb20 {padding-bottom: 20px;}
.pb30 {padding-bottom: 30px;}
.pb40 {padding-bottom: 40px;}
.pb50 {padding-bottom: 50px;}

.pt5 {padding-top: 5px;}
.pt10 {padding-top: 10px;}
.pt20 {padding-top: 20px;}
.pt30 {padding-top: 30px;}
.pt40 {padding-top: 40px;}
.pt50 {padding-top: 50px;}

#headerWrap {
	position: fixed;
    z-index: 999;
    box-shadow: 0 2px 3px rgba(0,0,0,0.23);
    width: 100%;
}

#headerTop {
	height: 48px;
	background-color: #A70D36;
}
#headerTop .logoWrap {
	position: absolute;
	top: 8px;
	left: 13px;
	height: 32px;
	width: 145px;
	background-image: url(../images/logo-ts-tiff-viewer@2x.png);
	background-size: contain;
}

#headerTop .menu {
    padding: 5px 10px;
    overflow: auto;
	line-height: 40px;
	float: right;
}
#headerTop .menu > li{
    display: inline-block;
    margin: 0 5px 0 0;
}
#headerTop .menu > li > button{
    color: #fff;
    padding: 5px 6px;
	border: none;
	outline: none;
	background-color: transparent;
}

#headerBottom {
    padding: 12px;
    background: #F4F4F4;
    color: #3c3c3c;
	height: 63px;
}
#headerBottom .btnsWrap {
	float: right;
	font-size:0;
	margin-top: 3px;
}
#headerBottom .layoutToggleBtn {
	height: 34px;
    width: 34px;
	cursor: pointer;
	border: none;
	outline: none;
	background-color: transparent;
}
#headerBottom .layoutToggleBtn.single {
	background-size: 17px 17px;
	background-position: center center;
	background-repeat: no-repeat;
	background-image: url(../images/ico-col1@2x.png);
}
#headerBottom .layoutToggleBtn.single.on {
	background-image: url(../images/ico-col1-on@2x.png);
}
#headerBottom .layoutToggleBtn.double {
	background-size: 17px 17px;
	background-position: center center;
	background-repeat: no-repeat;
	background-image: url(../images/ico-col2@2x.png);
}
#headerBottom .layoutToggleBtn.double.on {
	background-image: url(../images/ico-col2-on@2x.png);
}
#headerBottom .layoutToggleBtn.fileDownload {
	background-size: 16px 18px;
	background-position: center center;
	background-repeat: no-repeat;
	background-image: url(../images/ico-download-zip-on@2x.png);
}
#headerBottom .separator {
	content: '';
	display: inline-block;
	width: 1px; height: 34px;
	background-color: #C6C6C6;
	margin-left: 5px; margin-right: 5px;
}
#headerBottom #fileName {
    font-size: 20px;
    font-weight: 700;
}
#headerBottom #totalInfo {
    font-size: 12px;
    color: #828282;
    font-weight: 400;
}
#headerBottom #totalInfo > .total {}
#headerBottom #totalInfo > .byte {}

#contentWrap {
	width: 100%;
	overflow: hidden;
	margin-right: auto;
	margin-left: auto;
	padding: 120px 10px 40px 10px;
	padding-top: 120px;
}

:root{
	counter-reset: imageList;
}

#imageList {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.tiffLi {
	text-align: center;
	border-radius: 2px;
	color: #535353;
	margin: 5px 0;
	overflow: hidden;
	box-sizing: border-box;
}
.tiffLi img {
	border: 1px solid #707070;
}
#imageList > .tiffLi > .tiffContent {}
#imageList > .tiffLi  .fileInfo {
    padding: 5px;
    text-align: left;
    font-size: 14px;
}
#imageList > .tiffLi  .fileInfo > .SingleFileName {}
#imageList > .tiffLi  .fileInfo > .byte {}


#contentWrap > .doubleLayout {
	text-align: center;
}
#contentWrap > .doubleLayout > .tiffLi {
    vertical-align: top;
    margin-bottom: 5px;
}
#contentWrap > .doubleLayout > .tiffLi, 
#contentWrap > .doubleLayout > .tiffLi img {position: relative;}


#contentWrap > .singleLayout {
}
#contentWrap > .singleLayout > .tiffLi {
}

#loadingBar {
	z-index:999;
	position: fixed;
	top: 0;
	width: 100%;
	text-align: center;
	height: 100vh;
	background: rgba(255, 255, 255, 0.8);
}
#loadingBar > img {
	position:absolute;
	top: 50%;
	margin-top : -16px;
	margin-left : -16px;
}

.hide {display: none;}

.grid-sizer,
.grid.doubleLayout .grid-item { width: calc(50% - 5px); }
.grid.singleLayout .grid-item { width: 100%;}

.popupWrap {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: 9900;
}
.popupWrap.on {
	display: block;
}
.popupWrap .dimmed {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-color: rgba(0,0,0,0.75);
}
.popupWrap .popInnerWrap {
	position: absolute;
	top: 50%; left: 50%;
	width: 280px; height: auto;
	transform: translate(-50%, -50%);
	z-index: 1;
	background-color: #fff;
}
.popupWrap .popInnerWrap.round {
	border-radius: 8px;
	overflow: hidden;
}
.popupWrap .popInnerWrap .popTitleWrap {
	height: 49px;
	padding: 15px;
	background-color: #900026;
	color: #ffffff;
}
.popupWrap .popInnerWrap .popTitleWrap .btnClose {
	position: absolute;
	top: 12px; right: 12px;
	width: 20px; height: 20px;
	background-color: transparent;
	background-image: url(../images/ico-pop-close@2x.png);
	background-size: 14px 14px;
	background-position: center center;
	background-repeat: no-repeat;
}
.popupWrap .popCotentWrap {

}
.popupWrap .popCotentWrap .popCotentInnerWrap {
	padding: 17px;
	font-size: 14px; color: #5A5A5A;
}
.popupWrap .popCotentWrap .popContentFooter {
	margin-top: 10px;
	padding: 0 14px 14px 14px;
}
.popupWrap .popCotentWrap .popContentFooter .btns {
	display: flex;
}
.popupWrap .popCotentWrap .popContentFooter .btns.half .btn {
	width: 50%;
}
.popupWrap .popCotentWrap .popContentFooter .btn {
	padding: 7px;
	margin-right: 10px;
}
.popupWrap .popCotentWrap .popContentFooter .btn:last-child {
	margin-right: 0;
}
.btn.round {
	border-radius: 6px;
}
.btn.dgray {
	background-color: #5A5A5A;
	color: #ffffff;
}
.btn.dpink {
	background-color: #C61745;
	color: #ffffff;
}
.popupWrap .pHasPb {
	margin-bottom: 10px;
}
.popupWrap input[type=text].round {
	border-radius: 2px;
}
.popupWrap input[type=text] {
	height: 32px;
	padding: 7px 10px;
	background-color: #F7F7F7;
	border: 1px solid #A0A0A0;
}