html, body {
  margin: 0;
  padding: 0;
  font-family: 'Vollkorn', Georgia, serif;
}

body.behind {
  overflow: hidden;
}

header {
  text-align: center;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

header h1 {
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 32px;
  margin: 0;
  padding: 10px 20px 10px;
  font-weight: 700;
  color: #444;
  background: #fff;
  letter-spacing: 3px;
}

h1 small {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  display: inline-block;
  border-top: 1px solid #ccc;
  padding-top: 5px;
  line-height: 18px;
}

div#next-page {
  width: 80%;
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

div#next-page a {
  display: inline-block;
  padding: 10px 20px;
  background: #eee;
  font-family: 'Montserrat';
  font-weight: bold;
  border-radius: 15px;
  color: #444;
  text-decoration: none;
}

div#next-page a:hover {
  background: #000;
  color: #fff;
}

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0px;
}

.cover {
  background-size: cover;
  background-position: center center;
}

.medium {
  width: 80%;
  max-width: 960px;
  height: auto;
  margin: 40px auto 0;
  cursor: pointer;
}

div.row {
  display: block;
  float: none;
  width: 80%;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.row .small:first-child, .row .small:nth-child(3n+1) {
  margin-left: 0;
}

.small {
  width: 32%;
  margin-top: 2%;
  margin-left: 2%;
  height: auto;
  float: left;
  cursor: pointer;
}

section {
  margin: 20px 0;
  text-align: center;
}

section h2 {
  display: inline-block;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 700px;
  font-size: 24px;
  margin: 20px auto 0;
  text-align: center;
}

section p {
  text-align: left;
  margin: 40px auto 0;
  width: 80%;
  max-width: 600px;
  font-size: 16px;
  line-height: 140%;
  
  hyphens: auto;
}

.divider {
  margin: 20px 0 0;
	position: relative;
	width: 100%;		/* desired width */
  max-height: 720px;
}

.divider:first-child, #zoom-box .divider {
  margin-top: 0;
}

.divider:before{
	content: "";
	display: block;
	padding-top: 56.25%; 	/* initial ratio of 1:1*/
}

.divider div.cover {
	position:  absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

p.hint {
  text-align: center;
  color: #888;
}

#content.behind {
  filter: blur(20px);
  -webkit-filter: blur(20px);
}

#preload {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200px;
  margin-left: -100px;
  margin-top: -20px;
  background: #000;
  color: #fff;
  font-family: 'Montserrat';
  text-align: center;
  border-radius: 5px;
  padding: 10px 0;
  opacity: 0;
  transition: all .5s linear;    
  z-index: 105;
  -webkit-transition: all .5s linear;  
}

#preload.active {
  opacity: 1;
}

#preload p {
  padding: 0;
  margin: 0;
}

#zoom-box {
  display: none;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 40px;
  background: rgba(0,0,0,0.7);
}

#zoom-box div.close {
  position: absolute;
  bottom: 50px;
  left: 50%;
  background: rgba(0,0,0,.2);
  padding: 10px;
  font-family: 'Montserrat';
  font-weight: bold;
  color: #fff;
  width: 100px;
  height: 20px;
  text-align: center;
  border-radius: 10px;
  z-index: 101;
  margin-left: -60px;
  font-size: 14px;
  text-shadow: 0 1px 2px #000;
}

#zoom-box .cover {
  background-repeat: no-repeat;
  background-size: contain;
}

#zoom-preload {
  display: none;
  width: 1px;
  height: 1px;
}

#zoom-box div.close:hover {
  background: rgba(0,0,0,.4);
  box-shadow: 0 0 2px #fff;
}

#zoom-box div.divider {
  -webkit-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  max-height: 100%;
  box-shadow: 0 1px 10px rgba(0,0,0,0.5);
} 

#zoom-box.active {
  background: rgba(0,0,0,0.9);
  display: block;
}

#zoom-box.active .divider {
  -webkit-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

#pagination {
  display: block;
  width: 80%;
  max-width: 600px;
  text-align: center;
  color: #888;
  text-align: center;
  z-index: 5;
  position:absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

#pagination ul {
  margin: 0;
  padding: 0;
  float: left;
  width: 100%;
  list-style: none;
}

#pagination ul li {
  display: inline-block;
  padding: 0;
  margin: 0;
  min-width: 30px;
  height: 30px;
  margin-left: 10px;
  margin-bottom: 10px;
}

#pagination ul li:first-child {
  margin-left: 0;
}

#pagination li.active a, #pagination li:hover a  {
  background: #fff;
  color: #000;
}

#pagination a#btn-page-all {
  padding: 5px 15px;
}

#pagination a {
  color: #fff;
  display: block;
  padding: 5px;
  height: 20px;
  min-width: 20px;
  background: rgba(0,0,0,0.5);
  text-decoration: none;
  text-align: center;
  font-family: 'Montserrat';
  border-radius: 15px;
}

#footer {
  text-align: center;
  margin: 40px auto;
  width: 80%;
  max-width: 600px;
  color: #888;
  font-size: 12px;
}

#footer a {
  font-weight: bold;
  color: #222;
}

#footer a:hover {
  text-decoration: none;
}