/** image grid **/

.image-grid {
/**  font-family: Arial, Helvetica, sans-serif; **/
  margin: 0 auto;
  text-align: center;
  max-width: 640px;
  padding: 0;
}

.image-grid li {
  display: inline-block;
  width: 184px;
  margin: 0 12px 30px;
}

.image-grid li > a {
  display: block;
  text-decoration: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  height: 144px;
  margin: 0;
  padding: 0;
  border: 4px solid #ffffff;
  outline: 1px solid #d0d0d0;
  box-shadow: 0 2px 1px #DDD;
  transition: .25s;
}

.image-grid li img{
    width: 100%; /* To make the images responsive */
    height: auto;
}

.image-grid li > a:hover{
    transform: scale(1.1);
    transition: .25s;
}

.image-grid .image-caption {
  margin-top: 13px;
}

.image-grid .image-caption h3 {
  display: block;
  font-size: 14px;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-grid .image-caption h3 a {
  color: #303030;
  text-decoration: none;
}

.image-grid .image-caption .image-note {
  display: block;
  color: #717171;
  font-size: 10px;
  font-weight: normal;
  margin: 0;
}

.modalDialog {
	position: fixed;
	font-family: Arial, Helvetica, sans-serif;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	opacity:0;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	pointer-events: none;
}

.modalDialog:target {
	opacity:1;
	pointer-events: auto;
}

.modalDialog > div {
	width: 400px;
	position: relative;
	margin: 10% auto;
	padding: 5px 20px 13px 20px;
	border-radius: 10px;
	background: #fff;
	background: -moz-linear-gradient(#fff, #999);
	background: -webkit-linear-gradient(#fff, #999);
	background: -o-linear-gradient(#fff, #999);
}

.modal-close {
        background: #606061;
	color: #FFFFFF !Important;
	line-height: 25px;
	position: absolute;
	right: -12px;
	text-align: center;
	top: -10px;
	width: 24px;
	text-decoration: none;
	font-weight: bold;
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	-moz-box-shadow: 1px 1px 3px #000;
	-webkit-box-shadow: 1px 1px 3px #000;
	box-shadow: 1px 1px 3px #000;
}

.modal-close:hover {
    background: #043D6D;
    box-shadow: 3px 3px 6px #000;
}

@media only screen and (max-width: 640px) {
  .image-list-small {
    max-width: 100%;
  }
  .image-list-small li > a {
    width: 50%;
  }
  .modelDialog {
    width: 100%;
  }
}
