

/* latin */
@font-face {
  font-family: 'Megrim';
  font-style: normal;
  font-weight: 400;
  src: url(lightcase-fonts/font_2387568_7n96d4x0sva.woff) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/*LAYOUT*/

.gallery {
  max-width: 95%;
  margin: auto;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}


@media (max-width: 768px) {
.gallery {
  max-width: 100%;
}
}
@media (max-width: 420px) {

}

.thumbnail {
  box-sizing: border-box;
  width: 400px; /*Zahl der Bilder pro Zeile*/
  margin: 0.5em;
  flex-grow: 1;
  flex-shrink: 1;
  background: #131013;
  position: relative;
}
.thumbnail a {
  box-sizing: inherit;
}
.thumbnail a::before, .thumbnail a::after {
  box-sizing: inherit;
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}
.thumbnail img {
  width: 100%;
  height: 450px;
  -o-object-fit: cover;
     object-fit: cover;
  vertical-align: bottom;
}
@media (max-width: 568px) {
  .thumbnail img {
    height: 300px;
  }
}

.bigger {
  width: 400px;
}

/*ANIMATIONS*/
.thumbnail a img[data-src] {
  opacity: 0;
}
.thumbnail a img {
  opacity: 1;
  transition: opacity 1.2s;
}
.thumbnail a::before, .thumbnail a::after {
  border: 2px solid transparent;
  width: 0;
  height: 0;
  top: 0;
  left: 0;
}
.thumbnail a:hover::before, .thumbnail a:hover::after {
  width: 100%;
  height: 100%;
}
.thumbnail a:hover::before {
  border-top-color: rgba(240, 255, 240, 0.8);
  border-right-color: rgba(240, 255, 240, 0.8);
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out 0.2s;
}
.thumbnail a:hover::after {
  border-bottom-color: rgba(240, 255, 240, 0.8);
  border-left-color: rgba(240, 255, 240, 0.8);
  transition: height 0.2s ease-in-out, width 0.2s ease-in-out 0.2s;
}

#lightcase-overlay {
  background-color: #121012;
}