@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  
  body {
    padding: 10px;
  }

  .port-title {
    color: #212322;
    margin-top: 150px;
    text-align: center;
    font-size: 30px;
  }
  
  .wrapper {
    margin: 20px auto;
    max-width: 1200px;
  }
  
  .wrapper .items {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    background-color: white;
    padding: 25px 50px;
  }

  .items span {
    padding: 5px 20px;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    color: #aaa;
    border: 1px solid #eee;
    border-radius: 999px;
    transition: all 0.3s ease;
  }

  .items span.active,
  .items span:hover {
    font-weight: 500;
    color: white;
    background: #009ade;
  }
  
  .gallery {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
  }

  .gallery .image {
    width: calc(100% / 3);
    padding: 7px;
    cursor: pointer;
  }

  .gallery .image span {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
  }

  .gallery .image img {
    width: 400px;
    height: 247px;
    object-fit: cover;
    vertical-align: middle;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .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: #fff;
    max-width: 900px;
    width: 100%;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
  }

  .preview-box.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease;
  }

  .preview-box .details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .details .fa-xmark {
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    display: inline-block;
    background: #212322;
    padding: 6px 8px;
    border-radius: 5px;
    top: 20px;
    right:20px ;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    z-index: 99999;
  }

  .preview-box .image-box {
    width: 100%;
    display: flex;

  }

  .image-box img {
    width: 100%;
    border-radius: 0 0 3px 3px;
    border-radius: 4px;
  }

  .shadow {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    display: none;
    background: rgba(0,0,0,0.4);
  }

  .shadow.show {
    display: block;
  }
  
  
  @media screen and (max-width: 741px) {
    .gallery .image {
      width: calc(100% / 2);
      padding: 5px;
    }

    .wrapper .items {
      flex-wrap: wrap;
      justify-content: start;
      padding: 10px 20px;
    }

    .items span {
      padding: 7px 10px;
      margin: 5px 2px;
      font-size: 12px;
    }
  }