#mainNav {
  min-height: 56px;
  background-color: #fff;
  font-family: 'Source Sans Pro', sans-serif;
}

#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.75rem;
  color: #b20000;
  border: none;
}

#mainNav .navbar-toggler:focus {
  outline: none;
}

#mainNav .navbar-brand {
  color: #b20000;
  font-weight: 700;
  padding: .9rem 0;
}

#mainNav .navbar-nav .nav-item:hover {
  color: fade(white, 90%);
  outline: none;
  background-color: transparent;
}

#mainNav .navbar-nav .nav-item:active,
#mainNav .navbar-nav .nav-item:focus {
  outline: none;
  background-color: transparent;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    background-color: transparent;
    -webkit-transition: background-color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out;
  }

  #mainNav .navbar-brand {
    padding: .5rem 0;
    color: rgba(255, 255, 255, 0.5);
  }

  #mainNav .nav-link {
    -webkit-transition: none;
    transition: none;
    padding: 2rem 1.5rem;
    color: rgba(255, 255, 255, 0.5);
  }

  #mainNav .nav-link:hover {
    color: rgba(255, 255, 255, 0.75);
  }

  #mainNav .nav-link:active {
    color: white;
  }

  #mainNav.navbar-shrink {
    background-color: #fff;
  }

  #mainNav.navbar-shrink .navbar-brand {
    color: #b20000;
  }

  #mainNav.navbar-shrink .nav-link {
    color: #b20000;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 0.25rem solid transparent;
  }

  #mainNav.navbar-shrink .nav-link:hover {
    color: #b20000;
  }

  #mainNav.navbar-shrink .nav-link.active {
    color: #b20000;
    outline: none;
    border-bottom: 0.25rem solid #b20000;
  }
}

.masthead {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 35rem;
  padding: 15rem 0;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(22, 22, 22, 0.1)), color-stop(75%, rgba(22, 22, 22, 0.7)), to(#161616));
  background: linear-gradient(to bottom, rgba(22, 22, 22, 0.1) 0%, rgba(22, 22, 22, 0.7) 75%, #161616 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
}

.masthead video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.masthead h1 {
  font-family: 'Source Sans Pro', sans-serif;
  background: -webkit-linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.masthead h2 {
  max-width: 20rem;
  font-size: 1rem;
  font-family: 'Source Sans Pro', sans-serif;
}

@media (min-width: 768px) {
  .masthead h1 {
    font-size: 4rem;
    line-height: 4rem;
  }
}

@media (min-width: 992px) {
  .masthead {
    height: 100vh;
    padding: 0;
  }

  .masthead h1 {
    font-size: 6.5rem;
    line-height: 6.5rem;
    letter-spacing: 0.8rem;
  }

  .masthead h2 {
    max-width: 30rem;
    font-size: 1.25rem;
  }
}

.about-section {
  padding-top: 10rem;
  background: rgba(22, 22, 22, 1);
  font-family: 'Source Sans Pro', sans-serif;
}

.about-section p {
  margin-bottom: 5rem;
}

.projects-section {
  padding: 5rem 0;
}

.projects-section h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  color: rgb(22, 22, 22, 1);
}

.projects-section .featured-text {
  padding: 2rem;
}

@media (min-width: 992px) {
  .projects-section .featured-text {
    padding: 0 0 0 2rem;
    border-left: 0.5rem solid #dc3545;
  }
}

.projects-section #gallery-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: none;
  object-fit: cover;
}

.projects-section #gallery-overlay-txt-bg {
  width: 55%;
  height: 1rem;
  background-color: #a7463d;
  text-align: center;
  overflow: visible;
  position: absolute;
  bottom: 2.1rem;
  left: 1.3rem;
  z-index: 2;
}

.projects-section #gallery-overlay-txt {
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
  color: white;
  font-size: 1.2em;
  font-weight: 500;
  position: absolute;
  top: -0.7rem;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 2;
  text-shadow: 2px 2px 4px #00000022;
}

@media (min-width: 992px) {
  .projects-section #gallery-overlay-txt {
    font-size: 3em;
    top: -2rem;
  }

  .projects-section #gallery-overlay-txt-bg {
    height: 2rem;
    bottom: 2.1rem;
    left: 1.3rem;
  }
}

.projects-section .gallery-selector-icons {
  width: 4rem;
  border-radius: 0.8rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.projects-section .project-text {
  padding: 3rem;
  font-size: 90%;
}

@media (min-width: 992px) {
  .projects-section .project-text {
    padding: 5rem;
  }

  .projects-section .project-text hr {
    border-color: #dc3545;
    border-width: .25rem;
    width: 100%;
  }
}

.projects-section .card {
  border: 0;
  border-bottom: 0.25rem solid #dc3545;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.projects-section .card::after {
  content: "";
  border-radius: 5px;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  -webkit-transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.projects-section .card:hover {
  -webkit-transform: scale(1.03, 1.03);
  transform: scale(1.03, 1.03);
  border-bottom: 0.25rem solid #ca3d3d;
}

.projects-section .card:hover::after {
  opacity: 1;
}

.projects-section .card a {
  font-size: 1.2rem;
  font-family: 'Source Sans Pro', sans-serif;
  color: rgb(22, 22, 22, 0.7);
}

.projects-section video {
  max-width: 100%;
  max-height: 100%;
  display: inline-block;
  vertical-align: middle;
}

.projects-section .credits {
  position: absolute;
  bottom: 0;
  right: 0;
}

.contact-section {
  padding: 3rem 0 0;
}

.contact-section .social {
  margin-top: 2rem;
}

.contact-section .social a {
  text-align: center;
  height: 5rem;
  width: 5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100%;
  line-height: 3rem;
  color: rgba(255, 255, 255, 0.3);
  padding: 1.3rem;
}

.contact-section .social a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.contact-section .social a:active {
  color: #fff;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  letter-spacing: 0.0625em;
}

a {
  color: #64a19d;
}

a:focus,
a:hover {
  text-decoration: none;
  color: #3c6360;
}

.bg-black {
  background-color: #1f1f1f !important;
}

.bg-primary {
  background-color: #64a19d !important;
}

.text-primary {
  color: #64a19d !important;
}

footer {
  padding: 3rem 0;
}