/* testing bullshit

div, header {
  border: 1px dotted red;
  background-color: rgba(50,50,50,0.2);
}



/************

Fundemental components and sections

************/

main {
  opacity: 0;
  margin-bottom: 20vw;
}


video {
  width: auto;
  height: auto;
  max-height: 101%;
  min-height: 100%;
  min-width: 100%;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-anchor: none;
}
body {
  font-family: 'Quark', sans-serif;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  overflow-anchor: none;
}

/************

Loader animation

************/

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

#loader {
	width: 100vw;
	height: 100vh;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	opacity: 0.9;
	background: white;
  display: flex;
}

#loader img {
  width: 50vw;
  margin: 0 auto;
  animation: spinForever 80s linear 0ms infinite;
}

@keyframes fadeIn {
  0% {
		opacity: 0;
  }
  100% {
		opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
		opacity: 1;
  }
  100% {
		opacity: 0;
    visibility: hidden;
  }
}

.fadeIn {
	animation: fadeIn 1s ease-in-out 2500ms forwards;
}

.fadeOut {
	animation: fadeOut 1s ease-in-out 400ms forwards;
}


/************

Header

************/


#header {
  display: flex;
  width: auto;
  padding: 24px 48px 24px 16px;
  justify-content: space-between;
  align-items: center;
}

#header img {
  width: 108px;
  height: auto;
}

#header a {
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}


/************

Socials and controls

************/

#socials {
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(-180deg);
}

#socials a {
  text-decoration: none;
  text-transform: uppercase;
  color: black;
  letter-spacing: 0.2em;
}

#socials .line {
  height: 10vw;
  width: 1px;
  background: black;
}

/************

Video Slideshow

************/


#slider {
  display: flex;
  flex-direction: row;
  width: 100%;
}

#slideshow-wrapper {
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
  scrollbar-width: none; /* for Firefox */
  overflow-x: scroll;
}

#slideshow-wrapper::-webkit-scrollbar {
  display: none; /* for Chrome, Safari, and Opera */
}

#slideshow {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: auto;
  min-width: min-content;
  position: relative;
}

.slide {
  width: 33vw;
  height: 50vw;
  background-color: blue;
  margin-right: 16px;
  display: inline-block;
  overflow: hidden;
  position: relative;
  transition: all 500ms ease-in-out;
}

.card {
  background: rgba(255,255,255,0.9);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70%;
  padding: 48px 32px;
  z-index: 10;
  width: 20vw;
  opacity: 0;

}

.slide:first-of-type > .card {
  opacity: 1;
}

.card-title {
  font-weight: bold;
  font-size: 32px;
  line-height: 1.33em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-body {
  font-weight: normal;
  font-size: 18px;
  line-height: 1.4em;
  letter-spacing: 0.12em;
}

.controls {
  margin-top: 1vw;
  display: none;
}

.backwards, .forwards {
  display: inline-block;
  align-items: center;
  margin-right: 16px;
}

.backwards img, .forwards img {
  vertical-align: middle;
}

.backwards {
  transform: rotate(180deg) translateY(1px);
}

.disabled {
  opacity: 0.2;
}

/************

Bio

************/

#bio {
  display: flex;
  padding: 10vw 0 0 0;
  margin-bottom: 10vw;
}

#bio-headshot {
  width: 50%;
  padding: 124px 64px;
  position: relative;
}

#bio-headshot::before {
  content: "";
  background-image: url(img/logo-text-circle.svg);
  background-size: cover;
  display: inline-block;
  position: absolute;
  top: -10%;
  left: -30%;
  z-index: -10;
  width: 60vw;
  height: 60vw;
  animation: spinForever 100s linear 0ms infinite;
}

@keyframes spinForever {
  from {transform: rotate(0deg);}
  to {transform: rotate(360deg);}
}

#bio-headshot img {
  width: 100%;
  height: auto;
}

#bio-text {
  width: 50%;
  padding: 24px 48px;
  line-height: 2rem;
  font-size: 18px;
  letter-spacing: 0.12em;
}

#bio-text p {
  width: 80%;
}

#bio-text img {
  width: 20vw;
  margin-top: 48px;
}

#bio-text a.button {
  display: block;
  margin-top: 5vw;
  color: white;
  background-color: black;
  border: none;
  padding: 12px 48px;
  font-family: 'Quark', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 24px;
  text-align: center;
  width: 75%;
  max-width: 320px;
}

/************

Gallery

************/

#gallery {
  padding: 48px 0;
  width: 125vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  margin-bottom: 16px;
}

.gallery-img-container:nth-of-type(-n+5) {
  transform: translateX(-2vw);
}

.gallery-img-container:nth-of-type(n+5):nth-of-type(-n+8) {
  transform: translateX(-5vw);
}

.gallery-img-container:nth-of-type(n+9)  {
  transform: translateX(-1vw);
}


.gallery-img-container {
  overflow: hidden;
  height: 24vw;
}


#gallery img {
  width: auto;
  height: auto;
  max-height: 101%;
  min-height: 100%;
  min-width: 100%;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/************

Footer

*************/

#footer {
  display: flex;
  flex-direction: column;
  padding: 5vw;
}
#footer-columns {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#footer-bio, #footer-contact {
  width: 20vw;
  margin: 0 3vw;
}

#footer-socials {
  width: 10vw;
  margin: 0 3vw;
}

#footer-columns p, #footer-columns a {
  display: block;
  text-decoration: none;
  color: black;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
}

#footer-columns .subtitle {
  font-size: 16px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

#footer img {
  width: 50%;
  margin: 5vw auto;
}



/************

Fonts

*************/

@font-face {
  font-family: 'Quark';
  src: url('fonts/Quark-Bold.eot');
  src: url('fonts/Quark-Bold.eot?#iefix') format('embedded-opentype'),
    url('fonts/Quark-Bold.woff2') format('woff2'),
    url('fonts/Quark-Bold.woff') format('woff'),
    url('fonts/Quark-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Quark';
  src: url('fonts/Quark-Light.eot');
  src: url('fonts/Quark-Light.eot?#iefix') format('embedded-opentype'),
    url('fonts/Quark-Light.woff2') format('woff2'),
    url('fonts/Quark-Light.woff') format('woff'),
    url('fonts/Quark-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/************

Responsive

************/

@media screen and (max-width: 1024px) {

  /* slideshow section */

    #socials {
      padding: 0 24px;
    }

    #slideshow-wrapper {
      overflow: auto;
    }


    .slide {
      width: 40vw;
      height: 60vw;
    }

    .card {
      padding: 16px 24px;
      width: 28vw;
    }

    .card-title {
      font-size: 16px;
    }

    .card-body {
      font-size: 16px;
    }

    /* bio section */

    #bio {
      flex-direction: column-reverse;
      padding: 20vw 0 0 0;
    }

    #bio-text {
      width: auto;
      padding: 0 69px;
    }

    #bio-text p {
      width: auto;
    }

    #bio-text a.button {
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    #bio-text img {
      width: 90%;
      margin-left: auto;
      margin-right: auto;
      display: block;
      }

    #bio-headshot {
      width: auto;
      padding: 0 69px;
      margin-top: 20vw;
    }

    #bio-headshot::before {
      width: 120vw;
      height: 120vw;
    }

}

@media screen and (max-width: 414px) {

  /* header */

  #header {
    padding: 16px 24px 16px 16px;
  }

  #header img {
    width: 28vw;
  }


/* slideshow section */

  #socials {
    padding: 0 24px;
  }

  #slideshow-wrapper {
    overflow: auto;
  }


  .slide {
    width: 69vw;
    height: 130vw;
  }

  .card {
    padding: 16px 24px;
    width: 45vw;
  }

  .card-title {
    font-size: 16px;
  }

  .card-body {
    font-size: 16px;
  }

  /* bio section */

  #bio-text {
    padding: 24px;
  }

  #bio-text img {
    margin-bottom: 20vw;
  }

  #bio-headshot {
    padding: 24px;
  }


  /* gallery section */
  #gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-img-container {
    height: 48vw;
  }

  #gallery .gallery-img-container:nth-of-type(4n), #gallery .gallery-img-container:nth-of-type(4n-1) {
    transform: translateX(0vw);
  }
  #gallery .gallery-img-container:nth-of-type(4n-2), #gallery .gallery-img-container:nth-of-type(4n-3) {
    transform: translateX(-25vw);
  }
  #footer img {
    width: 90%;
    margin: 20vw auto;
  }
  #footer-columns {
    flex-direction: column;
  }
  #footer-bio, #footer-contact, #footer-socials {
    width: auto;
  }

  #bio-text a.button {
    padding: 12px 24px;
    width: auto;
  }

}

@media screen and (max-width: 320px) {
  #header img {
    width: 35vw;
  }
}
