
/**
 * Website - Stylesheet
 */

/* Album */

div.album {
  display: inline-block;
  position: relative;
  width: 100%;
  padding: 30px 0 30px 0;
  line-height: 0;
}

body div.album:first-of-type {
  padding-top: 0;
}

body div.album:last-of-type {
  padding-bottom: 0;
}

/* Title */

div.album h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 24px;
}

/* Navigate */

div#to-top {
  display: block;
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 1020px;
  height: 0;
  transform: translateX(-50%);
}

div#to-top div#arrow {
  position: absolute;
  right: -34px;
  top: -34px;
  width: 34px;
  height: 34px;
  color: #111;
  font-size: 16px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  background-color: #fff;
  transition: color 350ms ease;
}

div#to-top:hover {
  color: #111;
}

/* Images */

figure {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 0;
  margin: 0 0 14px 0;
  padding: 100% 0 0 0;
  line-height: 0;
  cursor: pointer;
  background-color: #f5f5f5;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

figure.size-full {
  height: auto;
  padding: 0;
}

figure.size-100 {
  width: 100%;
}

figure.size-44 {
  padding: 44% 0 0 0;
}

figure.size-50 {
  padding: 50% 0 0 0;
}

figure.size-60 {
  padding: 60% 0 0 0;
}

figure.size-70 {
  padding: 70% 0 0 0;
}

figure.size-75 {
  padding: 75% 0 0 0;
}

figure.size-2-60-l {
  float: left;
  width: calc(60% - 15px);
  padding-top: 50%;
  margin-right: 14px;
  vertical-align: top;
  background-position: 50% 50%;
}

figure.size-2-60-r {
  float: left;
  width: calc(60% - 15px);
  padding-top: 50%;
  margin-left: 14px;
  vertical-align: top;
  background-position: 50% 50%;
}

figure.size-2-40-l {
  float: left;
  width: 40%;
  padding-top: 50%;
  background-position: 50% 50%;
}

figure.size-2-40-r {
  float: left;
  width: 40%;
  padding-top: 50%;
  background-position: 50% 50%;
}

figure.size-2-35-l {
  float: left;
  width: calc(35% - 7px);
  padding-top: 50%;
  margin-right: 7px;
  vertical-align: top;
  background-position: 50% 50%;
}

figure.size-2-65-r {
  float: left;
  width: calc(65% - 8px);
  padding-top: 50%;
  margin-left: 7px;
  vertical-align: top;
  background-position: 50% 50%;
}

figure.size-3-30-l {
  float: left;
  width: calc(33.33% - 10px);
  padding-top: 50%;
  margin-right: 9px;
  vertical-align: top;
  background-position: 50% 50%;
}

figure.size-3-30-m {
  float: left;
  width: calc(33.33% - 11px);
  padding-top: 50%;
  margin: 0 5px 0 5px;
  vertical-align: top;
  background-position: 50% 50%;
}

figure.size-3-30-r {
  float: left;
  width: calc(33.33% - 10px);
  padding-top: 50%;
  margin-left: 9px;
  vertical-align: top;
  background-position: 50% 50%;
}

figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border: none;
}

figure div.title {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity 350ms ease;
}

figure div.title h3 {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  padding: 0 14px;
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 34px;
  text-transform: lowercase;
  text-align: center;
  transform: translateY(-50%);
}

figure:hover div.title {
  opacity: 1;
}

/* Mobile */

@media screen and (max-width: 1024px) {

  div.album {
    padding: 15px 0 15px 0;
  }

  div#to-top {
    display: none;
  }
}
