body {background:#eee;margin:0;}
#bigwrapper {position:absolute;margin:0;width:100%;height:100%;text-align:left;}
#wrapper {dispaly:inline-block;width:98%;background:#a00;margin:auto;}
ul {list-style-type: none; margin: 0; padding: 0;}
li {display:block;float:left;position:relative;overflow:hidden; text-align:center;border: 1px solid #999;}
.flds {float:left;display:flex;justify-content: center;align-items: center;background:#eaa;
		width:128px;	height:128px;
		text-align:center;
border:1px #f1f1f1 solid;
	background:#ffe;}
.fldswrap {display:block;background:#aaa;}
* { box-sizing: border-box; }
a {text-decoration: none; color: #69c; }
body, html { position: absolute; top: 0 left: 0; width: 100%; height: 100%; overflow: auto; margin: 0; }
body { background: #f1f1f1; font-family: sans-serif; font-size: 10pt; }
#content { background: #fdfcf5; box-shadow: 0 5px 15px 0 rgba(0,0,0,0.2); z-index: 1; position: relative; max-width: 600px; min-height: calc(100% - 8em); margin: 4em auto; }
#main { padding: 20px; }
article > header { clear: both; margin-bottom: 1em; padding-bottom: 0.2em; border-bottom: 1px solid #ccc; font-size: 21pt; color: #999; }
article > footer { clear: both; margin-top: 1em; padding-top: 0.2em; border-top: 1px solid #eee; font-size: 8pt; color: #aaa; }
ul.thumbs { list-type: none; padding: 0; }
ul.thumbs > li { display: inline-block; }
ul.thumbs img { max-width: 128px; max-height: 64px; }

    .popup { z-index: 999999; position: fixed; top: 0; width: 100%; height: 100%; overflow: hidden; }
    .popup > a:empty { display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
    .popup > img, .popup > a:not(:empty) > img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; max-width: 95%; max-height: 95%; box-shadow: 0 5px 50px 0 rgba(0,0,0,0.8); background: #fff; padding: 5px; }

    .popup:not(:target) { pointer-events: none; opacity: 0; top: -100%; transition: opacity 1.5s linear 0, top 0 linear 1.5s; }
    .popup:target { pointer-events: all; opacity: 1; top: 0; transition: top 0 linear 0, opacity .5s linear 0; }