* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Reem Kufi';
  font-weight: 400;
  overflow-x: hidden;
  background-color: black;
  /* background-image: url("../images/home-banner.jpg"); */
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: cover;
position: relative;
}

#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100vh; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
  overscroll-behavior: contain;
  overflow: hidden;
}

.span {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-gallery {
  width: 100%;
  /* max-width: 950px; */
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 350px;
  grid-auto-flow: dense;
  grid-gap: 20px;
}

.image-gallery .image-box {
  position: relative;
  background-color: #d7d7d8;
  overflow: hidden;
}

.image-gallery .image-box:nth-child(7n + 1) {
  grid-column: span 2;
  grid-row: span 1;
}

.image-gallery .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

/* .image-gallery .image-box:hover img {
  transform: scale(1.1);
} */

.image-gallery .image-box .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #fafafaf2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
}

/* .image-gallery .image-box:hover .overlay {
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  opacity: 1;
} */

.image-gallery .image-box .details {
  text-align: center;
}

.image-gallery .image-box .details .title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
  position: relative;
  top: -5px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-gallery .image-box .details .category {
  font-size: 18px;
  font-weight: 400;
  position: relative;
  bottom: -5px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* .image-gallery .image-box:hover .details .title {
  top: 0px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s 0.2s ease;
} */

.image-gallery .image-box:hover .details .category {
  bottom: 0;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s 0.2s ease;
}

.image-gallery .image-box .details .title a,
.image-gallery .image-box .details .category a {
  color: #222222;
  text-decoration: none;
}

header {
  --text: #f4f4f4;
  --text-inverse: #333;
  --background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2em 3em;
  transition: background 250ms ease-in;
  background: var(--background);
  color: var(--text);
}

.header {
  /* background-color: black; */
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav__link {
  --spacing: 1em;
  text-decoration: none;
  color: inherit;
  display: inline-block;
  padding: calc(var(--spacing) / 2) var(--spacing);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.nav__link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--spacing);
  right: var(--spacing);
  height: 2px;
  background: currentColor;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  transition: -webkit-transform 150ms ease-in-out;
  transition: transform 150ms ease-in-out;
  transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out;
}

.nav__link:hover::after {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.nav__link--btn {
  border: 1.5px solid currentColor;
  border-radius: 2em;
  margin-left: 1em;
  transition: background 250ms ease-in-out;
  letter-spacing: 1px;
  padding: 0.75em 1.5em;
}

.nav__link--btn:hover {
  background: var(--text);
  color: var(--text-inverse);
  border-color: var(--text);
}

.nav__link--btn::after {
  display: none;
}

.home-more-stuff {
  /* background-color: #f6f0c4;
  background-image: linear-gradient(315deg, #d99ec9 0%, #f6f0c4 74%); */
}
.nav__link--btn--highlight {
  background: limegreen;
  border-color: limegreen;
  color: #333;
}

.nav__link--btn--highlight:hover {
  background: var(--text);
  border-color: var(--text);
}

.nav-scrolled {
  --text: #333;
  --text-inverse: #f4f4f4;
  --background: #f4f4f4;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
}

.home-intro {
  /* padding: 50vh 0;
  background: #123 url(https://unsplash.it/900);
  background-size: cover;
  background-blend-mode: multiply;
  color: white;
  text-align: center; */
}

.home-about {
  /* padding: 4em 0;
  max-width: 900px;
  margin: 0 auto; */
}

.header {
  height: 100px;
  width: 100%;
  /* background-color: black; */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: white
}
.wrapper{
  /* width: 860px;  */
  margin: 0 auto;
  padding-top: 10px;
  }
  .wrapper ul{
  list-style: none;
  margin-top: -1%;
  /* margin-top: 2%; */
  }
  .wrapper ul li {
    background: var(--primary-color);
    width: 170px;
    /* border: solid #000000 1px; */
    /* border-radius: 5px; */
    /* margin-top: 20px; */
    height: 65px;
    line-height: 50px;
    text-align: center;
    float: left;
    color: white;
    font-size: 16px;
    position: relative;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 1;
    text-align: center;
    vertical-align: center;
    /* padding-top: 17px; */
    /* display: flex;
    justify-content: center;
    align-items: center; */
  }
  .wrapper ul li:hover{
  /* background: crimson;  */
  z-index: 10;
  }
  
  .wrapper ul ul{
  display: none;
  }
  .wrapper ul li:hover > ul{
  display: block;
  z-index: 10;
  }
  .wrapper ul ul ul{
  margin-left: 170px;
  top: 0;
  position: absolute;
  }

  .mobile-container {
    display: none;
  }

  @media screen and (max-width: 1360px){
    .wrapper ul li {
      width: 130px;
      font-size: 15px;
    }
  }
  @media screen and (max-width: 1080px){
    .wrapper ul li {
      width: 100px;
      font-size: 13px;
    }
 
}
/* Let's make it responsive */
@media (max-width: 850px) {

  .header {
    display: none;
  }

  .mobile-container {
    display: block;
  }

  .mobile-container {
    width: 100%;
  max-width: 100%;
  margin: auto;
  /* background-color: #555; */
  background-color: transparent;
  /* height: 500px; */
  color: white;
  border-radius: 10px;
  display: block;
}

.topnav {
  overflow: hidden;
  background-color: transparent;
  position: relative;
}

.topnav #myLinks {
  display: none;
}

.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

.topnav a.icon {
  /* background: white; */
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

.topnav a:hover {
  /* background-color: #ddd; */
  color: white;
}

.active {
  /* background-color: #04AA6D; */
  color: white;
}
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 350px;
  }

  .image-gallery .image-box:nth-child(7n + 1) {
    grid-column: unset;
    grid-row: unset;
  }
}
