@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
::selection{
  color: #fff;
  background: #000000;
}
#navbar{
  opacity: 1;
  -webkit-transition: opacity 0.3 ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -ms-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}
#navbar.fade{
  opacity: 0;
}
body{
  background-color: black;
}
.wrapper{
  margin: 100px auto;
  max-width: 1100px;
}
.wrapper .nav-gallery{
  display: flex;
  justify-content: center;
}
.wrapper .items{
  display: flex;
  max-width: 600px;
  width: 100%;
  justify-content: space-between;
}
.items span{
  padding: 7px 25px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  color: #ffffff;
  border-radius: 10px;
  border:1px solid rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
}
.items span.active,
.items span:hover{
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px) ;
  -webkit-backdrop-filter: blur(10px);
  border:1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 10px;
}
.image-box .slide{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  height: 50px;
  width: 60px;
  line-height: 50px;
  text-align: center;
  border-radius: 3px;
}
.slide.prev{
  left: 0px;
}
.slide.next{
  right: 0px;
}
.gallery{
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}
.gallery .image{
  width: calc(100% / 3);
  padding: 3px;
  position: relative;
}
.gallery .image .overlay {
  position: absolute;
  top: calc(100% - 71px);
  left: calc(100% - 71px);
  opacity: 0.6;
  transition: 0.3s linear;
  pointer-events: none; /* To allow hover events on the image and video */
}
.gallery .image .overlay i{
  position: absolute;
  padding: 20px;
  background-color: #131313;
  margin: auto;
  color: white;
  border-radius: 50%;
  transition: all ease 0.4s;
}
.gallery .image:hover .overlay{
  opacity: 1; /* Show the overlay on hover */
  width: 20px;
}
.gallery .image img {
  width: 200px; /* width of container */
  height: 400px; /* height of container */
  object-fit: cover;
  object-position: 20% 10%; /* try 20px 10px */ 
}
.gallery .image span{
  display: flex;
  width: 100%;
  overflow: hidden;
}

.gallery .image img{
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.gallery .image:hover img{
  transform: scale(1.1);
}
.gallery .image.hide{
  display: none;
}
.gallery .image.show{
  animation: animate 0.4s ease;
}
@keyframes animate {
  0%{
    transform: scale(0.5);
  }
  100%{
    transform: scale(1);
  }
}

.preview-box{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
  max-width: auto;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  padding: 0 5px 5px 5px;
  color: white;
  margin-top: 0px;
}
.preview-box.show{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}
.preview-box .details{
  padding: 13px 18px 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: black;
  position: relative;
  /* background-image: linear-gradient(#00000024,  #ffffff24); */
}

.details .title{
  display: flex;
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: 400;
  border-radius: 5px;
  text-align: center;
  margin: auto;
  
}
.details .titleGallery{
  display: flex;
  color: rgb(255, 255, 255);
  font-size: 16px;
  font-weight: 400;
  border-radius: 5px;
  text-align: center;
  margin: auto;
  letter-spacing: 0.1cm;
  padding: 4px;
  width: calc(auto + 200px);
}
.details .IC{
  width:auto;height: 35px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px) ;
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border:1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 10px;
  box-sizing: border-box;
}
.details .title p{
  font-weight: 500;
  text-align: center;
  margin-left: 5px;
}
.details .icon{
  color: #ffffff;
  font-style: 22px;
  cursor: pointer;
  float: right;
}
.preview-box .image-box{
  width: 100%;
  display: flex;
  margin: auto;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
.image-box img{
  width: 83%;
  margin: auto;
  height: 100%;
  border-radius: 5px;
}
.shadow{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(px);
  border:1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.shadow.show{
  display: block;
}

@media (max-width: 1000px) {
  .gallery .image{
    width: calc(100% / 3);
  }
}
@media (max-width: 800px) {
  .gallery .image{
    width: calc(100% / 2);
  }
}
@media (max-width: 700px) {
  .wrapper .nav-gallery .items{
    max-width: 500px;
  }
  .wrapper .nav-gallery .items .item{
    font-size: 16px;
  }
  .nav-gallery .items span{
    padding: 7px 15px;
  }
}
@media (max-width: 600px) {
  .wrapper{
    margin: 30px auto;
  }
  .wrapper .nav-gallery .items{
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-gallery .items span{
    margin: 50px auto;
  }
  .gallery .image{
    width: 100%;
  }
  /* .wrapper .nav-gallery .items{
    max-width:200px;
  } */
  .nav-gallery .items span{
    padding: 7px 12px;
    font-size: 14px;
  }
}
@media (max-width: 500px) {
  .wrapper .nav-gallery .items{
    max-width: 400px;
  }
  .wrapper .nav-gallery .items .item{
    font-size: 13px;
  }
}
@media (max-width: 400px){
  .wrapper .nav-gallery .items{
    max-width: 350px;
  }
  .wrapper .nav-gallery .items .item{
    font-size: 11px;
  }
  .slide.next{
    font-size: 20px;
    right: -10px;
  }
  .slide.slide.prev{
    font-size: 20px;
    left: -10px;
  }
}
@media (max-width: 360px){
  .wrapper .nav-gallery .items{
    max-width: 290px;
  }
  .wrapper .nav-gallery .items .item{
    font-size: 8px;
  }
}