* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 80%;
    color: black;
}

p {
 	text-align: left;
}

a {
	color: black;
}

.container {
	max-width: 960px;
	margin: 30px auto;
	background-color: white;
}

header {
	font-size: 1.7em;
    font-weight:  bold;
    height:50px;
    background:white;
    border:1px solid #CCC;
    width:960px;
    margin:0px auto;
}

nav {
	width: 120px;
	float: left;
	padding-top: 100px;
}

nav a {
	display: block;	
	margin-bottom: 10px;
  	text-align: left;
}

main {
	width: 825px;
	float: right;
	background-color: #fff;
	padding: 15px;
}

h2 {
	font-size: 1.7em;
}

main img {
	max-width: 100%;
}

.topleft {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 18px;
}

#sg {
  position:relative;
  height:120px;
  width:750px;
  margin:0 auto;
}

#sg img {
  position:absolute;
  left:0;
  -webkit-transition: opacity 0.4s ease-in-out;
  -moz-transition: opacity 0.4s ease-in-out;
  -o-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

#sg img.top:hover {
  opacity:0;
}

#myImg {
    border-radius: 0px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 20%;
    position: fixed;
    height: 100%;
    overflow: auto;
}

li a {
    font-size: 1.7em;
    display: block;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
	text-align: left;
    }

li a.active {
    background-color: #ffffff;
    color: #000;
}

li a:hover:not(.active) {
   font-weight: bold; 
}

#id_gallery {
      white-space: nowrap;
      /*float: right;*/
      /*position: relative;*/
      /*width: 10px;*/
      /*padding-bottom: 0%;*/
	  margin-left:350px;
	  padding: 0 16px;
	  text-align: center;
}
div.gallery {
   /*border: 1px solid #ccc;*/
   height: auto;
}

div.gallery:hover {
   /* border: 1px solid #777;*/
	height: auto;
}

div.gallery img {
	display: inline-block;
    width: 100px;
	height: 100%;
	text-align: center;
    /*height: auto;*/
}

div.desc {
    /*padding: 15px;*/
    text-align: center;
	width: auto;
}

div.responsive {
    /*float: left;*/
    width: 20%;
    padding-bottom: 0 6px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    /*margin: auto;*/
    /*display: block;*/
	width: auto;
	max-width: 90%;
    height: auto;
    max-height: 90%;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}
