html, body {
	height: initial;
	min-height: initial !important;
}
#gallery {
	max-width: 1024px;
	margin: 0 auto;
}
#gallery > div {
	display: inline-block;
	width: 160px;
	height: 120px;
	margin: 8px;
}
#gallery > div > div {
	font-size: smaller;
	font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#imageContainer {
    position: fixed;
    background: rgba(0,0,0,.8);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s linear 0s, opacity 0.2s linear;
}
#imageBox {
    position: relative;
    top: 50%;
    width: 800px;
    height: 630px;
    margin: auto;
    margin-top: -300px;
	border: var(--bd-inner) solid 1px;
	background: var(--bg-inner);
	color: #bdacac;
}
#imageBox > a {
	display: inline-block;
	width: 100%;
	margin-top: 10px;
}
#imageTitle {
    float: left;
    width: 100%;
    text-align: center;
    top: 0;
    height: 1.2em;
    padding-bottom: 5px;
    font-size: larger;
    font-weight: bold;
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}
#medImage {
    clear: both;
    display: block;
    margin: auto;
    width: 768px;
    height: 480px;
}
#prev {
	display: block;
    float: left;
    padding: 10px;
    padding-top: 0;
    margin-top: -15px;
    cursor: pointer;
}
#next {
	display: block;
    float: right;
    padding: 10px;
    padding-top: 0;
    margin-top: -15px;
    cursor: pointer;
}

#imageDescription {
    margin: 15px 10px 0 10px;
    text-align: center;
}

#imageDescription > a{
    color: #eee;
}