/* =========================== 
   Base
=========================== */
html,
body {
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
  color: #555;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
  text-transform: uppercase;
  color: #333;
  margin: 0 0 20px;
}
h1 {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 10px;
}
h2 {
  font-size: 42px;
  font-weight: 700;
}
h3 {
  font-size: 18px;
}
h4 {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
h5 {
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

p {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #888;
  margin: 0 0 20px;
  line-height: 1.6;
}
p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}

a {
  color: #222;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #000;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

hr {
  height: 6px;
  width: 70px;
  background: #444;
  margin: 0 0 20px;
  border: 0;
}

/* ===========================
   Buttons
=========================== */
.btn:active,
.btn.active,
a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  box-shadow: none;
}

.btn-custom {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  color: #444;
  background: transparent;
  border: 2px solid #444;
  padding: 14px 20px;
  font-size: 14px;
  border-radius: 0;
  margin: 20px 30px 0 0;
  transition: all 0.5s;
}
.btn-custom:hover {
  color: #eee;
  background: #444;
}

/* ===========================
   Intro/Header
=========================== */
.intro {
  display: table;
  width: 100%;
  margin-bottom: 80px;
  background: url(../img/intro-bg.jpg) no-repeat right top #e5e5e5;
  background-size: cover;
}
.intro .overlay {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(213, 218, 222, 0) 100%
  );
}
.intro .fa {
  font-size: 94px;
  margin-bottom: 40px;
  color: #fff;
}
.intro p {
  color: #444;
  margin: 10px 0 20px;
  font-size: 22px;
}
header .intro-text {
  padding: 250px 0 200px;
}

/* ===========================
   Portfolio Grid
=========================== */
#portfolio {
  padding: 40px 0 100px;
}
#portfolio-items {
  margin-top: 20px;
}

.categories {
  margin-bottom: 20px;
}
ul.cat li,
ol.type li {
  display: inline-block;
}
ol.type li {
  margin: 15px;
}
ol.type li a {
  font-family: "Montserrat", sans-serif;
  color: #444;
  font-size: 14px;
  padding: 10px 20px;
  border: 2px solid #444;
  border-radius: 0;
  margin: 10px 5px 15px 20px;
  text-transform: uppercase;
}
ol.type li a.active,
ol.type li a:hover {
  background: #444;
  color: #eee;
}

/* Isotope */
.isotope-item {
  z-index: 2;
  margin-right: -1px;
  padding: 0 10px;
}
.isotope-hidden.isotope-item {
  z-index: 1;
}
.isotope,
.isotope .isotope-item {
  transition-duration: 0.8s;
  backface-visibility: hidden;
}
.isotope {
  transition-property: height, width;
}
.isotope .isotope-item {
  transition-property: transform, opacity;
}

/* Portfolio items */
.portfolio-item {
  position: relative;
  margin: 10px 0 20px;
  cursor: pointer;
  transition: all 0.5s ease-out;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
}
.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 10px;
}
.portfolio-item:hover .overlay {
  opacity: 1;
}

/* ===========================
   Modal
=========================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  display: flex;
  flex-direction: column;
  max-width: 185vh;
  max-height: 80vh;
  margin: 60px auto;
  border-radius: 6px;
  overflow: hidden;
  flex-wrap: wrap;
  padding: 25px;
}
.modal-content .media-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 80vh;
  overflow: hidden;
}
.modal-content img,
.modal-content video {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.modal-desc {
  padding: 20px;
  max-width: 35%;
  overflow-y: auto;
}

.close,
.nav {
  position: fixed;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}
.close {
  top: 20px;
  right: 30px;
}
.modal .close:hover {
  color: #fff;
}

.nav.prev,
.nav.next {
  top: 50%;
  transform: translateY(-50%);
}
.nav.prev {
  left: 30px;
}
.nav.next {
  right: 30px;
}

/* ===========================
   Contact
=========================== */
#contact {
  padding: 60px 0;
  background: #262626;
}
#contact h2 {
  font-weight: 400;
  color: #777;
  margin: 60px 0;
}
#contact img {
  width: 140px;
  margin: 5px 30px 10px 0;
}
#contact p {
  color: #666;
  margin-bottom: 20px;
  line-height: 24px;
}
#contact .social {
  margin-top: 40px;
}
#contact .social ul li {
  display: inline-block;
  margin-right: 20px;
}
#contact .social i.fa {
  font-size: 26px;
  padding: 4px;
  color: #777;
  transition: all 0.3s;
}
#contact .social i.fa:hover {
  color: #eee;
}
#contact form {
  padding: 0;
}
#contact .form-control {
  width: 100%;
  padding: 6px 12px;
  font-size: 15px;
  color: #aaa;
  background: #444;
  border: 0;
  border-radius: 0;
}
#contact .form-control:focus {
  border-color: #999;
  outline: 0;
}
#contact .btn-default {
  font-weight: 400;
  color: #666;
  background: transparent;
  border: 2px solid #666;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 0;
  margin-top: 20px;
  text-transform: uppercase;
  transition: all 0.3s;
}
#contact .btn-default:hover {
  background: #666;
  color: #999;
}

/* ===========================
   Footer
=========================== */
#footer {
  background: #262626;
  padding: 50px 0 20px;
  text-align: center;
}
#footer p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .modal-content {
    flex-direction: column;
  }
  .modal-desc {
    max-width: 100%;
  }
}
