/* -- CSS Section: -- */
/* -- Global -- */
/* -- Header -- */
/* -- About -- */
/* -- Gallery -- */
/* -- Contact -- */
/* -- Media Queries -- */


/* -- Global -- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: rgb(33, 37, 41);
}

img {
  display: block;
}

/* -- Header --*/

.jumbotron {
  height: 100vh;
  background-image: url('../assets/jumbotron-image.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#hero-container {
  position: absolute;
  bottom: 70px;
  max-width: 100%;
}

#cta-btn:hover {
  background-color: #ff9a3c;
  border: 1px solid #ff9a3c;
}

/* -- About -- */

#about {
  background-image: url('../assets/blob-scatter-haikei.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #212529;
  display: grid;
  justify-content: center;
}

#bio-heading {
  color:#fff;
  display: block;
}

#bio-container {
  background-color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  flex-wrap: wrap-reverse;
  max-width: 900px;
  min-width: 450px;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  padding: 3em;
  flex-shrink: 1;
  position:relative;
  margin: 0 auto;
}

.bio-box {
  display: flex;
  width: 40%;
}

#bio-text {
  margin-right: auto;
  margin-left: auto;
  min-height: 300px;
  font-size: 1.5rem;
  display: block;
}

#first-letter {
  font-size: 2em;
  line-height: 0%;
}

#bio-image {
  flex-basis: 450px;
  flex-grow: 0;
  flex-shrink: 1;
  justify-content: flex-end;
  margin: 0 auto;
}

#bio-image img {
  border-radius: 50%;
}

/* -- Gallery -- */

#gallery {
  background-image: url("../assets/galleryWave.svg");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: bottom;
  background-color: white;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

#gallery-heading {
  color:rgba(33, 37, 41, 0.8);
}

.gallery-container {
  position: relative;
  width: 100%;
  z-index: 2;
  padding: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
      flex-flow: row wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  align-items: center;
  justify-content: center;
}
.gallery-container.pop {
  -webkit-filter: blur(10px);
          filter: blur(10px);
  justify-content: center;

}
.gallery-container figure {
  width: 33.33%;
  flex-grow: 1;
  min-width: 400px;
  padding: 10px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}
.gallery-container figure img {
  width: 100%;
  border-radius: 10px;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}
.gallery-container figure figcaption {
  display: none;
}

.popup {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0;
  -webkit-transition: opacity .5s ease-in-out .2s;
  transition: opacity .5s ease-in-out .2s;
}
.popup.pop {
  opacity: 1;
  -webkit-transition: opacity .2s ease-in-out 0s;
  transition: opacity .2s ease-in-out 0s;
}
.popup.pop figure {
  margin-top: 0;
  opacity: 1;
}
.popup figure {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
  margin-top: 30px;
  opacity: 0;
  -webkit-animation: poppy 500ms linear both;
          animation: poppy 500ms linear both;
}
.popup figure img {
  position: relative;
  z-index: 2;
  border-radius: 15px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 6px 30px rgba(0, 0, 0, 0.4);
}

.popup figure figcaption {
  position: absolute;
  bottom: 50px;
  background: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.78));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  z-index: 2;
  width: 100%;
  border-radius: 0 0 15px 15px;
  padding: 100px 20px 20px 20px;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 32px;
}
.popup figure figcaption small {
  font-size: 11px;
  display: block;
  text-transform: uppercase;
  margin-top: 12px;
  text-indent: 3px;
  opacity: .7;
  letter-spacing: 1px;
}
.popup figure .shadow {
  position: relative;
  z-index: 1;
  top: -15px;
  margin: 0 auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  width: 98%;
  height: 50px;
  opacity: .6;
  -webkit-filter: blur(15px) contrast(2);
          filter: blur(15px) contrast(2);
}
.popup .close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  background: url(#close);
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}
.popup .close svg {
  width: 100%;
  height: 100%;
}

/* -- Contact --*/

#contact {
  background-color: #ff9a3c;
  padding-top: 0;
}

#contact-btn {
  background-color: #ff9a3c;
  position: relative;
  margin: 20px auto 0;
}

#contact-btn:hover {
  background-color: rgb(255, 255, 255);
  border: 1px solid #ff9a3c;
}

#contact-form {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 10px;
}

#telNum, #email, #message, #contact-btn {
  border-radius: 10px;
}

/* -- Media Queries --*/

@media only screen and (max-width: 899px) {
  
  #bio-container {
    width: 95%;
  }
  #bio-text {
    width: 80%;
    height: auto;
    Padding-top: 3rem;
  }

  .gallery-container figure {
    min-width: 300px;
  }
}

@media only screen and (max-width: 799px) and (orientation: portrait) {
  #gallery-heading, #bio-heading {
    display: none;
  }
  
  #about {
    padding-top: 0;
    padding-bottom: 0;
  }
  
  #gallery {
    padding-top: 0;
    padding-bottom: 4rem;
  }
  
  .popup figure, .popup figure img {
    width: 95vw;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  } 
  #mainNav {
    width: 100vw;
  }
}

@media only screen and (max-width: 1000px) and (orientation: landscape) {
  
  #gallery-heading, #bio-heading {
    display: none;
  }

  #about {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #gallery {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .gallery-container figure {
    min-width: 200px;
  }
  
  .popup figure, .popup figure img {
    height: 80vh;
    bottom: 0;
    top: 54%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  } 

  #contact {
    padding-top: 2rem;
  }  
}

@media only screen and (max-width: 600px) {
  #bio-image img{
    width: 60%;
    overflow: hidden;
    margin: 0 auto;
  }
  
}