/* Root */
:root {
  --primary: ;
  --secondary: ;
  --light: #fff;
  --dark: #333;
  --shadow: 0, 1px, 5px rgba(104, 104, 104, 0.9);
  --max-width: 70%;
}

/* CSS RESET */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* BASE */
html,
body {
  font-family: "Barlow", sans-serif;
  webkit-font-smoothing: antialiased;
  font-size: 62.5%;
  background: var(--light);
  line-height: 1.5;
  overflow-x: hidden;
}

h1 {
  font-size: 3.2rem;
  font-weight: bolder;
  padding-bottom: 20px;
}

h2 {
  font-size: 2.4rem;
  font-weight: bolder;
  padding-bottom: 20px;
}

h3 {
  font-size: 1.872rem;
  font-weight: bolder;
  padding-bottom: 20px;
}

p {
  margin: 0.8rem 0;
  font-size: 1.6rem;
}

b {
  margin: 0.8rem 0;
  font-size: 1.6rem;
}

div,
header,
main,
nav,
section,
article,
aside,
footer,
button,
li {
  font-size: 1.6rem;
}

a {
  color: var(--dark);
  text-decoration: none;
  font-size: 1.6rem;
}

ul {
  list-style: none;
  font-size: 1.6rem;
}

/* UTILITIES */
.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 3.2rem;
}

.img {
  max-width: 100%;
}

.bg-transparent {
  background-color: rgba(0, 0, 0, 0.7);
}

.shadow {
  box-shadow: var(--shadow);
}

header::before {
  content: "";
  position: fixed;
  top: -100;
  left: 0;
  width: 100%;
  height: 100px;
  box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.7);
}

header {
  min-height: 70vh;
  background: url("../assets/img/portfolio-bg.jpg") no-repeat center center/cover;
}

header nav {
  height: 70px;
  padding-top: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header nav .logo img {
  width: 80px;
}

header nav ul {
  display: flex;
  align-items: center;
}

header nav ul li {
  padding: 0 35px;
}

header nav ul li:nth-child(2) {
  width: 15ch;
}

header nav ul li a {
  color: white;
}

header nav .btn {
  display: block;
  background-color: black;
  color: white;
  padding: 10 20;
  text-align: center;
  width: 17.63ch;
  margin-left: 100px;
}

.menu-btn {
  cursor: pointer;
  position: absolute;
  top: 40px;
  right: 20%;
  z-index: 2;
  display: none;
}

.overlapping-block {
  background-color: gray;
  min-width: 30%;
  width: 450px;
  padding: 50px 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: -80px;
}

.overlapping-block h1 {
  max-width: 18ch;
  color: white;
  text-align: center;
}

.overlapping-block a {
  display: block;
  background-color: black;
  color: white;
  width: 200px;
  padding: 10 20;
  text-align: center;
}

.image__container {
  width: 90vw;
  max-width: 1100px;
  padding: 50px 20px;
  margin: 0 auto;
}

.galleryImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  transition: transform 250ms;
  cursor: pointer;
}

.galleryImg:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 10px black;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-gap: 20px;
}

#popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: 250ms transform;
  padding: 50px;
}

#selectedImage {
  max-height: 100%;
}

footer {
  color: white;
}

footer .topbar {
  background-color: #3e3c38;
  text-align: center;
  text-transform: uppercase;
  color: white;
  font-weight: 300;
}

footer .topbar h3 {
  padding: 9 0;
}

footer .bottombar {
  color: white;
  background-color: black;
  padding: 50 0;
}

footer .bottombar .bottombar-inner {
  width: 90vw;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 20px;
}

footer .bottombar .bottombar-inner .footer-contact {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 3rem;
}

footer .bottombar .bottombar-inner .footer-contact .follow i {
  margin-right: 10px;
}

footer .bottombar .bottombar-inner .footer-contact-menu {
  margin: 2rem 0;
}

footer .bottombar .bottombar-inner .footer-contact-menu,
footer .bottombar .bottombar-inner .footer-contact-menu a {
  color: #b8b8b8;
  font-weight: 300;
}

footer .bottombar .bottombar-inner a {
  color: white;
}

footer .bottombar .bottombar-inner .links a {
  color: #b8b8b8;
}

footer .bottombar .bottombar-inner .footer-btn {
  background-color: #848484;
  padding: 10 20;
  border: none;
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }
  .main-menu {
    display: block;
    background: rgba(51, 51, 51, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    padding: 30px;
    transform: translateX(-100%);
    transition: transform 0.5s;
  }
  .main-menu.show {
    transform: translateX(0%);
  }
  .main-menu .btn {
    display: none;
  }
  .main-menu li {
    padding: 10px;
    border-bottom: 1px solid #999;
  }
  .main-menu li:nth-child(2) {
    width: 100%;
  }
  .main-menu li:last-child {
    border: none;
  }
  .bottombar-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}
