* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family:'Poppins',sans-serif;
    color: #fff;
    background-color: #191D28;
    z-index: 0;
    margin: auto;
  }
  p {
    color: #fff;
  }
  /* -----------------------------------
        Gallery Section
  --------------------------------------*/
  .portfolio-section {
    padding: 50px 0;
    background-color: #191D28;
  }
  .portfolio-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
  }
  .portfolio-menu {
    text-align: center;
  }
  .control {
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 9px;
    border: 1px solid #FFE5A4;
    margin: 5px;
    font-size:15px;
    cursor: pointer;
    -webkit-transition: all 01s ease;
    -moz-transition: all 01s ease;
    -ms-transition: all 01s ease;
    -o-transition: all 01s ease;
    transition: all 0.1s ease;
  }
  .control:hover {
    background: linear-gradient(144deg, #FFE879, #FFE5A4);
    transform: scale(1.1);
    color:black;
    
  }
  .mixitup-control-active {
    color: black;
    background: linear-gradient(144deg, #FFE879, #FFE5A4);
  }
  
  
  .fancybox-container button:focus {
    outline: 0;
    box-shadow: none;
  }
  .portfolio-item {
    padding-top: 30px;
    text-align: center;
  }
  .pd {
    padding: 0;
    padding: 10px;
  }
  .pd img {
    height: 260px;
    transition: all 0.5s;
    border-radius: 10px;
  }
  
  .fancybox-button--play {
    display: none !important;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 10px;
    height: 100%;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(2px); 
    transition: opacity 0.3s ease-in-out;
    transition: all 0.5s;
    transform: scale(0);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.magnify-icon {
    backdrop-filter: none;
}

  .portfolio-overlay a {
    position: relative;
    z-index: 4;
  }

 .portfolio-item li:hover .portfolio-overlay {
    visibility: visible;
    transform: scale(1);
}

.portfolio-item li:hover .magnify-icon {
    backdrop-filter: none !important;
    filter: none !important;
}

.portfolio-overlay {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: none;
    width: 100%;
    height: 100%;
    text-align: center;
    visibility: hidden;
    align-items: center;
    transition: all 0.5s;
    transform: scale(0);
    /* Remove backdrop-filter and filter properties */
}

.portfolio-overlay .magnify-icon {
    height: 40px;
    width: 40px;
    border-radius: 20px;
    background: #191D28;
    cursor: pointer;
    margin-top: 150px;
    display: inline-block;
    transition: all 0.25s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Add z-index property */
    z-index: 2;
}

.portfolio-overlay .magnify-icon p span i {
    font-size: 25px;
    color: #fff;
    line-height: 40px;
    cursor: pointer;
}
