@import url("https://fonts.googleapis.com/css2?family=Suez+One&display=swap");
/* 
Reset
*/
*,
figure::before,
figure::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;

  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
  -moz-scroll-behavior: smooth;
  -ms-scroll-behavior: smooth;
  -o-scroll-behavior: smooth;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  font-size: 62.5%;
}

body {
  font-family: sans-serif;
  font-size: 1.6rem;
  font-weight: 100;
  padding: 2rem;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
}

footer,
footer h1 {
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  margin-top: 10rem;
}

footer div > * {
  display: inline;
}

footer a {
  cursor: help;
}

footer .smallText {
  margin-top: 1rem;
  display: block;
  font-size: 1.2rem;
  position: relative;
}

footer .smallText::before {
  content: "";
  display: block;
  margin: auto;
  width: 2rem;
  height: 0.2rem;
  background-color: black;
  margin-bottom: 1rem;
}

footer .smallText a {
  padding: 0 0.5rem;
}

/* 
Pictures
*/

img {
  max-width: 100%;
  position: relative;
}

figure {
  line-height: 0;
  margin-bottom: 2rem;
  position: relative;
  cursor: nesw-resize;
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}

#pictureGrid {
  position: relative;
  z-index: 1;
  overflow: auto;
  min-height: 100vh;
}

#pictureGrid::before,
figure::before,
figure::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}
figure::before,
figure::after {
  width: 100%;
  z-index: 1;
}

#pictureGrid::before {
  width: 0;
  height: 100%;
  background-color: white;
}

#pictureGrid.hide::before {
  z-index: 2;
  width: 100%;
}

figure::before {
  border: 0 solid white;
  background-color: white;
}

figure.loaded::before {
  background-color: transparent;
}

figure::after {
  opacity: 1;
  background-color: white;
}

figure.loaded::after {
  opacity: 0;
}

figure:hover::before {
  border: 2rem solid rgb(255 255 255 / 80%);
}

#singlePicture.display img#singlePictureImg.hide {
  opacity: 0;
}

#playerMenu {
  position: absolute;
  z-index: 1000;
  bottom: 2rem;
  color: black;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}

#playerMenu li {
  display: inline-block;
}

#playerMenu button {
  font-size: 3rem;
  color: grey;
  border: none;
  background-color: transparent;
  opacity: 0.5;
  cursor: pointer;
}

#playerMenu button:hover {
  opacity: 1;
}

#singlePicture {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 4rem 4rem 8rem 4rem;
  cursor: crosshair;
}

#singlePicture::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#singlePicture img {
  max-height: 100%;
  max-width: 100%;
  opacity: 0;
  margin: auto;
}

#singlePicture.display {
  z-index: 3;
}

#singlePicture.display #playerMenu {
  opacity: 1;
}

#singlePicture.display img {
  opacity: 1;
}

#singlePicture.hide {
  opacity: 0;
}

.transitionAll,
#pictureGrid::before,
figure::before,
figure::after,
figure img,
#singlePicture img,
button {
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}

.firstItem {
  padding-top: 1rem;
  padding-bottom: 4rem;
  opacity: 0;
}

.firstItem.display {
  opacity: 1;
}

.pageTitle {
  font-family: "Suez One", serif;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.pageTitle ~ p {
  font-size: 1rem;
  text-transform: uppercase;
}

.firstItem em {
  margin-top: 0.2rem;
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
}

.firstItem p {
  padding-left: 1rem;
}

.firstItem p:last-child {
  font-size: 0.8rem;
  margin-top: 1rem;
}

.firstItem.display .pageTitle {
  padding: 0;
  max-width: 50%;
}

.firstItem.display p {
  padding: 0;
}

@media screen and (min-width: 576px) {
  .masonry {
    /* Masonry container */
    column-count: 2;
    column-gap: 2rem;
  }

  .item {
    /* Masonry bricks or child elements */
    display: inline-block;
    margin: 0 0 2rem;
    width: 100%;
  }
  /**/
}

@media screen and (min-width: 850px) {
  figure img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
  }

  figure:hover img {
    filter: grayscale(0);
    -webkit-filter: grayscale(0);
  }

  .masonry {
    /* Masonry container */
    column-count: 3;
  }
}

@media screen and (min-width: 992px) {
  .firstItem {
    padding-top: 0;
  }

  .masonry {
    /* Masonry container */
    column-count: 4;
  }
}
