* {
  box-sizing: border-box;
}
html,
body,
div,
img {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

body {
  width: 100%;
  color: white;
  font-family: de-regular;
  background-color: black;
  /* overflow: hidden; */
  line-height: 1;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
}
a,
a:visited {
  color: white;
}
nav {
  background: #000;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  width: 100vw;
  height: 50px;
  padding: 10px;
}

nav li {
  list-style: none;
  display: inline-flex;
}

#logo {
  float: left;
}
figcaption {
  font-size: 12px;
}
.container {
  max-width: 960px;
  margin: 0 auto;
}

.photos {
  display: flex;
  background-color: #000;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: stretch;
  padding: 0;
  max-width: 980px;
}

.photos img {
  cursor: pointer;
  display: block;
  float: left;
  flex: 0 0 auto;
  background-color: #fff;
}

@media screen and (min-width: 1024px) {
  .photos img {
    width: calc(100% / 6);
    height: calc(100% / 6);
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .photos img {
    width: calc(100% / 4);
    height: calc(100% / 4);
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .photos img {
    width: calc(100% / 3);
    height: calc(100% / 3);
  }
}

@media screen and (min-width: 321px) and (max-width: 480px) {
  .photos img {
    width: calc(100% / 2);
    height: calc(100% / 2);
  }
}

@media screen and (max-width: 320px) {
  .photos img {
    width: 100%;
    height: 100%;
  }
}

/* --------------------------------------------- Lightbox */
/* .lightbox.animate {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
} */
.lightbox {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  visibility: hidden;
  opacity: 0;
}
.lightbox.active {
  visibility: visible;
  opacity: 1;
  overflow: hidden;
}
.lightboxClose {
  font-size: 50px;
  cursor: pointer;
  display: block;
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
  z-index: 2;
  /* height: 100%; */
}

.lightboxPrev {
  cursor: pointer;
  position: fixed;
  bottom: 0px;
  left: 10px;
  font-size: 50px;
  z-index: 3;
  /* line-height: 100%;
  height: 100%; */
}
.lightboxNext {
  cursor: pointer;
  position: fixed;
  bottom: 0px;
  right: 10px;
  font-size: 50px;
  z-index: 3;
  /* line-height: 100%;
  height: 100%; */
}
.animate {
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -ms-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

/* Styles the lightbox content, centering it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */

.lightbox img,
.lightbox iframe {
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 60%;
  max-height: 60%;
  border: 2px solid white;
  box-sizing: border-box;
}

.telechargement a {
  color: #aaa;
  text-decoration: none;
  font-size: 25px;
}
#legende {
  color: #aaa;
  position: absolute;
  top: 15px;
  text-align: center;
  width: 100%;
}
img#cible,
.photos img {
  background-color: #fff;
}
