﻿html {
  position: relative;
  min-height: 100%;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

body {
  margin: 0 auto 70px auto;
  padding: 0;
  color: #444;
  background-color: #fff;
  font: 16px/1.4 "trebuchet ms", palatino, tahoma, sans-serif;
}

.container {
  display: block;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  margin: 0 0 20px 0;
  padding: 0;
  background-color: #444;
  /*
  h1 {
      margin: 0;
      font-weight: normal;
      line-height: 60px;
  }

  h1 a {
      color: $header-color;
      text-decoration: none;
  }*/
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .container h1 {
  margin: 0;
  font-weight: normal;
  line-height: 60px;
}
header .container h3 {
  margin: 0;
  font-weight: normal;
  line-height: 30px;
}
header .container h1 a, header .container h3 a {
  color: #fff;
  text-decoration: none;
}
@media (max-width: 720px) {
  header .container h1 {
    font-size: 0.95rem;
    line-height: 45px;
  }
  header .container h3 {
    font-size: 0.9rem;
    line-height: 25px;
  }
}

a {
  color: #0e5494;
}

img {
  border: none;
}

.title {
  line-height: 2em;
  margin-bottom: 0.5em;
}
.title h2 {
  margin: 0;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title > nav {
  float: right;
}

.pic img {
  display: block;
  -moz-transition: opacity 100ms ease-in-out;
  -o-transition: opacity 100ms ease-in-out;
  -webkit-transition: opacity 100ms ease-in-out;
  transition: opacity 100ms ease-in-out;
  will-change: opacity;
  margin: auto;
  /*&.loaded {
      opacity: 1;
  }*/
}
.pic a {
  background: #f1f1f1;
  position: relative;
  display: block;
  margin-bottom: 2px;
  /*&:hover:after,
  &:focus:after {
      opacity: 1;
  }*/
}
.pic a:after {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  width: 100%;
  font-size: 0.9em;
  line-height: 1.7;
  text-indent: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  -moz-transition: opacity 300ms ease-in-out;
  -o-transition: opacity 300ms ease-in-out;
  -webkit-transition: opacity 300ms ease-in-out;
  transition: opacity 300ms ease-in-out;
}

.albumlist {
  display: flex;
  flex-flow: row wrap;
  margin: -2px;
}
.albumlist > a {
  flex-basis: 15%;
  flex-grow: 1;
  min-width: 196px;
  margin: 1px;
  width: 100%;
}
.albumlist > a:after {
  opacity: 1;
}
.albumlist img {
  height: 175px;
}

.photolist {
  margin-right: -2px;
  margin-bottom: 20px;
  -ms-column-gap: 2px;
  -moz-column-gap: 2px;
  -webkit-column-gap: 2px;
  column-gap: 2px;
  -ms-column-width: 190px;
  -moz-column-width: 190px;
  -webkit-column-width: 190px;
  column-width: 190px;
}

.img-list-container img {
  width: 100%;
}
@media (max-width: 960px) {
  .img-list-container .col {
    padding-right: 5px;
    padding-left: 5px;
  }
}

.albums-list img {
  height: 200px;
  width: auto;
}
@media (max-width: 960px) {
  .albums-list .col {
    padding-right: 5px;
    padding-left: 5px;
  }
  .albums-list img {
    height: auto;
    width: 100%;
    max-height: inherit !important;
  }
}

.photo {
  text-align: center;
}
.photo img {
  /*position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);*/
  max-height: 800px;
  margin: auto;
  max-width: 100%;
}
@media (max-width: 720px) {
  .photo img {
    max-height: 610px;
  }
}
.photo aside {
  text-align: left;
}
.photo .download {
  float: right;
}

.socialsharing {
  margin-top: 1em;
}
.socialsharing a {
  display: inline-block;
  margin-right: 0.6em;
}
.socialsharing svg {
  width: 24px;
  height: 24px;
}
.socialsharing svg path {
  fill: gray;
}

footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  text-align: center;
}
footer a:last-child {
  float: right;
}

@media (max-width: 960px) {
  /*.photo img {
      height: auto;
  }*/
  .albumlist img {
    width: 100%;
    height: auto;
  }

  .photolist img {
    width: 100%;
    margin: 5px;
  }
}
@media (max-width: 720px) {
  .photolist a {
    display: block;
    width: 50%;
    float: left;
    background-color: white;
  }

  .title h2 {
    display: none;
  }
  .title > nav {
    float: none;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .photolist a {
    display: block;
    width: 33%;
    float: left;
    background-color: white;
  }
}
@media (max-width: 320px) {
  .photolist a {
    display: block;
    width: 100%;
    background-color: white;
  }
}
