
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --white: #fff;
    --main: #0c0c0c;
}

*,
:before,
:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', cursive;
    color: var(--main);
    background: var(--white);
}

a:active,
a:focus {
    outline: 0;
    border: none;
    outline-style: none;
}

button::-moz-focus-inner {
    border: none;
}
button {
    outline: none;
}

/*************************************************************************/
  
  .image:hover {
    cursor: pointer;
  }
  
  .gallery-wrapper{
    margin: 75px auto;
    width: 95%;
    max-width: 1200px;
    padding-bottom: 50px;
  }
  .gallery-wrapper nav{
    display: flex;
    justify-content: center;
  }
  .gallery-wrapper .items{
    display: flex;
    /* max-width: 720px; */
    width: 100%;
    justify-content: space-between;
  }
  .gallery-item {
    margin: 5px;
    position: relative;
    padding: 7px 25px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    color: var(--main);
    border: 2px solid var(--main);
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  .gallery-item.active,
  .gallery-item:hover{
    color: var(--white);
    background: var(--main);
  }
  
  .gallery{
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
  }
  .gallery .image{
    width: calc(100% / 4);
    padding: 7px;
  }
  .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(0.9);
    background: var(--white);
    max-width: 900px;
    width: 100%;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    padding: 0 5px 5px 5px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
  }
  
  .relative-box {
    border: 1px solid red;
    position: relative;
  }
  
  .preview-box.show{
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease;
  }
  .preview-box .details{
    padding: 13px 15px 13px 10px;
    float: right;
  }
  .details .title{
    display: flex;
    font-size: 18px;
    font-weight: 400;
  }
  .details .title p{
    font-weight: 500;
    margin-left: 5px;
  }
  .details .icon{
    color: var(--main);
    font-style: 22px;
    cursor: pointer;
  }
  .preview-box .image-box{
    width: 100%;
    display: flex;
  }
  .image-box img{
    width: 100%;
    max-height: 65vh;
    border-radius: 0 0 3px 3px;
  }
  .shadow{
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 4;
    display: none;
    background: rgba(0,0,0,0.4);
  }
  .shadow.show{
    display: block;
  }
  
  .image img{
    height: 240px !important;
  }
  
  .gallery-wrapper nav .items{
    flex-wrap: wrap;
    justify-content: center;
  }
  
  @media (max-width: 1000px) {
    .gallery .image{
      width: calc(100% / 3);
    }
  }
  @media (max-width: 800px) {
    .gallery .image{
      width: calc(100% / 2);
    }
  }
  @media (max-width: 700px) {
    .gallery-wrapper nav .items{
      max-width: 600px;
    }
    nav .gallery-item{
      padding: 7px 15px;
    }
  }
  @media (max-width: 600px) {
    .gallery-wrapper{
      margin: 30px auto;
      width: 100%;
    }
    nav .gallery-item{
      margin: 5px;
    }
    .gallery .image{
      width: 100%;
    }
    .gallery-item {
      font-size: 1rem;
      margin: 2px !important;
    }
    .image img{
      width: 90% !important;
      margin: 0 auto;
    }
  
  }


  .gallery-btn {
    position: absolute;
    z-index: 100;
    color: var(--white);
    font-size: bold;
    top: 50%;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .btn-prev {
    left: 0;
  }
  
  .btn-prev:before {
    font-family: FontAwesome;
    font-family: "fontawesome";
    content: "\f053";
    font-size: 2.5rem;
    padding-left: 20px;
  }
  
  .btn-next {
    right: 0;
  }
  
  .btn-next:before {
    font-family: FontAwesome;
    font-family: "fontawesome";
    content: "\f054";
    font-size: 2.5rem;
    padding-right: 20px;
  }










