@-moz-keyframes rotating {
  from {
    -moz-transform: rotate(0deg); }
  to {
    -moz-transform: rotate(360deg); } }

@-webkit-keyframes rotating {
  from {
    -webkit-transform: rotate(0deg); }
  to {
    -webkit-transform: rotate(360deg); } }

header, footer, section, article, nav {
  display: block; }

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Lato, sans-serif;
  font-size: 18px; }

a {
  outline: none; }

.wrapper {
  position: relative;
  height: 100%;
  min-height: 858px; }

article#gallery {
  width: 1242px;
  height: 708px;
  margin: -337px 0 0 -621px;
  position: absolute;
  top: 50%;
  left: 50%; }

body.fixed-modal {
  overflow: hidden; }

article#about {
  display: flex;
  flex-direction: column;
  background-color: white;
  position: fixed;
  z-index: 1;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 40px;
  overflow-y: auto; }
  article#about .flex-row, article#about .flex-column {
    flex: auto; }
  article#about .flex-row {
    flex: auto;
    display: flex;
    flex-direction: row; }
    article#about .flex-row:nth-child(1) {
      min-height: 80px; }
    article#about .flex-row:nth-child(3) {
      min-height: 40px; }
  article#about .flex-column {
    flex: auto;
    display: flex;
    flex-direction: column; }
    article#about .flex-column.content {
      flex: 40em;
      max-width: 40em;
      padding: 0 1em; }

article nav {
  text-align: center; }
  article nav a {
    color: #09C;
    text-decoration: none; }
    article nav a:hover {
      text-decoration: underline; }

.gallery_initd #fancybox-wrap {
  padding: 0px;
  position: fixed;
  box-shadow: 0 5px 20px black; }

.gallery_initd #fancybox-close {
  top: 0;
  right: 0; }

.gallery_initd #fancybox-title-over {
  position: absolute;
  bottom: 0;
  right: 10px;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.25);
  text-align: right; }

@media (max-width: 1280px), (max-height: 1280px) {
  /* mobile screen */
  .gallery_initd #fancybox-title-over {
    font-size: 0.7rem; } }

/* 2020-03-20T08:31:20Z widebox is not in use, maybe try in another branch
.widebox-wrap {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  background-color: $bg_color;
  width: 100%;
  height: 100%;
  z-index: 999;
}
.widebox-close,
.widebox-prev,
.widebox-next {
  opacity: 0.5;
  transition-property: opacity;
  transition-duration: 0.2s;
}
.widebox-close:hover,
.widebox-prev:hover,
.widebox-next:hover {
  opacity: 1;
}
.widebox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: $bg_color;
}
.widebox-close {
  position: absolute;
  top: 40px;
  left: 50%;
  margin: -47px 0 0 -47px;
  width: 94px;
  height: 94px;
  cursor: pointer;
  background: url(../images/close-button.png);
  .widebox-wrap[ref=about] & {
    width: 212px;
    height: 60px;
    background: url(../images/logo.png) center no-repeat;
    margin: -30px 0 0 -106px;
    opacity: 1;
  }
}
.widebox-prev,
.widebox-next
{
  position: absolute;
  top: 0;
  width: 15%;
  min-width: 78px;
  height: 100%;
  cursor: pointer;
}
.widebox-prev:after,
.widebox-next:after
{
  display: block;
  content: " ";
  position: absolute;
  top: 50%;
  margin-top: -55px;
  width: 78px;
  height: 110px;
  background-position: center;
  background-repeat: no-repeat;
}
.widebox-wrap.single .widebox-prev,
.widebox-wrap.single .widebox-next
{
  display: none;
}
.widebox-next {
  right: 0;
}
.widebox-prev {
  left: 0;
}
.widebox-next:after {
  background-image: url(../images/gallery_arrow_right.png);
  right: 10px;
}
.widebox-prev:after {
  background-image: url(../images/gallery_arrow_left.png);
  left: 10px;
}
.widebox-inner > * {
  box-shadow: 0 0 30px 15px #EEE;
  position: absolute;
}
.widebox-inner > img {
  display: block;
}
.widebox-inner > article {
  max-width: 40em;
  padding: 2em;
  overflow: auto;
  background-color: $bg_color;
}
.widebox-inner > article p {
  line-height: 1.5;
  margin: 1.5em 0;
}
.widebox-inner > article p:first-child {
  margin-top: 0;
}
.widebox-inner > article p:last-child {
  margin-bottom: 0;
}
*/
.nowrap {
  white-space: nowrap; }

header, footer {
  transition-property: box-shadow;
  transition-duration: 0.2s;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: white;
  z-index: 2;
  display: flex;
  flex-direction: row;
  transition-property: height;
  transition-duration: 0.2s; }

header > nav {
  white-space: nowrap;
  line-height: 80px;
  padding-left: 0.6em;
  flex: 1; }

header > nav, header > h1 {
  transition-property: line-height, width;
  transition-duration: 0.2s; }

header > :nth-child(3) {
  flex: 1; }

header h1 {
  flex: 212px 1;
  min-width: 80px;
  display: block;
  overflow: hidden;
  cursor: pointer;
  background-image: url(../images/logo_hires.crushed.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin: 4px 1em;
  font-size: 0; }

header h1:before {
  /* push placeholder text out of box */
  content: " ";
  display: block;
  height: 100%; }

header nav {
  display: inline;
  text-transform: uppercase; }

header nav > * {
  padding: 0 0.4em; }

header nav a {
  display: inline-block;
  height: 100%; }

nav a {
  color: #000;
  text-decoration: none; }

nav a:hover {
  text-decoration: underline; }

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: white;
  z-index: 2;
  color: #666;
  font-size: 80%;
  line-height: 40px;
  text-align: center; }

.thumbnail {
  background-color: #999;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0;
  display: block;
  outline: 4px solid white; }

.gallery_initd .thumbnail {
  -webkit-transition-property: -webkit-transform box-shadow;
  -webkit-transition-duration: 0.15s;
  -webkit-transition-easing-function: ease-in-out;
  -moz-transition-property: -moz-transform box-shadow;
  -moz-transition-duration: 0.15s;
  -moz-transition-easing-function: ease-in-out;
  -ms-transition-property: -ms-transform box-shadow;
  -ms-transition-duration: 0.15s;
  -ms-transition-easing-function: ease-in-out;
  -o-transition-property: -ms-transform box-shadow;
  -o-transition-duration: 0.15s;
  -o-transition-easing-function: ease-in-out;
  transition-property: transform box-shadow;
  transition-duration: 0.15s;
  transition-easing-function: ease-in-out; }

.thumbnail:hover {
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.8);
  -webkit-transform: scaleX(1.1) scaleY(1.1);
  -moz-transform: scaleX(1.1) scaleY(1.1);
  -ms-transform: scaleX(1.1) scaleY(1.1);
  -o-transform: scaleX(1.1) scaleY(1.1);
  transform: scaleX(1.1) scaleY(1.1);
  z-index: 1; }

.loader {
  width: 100%;
  height: 100%;
  position: absolute;
  background: #999; }

/*
.widebox-wrap .loader {
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  margin: -40px 0 0 -40px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
}
*/
.loader.color-1 {
  background: #EC1EFF; }

.loader.color-2 {
  background: #FF0000; }

.loader.color-3 {
  background: #FF8604; }

.loader.color-4 {
  background: #FFF000; }

.loader.color-5 {
  background: #2AFF00; }

.loader.color-6 {
  background: #00FFFC; }

.loader.color-7 {
  background: #0042ff; }

.loader:before {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  margin: -20px 0 0 -20px;
  background: url(../images/loading_bg.png) center no-repeat transparent;
  position: absolute;
  display: block;
  content: " ";
  -webkit-animation: rotating 1s linear infinite;
  -moz-animation: rotating 1s linear infinite; }

.loader:after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background-color: inherit;
  display: block;
  content: " "; }

body.overflow header {
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3); }

body.overflow footer {
  box-shadow: 0 -8px 20px -5px rgba(0, 0, 0, 0.3); }

@media (max-width: 800px) {
  header > nav {
    text-align: center;
    flex: auto; }
  header > :nth-child(3) {
    display: none; } }

@media (max-width: 480px), (max-height: 480px) {
  .wrapper {
    min-height: 838px; }
  article#about {
    top: 60px;
    bottom: 40px; }
    article#about .flex-row:nth-child(1) {
      min-height: 60px; }
    article#about .flex-row:nth-child(3) {
      min-height: 40px; }
  header {
    height: 60px; }
  header > nav {
    line-height: 60px;
    font-size: 0.8em; }
  body.scrolled header {
    height: 40px; }
  body.scrolled header > nav {
    line-height: 40px; }
  body.scrolled article#about {
    top: 40px; } }

.size-1 {
  width: 85px;
  height: 85px;
  line-height: 85px; }

.size-2 {
  width: 174px;
  height: 174px;
  line-height: 174px; }

.size-3 {
  width: 263px;
  height: 263px;
  line-height: 263px; }

.size-4 {
  width: 352px;
  height: 352px;
  line-height: 352px; }

.size-5 {
  width: 441px;
  height: 441px;
  line-height: 441px; }

.size-6 {
  width: 530px;
  height: 530px;
  line-height: 530px; }

/* 7 x 16 */
@media (max-width: 1250px) {
  article#gallery {
    width: 619px;
    height: 1420px;
    padding: 95px 0 55px;
    position: relative;
    margin: 0 auto;
    top: 0;
    left: auto; }
  .wrapper {
    min-height: auto; } }

/* 4 x 28 */
@media (max-width: 627px) {
  article#gallery {
    width: 352px;
    height: 2488px; } }
