body {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100vh;
  font-family: 'Rubik', 'Roboto', sans-serif;

  background: url(/projects-bg.jpg) top center;
  background-size: auto auto;
  position: relative;
}

#main:before {
  content: "";
  background: rgba(6, 12, 34, 0.6);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

body .credit {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #000;
}
body .options {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  overflow-x: auto;
  min-width: 600px;
  /* max-width: 900px; */
  /* width: calc(100% - 100px); */
  width: 100%;
  /* height: 400px; */
  height: 95%;
  margin: 5%;
}

@media screen and (max-width: 718px) {
  body .options {
    /* min-width: 520px; */
    min-width: 80%;
  }
  /*
  body .options .option:nth-child(5) {
    display: none;
  }
  */
}
@media screen and (max-width: 638px) {
  body .options {
    /* min-width: 440px; */
    min-width: 60%;
  }
  /*
  body .options .option:nth-child(4) {
    display: none;
  }
  */
}
@media screen and (max-width: 558px) {
  body .options {
    /* min-width: 360px; */
    min-width: 40%;
  }
  /*
  body .options .option:nth-child(3) {
    display: none;
  }
  */
}
@media screen and (max-width: 478px) {
  body .options {
    /* min-width: 280px; */
    min-width: 20%;
  }
  /*
  body .options .option:nth-child(2) {
    display: none;
  }
  */
}
body .options .option {
  position: relative;
  overflow: hidden;
  min-width: 60px;
  max-width: 60px;
  margin: 10px;
  background: var(--optionBackground, var(--defaultBackground, #E6E9ED));
  background-size: auto 120%;
  background-position: center;
  cursor: pointer;
  transition: 1.2s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

@media (max-aspect-ratio: 1/1) {
  body .options {
    flex-direction: column;
    overflow-y: scroll;

    /* This is so the scrollbar is not on top of the options*/
    padding-right: 17px;
    box-sizing: content-box;
  }

  body .options .option {
    min-width: 100%;
    max-width: 100%;
    min-height: 60%;
  }
}

body .options .option.active {
  flex-grow: 10000;
  -webkit-transform: scale(1);
          transform: scale(1);
  /* max-width: 600px; */
  max-width: 100%;
  min-width: 30vw;
  margin: 0.2%;
  border-radius: 40px;
  background-size: cover;
  /* background-repeat: no-repeat; */
  /* &:active {
     transform:scale(0.9);
  } */
}
body .options .option.active .shadow {
  box-shadow: inset 0 -120px 120px -120px black, inset 0 -120px 120px -100px black;
}
body .options .option.active .label {
  bottom: 20px;
  left: 20px;
}
body .options .option.active .label .info > div {
  left: 0px;
  opacity: 1;
}
body .options .option.active#main .label .info > div {
  left: 0px;
  opacity: 1;
  bottom: 20px;
}
body .options .option:not(.active) {
  flex-grow: 1;
  border-radius: 30px;
}
body .options .option:not(.active) .shadow {
  bottom: -40px;
  box-shadow: inset 0 -120px 0px -120px black, inset 0 -120px 0px -100px black;
}
body .options .option:not(.active) .label {
  bottom: 10px;
  left: 10px;
}
body .options .option:not(.active) .label .info > div {
  transform: rotate(-90deg);
  transform-origin: 0% 0%;
  left: -50px;
  bottom: 5px;
  opacity: 1;
  text-shadow: 0px 0px 80px rgba(0,0,0,1), 0px 0px 70px rgba(0,0,0,1), 0px 0px 60px rgba(0,0,0,1), 0px 0px 50px rgba(0,0,0,1), 0px 0px 40px rgba(0,0,0,1), 0px 0px 30px rgba(0,0,0,1);
}
body .options .option:not(.active) .label .info > div.sub {
  opacity: 0;
}
body .options .option .shadow {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 120px;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}
body .options .option .label {
  display: flex;
  position: absolute;
  right: 0px;
  height: 40px;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}
body .options .option .label .icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: white;
  color: var(--defaultBackground);
  overflow: hidden;
}
body .options .option .label .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
  color: white;
  white-space: pre;
}
body .options .option .label .info > div {
  position: relative;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity 0.5s ease-out;
}
body .options .option .label .info .main {
  font-weight: bold;
  font-size: 2.2rem;
}
body .options .option .label .info .sub {
  transition-delay: .1s;
}

@keyframes darken {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    margin-left: 0;
  }
}

@keyframes disappear {
  from {
    width: initial;
  }
  to {
    width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
  }
}

.disappear {
  min-width: 0 !important;
  /*animation: disappear 1.5s forwards;*/
  width: 0 !important;
  margin: 0 !important;
  padding:0 !important;
  /* transition: all 1s ease-in-out !important; */
  transform: scaleX(0);
}

.expand {
  background-color: #343434 !important;
  background-blend-mode: multiply !important;
  display: flex !important;
}

.hidden {
	width: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	visibility: hidden !important;
}

.navigation {
  position: absolute;
  top: 8px;
  color: white;
}

.backButton {
  left: 16px;
}

.home {
  right: 16px;
}

.lvl1 {
  z-index: 1;
}

.lvl2 {
  opacity: 0;
  z-index: 2;
}

.lvl3 {
  opacity: 0;
  z-index: 3;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fadeIn {
  /*animation: disappear 1.5s reverse;*/
  opacity: 1 !important;
  transition: opacity 1.2s ease-in-out;
}

.fadein {
    animation: fade 2s;
    -moz-animation: fade 2s; /* Firefox */
    -webkit-animation: fade 2s; /* Safari and Chrome */
    -o-animation: fade 2s; /* Opera */
}

.fadeOut {
  /*animation: disappear 1.5s forwards;*/
  opacity: 0;
  transition: opacity 1.2s eas-in-out;
}

.gallery {
  width: 100%;

  cursor: default;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 10px;
  grid-auto-rows: 15vh;
  grid-auto-flow: dense;
  padding: 10px;

  opacity: 0;

  overflow-y: auto;
}

@media screen and (max-width: 900px) {
    .gallery {
      grid-template-columns: repeat(2, 50%);
      grid-auto-rows: 20vw;
    }

    .span-2 {
      grid-column-end: span 2 !important;
      grid-row-end: span 2 !important;
    }

    .span-3 {
      grid-column-end: span 2 !important;
      grid-row-end: span 2 !important;
    }

    .span-4 {
      grid-column-end: span 2 !important;
      grid-row-end: span 2 !important;
    }
}

@media screen and (max-width: 700px) {
  .gallery {
      grid-template-columns: repeat(1, 100%);
      grid-auto-rows: 40vw;
    }

    .span-2 {
      grid-column-end: span 1 !important;
      grid-row-end: span 1 !important;
    }

    .span-3 {
      grid-column-end: span 1 !important;
      grid-row-end: span 1 !important;
    }

    .span-4 {
      grid-column-end: span 1 !important;
      grid-row-end: span 1 !important;
    }
}

.grid-item {
  border-radius: 15px;
}

.span-2 {
  grid-column-end: span 2;
  grid-row-end: span 2;
}

.span-3 {
  grid-column-end: span 3;
  grid-row-end: span 3;
}

.span-4 {
  grid-column-end: span 4;
  grid-row-end: span 4;
}

.width-2 {
  grid-column-end: span 2;
}

.width-3 {
  grid-column-end: span 3;
}

.width-4 {
  grid-column-end: span 4;
}

.height-2 {
  grid-row-end: span 2;
}

.height-3 {
  grid-row-end: span 3;
}

.height-4 {
  grid-row-end: span 4;
}

.height-5 {
  grid-row-end: span 5;
}

img {	
  image-orientation: from-image;
}

.txt {
	background: #247f83;
}

.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clickable {
  cursor: pointer
}

.round {
  border-radius: 15px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  text-align: center;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9)
}

.modal-content {
  margin: auto; 
  display: flex;
  height: 80%;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #f1f1f1;
  padding: 10px 0;
  height: 150px;
}

.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 47%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

.close {
  position: absolute;
  top: 15px;
  right: 35p;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbbbbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 900px) {
  .modal-content {
    width: 90%;
    height: auto;
  }
}

.erony {
	--defaultBackground: #72896F
}

.revuya {
	--defaultBackground: #A3A381
}

.public {
	--defaultBackground: #A66152
}

.private {
	--defaultBackground: #A66152
}
