/* Smooth popup image animation */
.popup img {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.popup img.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}

.popup img.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.toggle-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
      .popup-container {
      visibility: hidden;
      opacity: 0;
      z-index: 1000;
      transition: opacity 0.5s ease, visibility 0.5s;
      z-index: 1000;
      width: 100%; 
      height: 100%;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
      margin-right: 20px;
    }

    .popup {
      background: #fff;
      padding: 2px;
      border-radius: 10px;
      width: 450px;
      position: relative;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
      opacity: 0;
      transform: translateX(100%) scale(0.8);
      overflow: hidden;
    }
    .img-screen .slides {
        margin: 2px 2px;
    }
    .popup-container.active {
      visibility: visible;
      opacity: 1;
    }
    .popup-container.active .popup {
      animation: slideScaleIn 0.7s ease forwards;
    }
  
  .img-screen {
      overflow: hidden;
      display: flex;
      flex-direction: row;
      width: 200%;
      animation: slide 15s ease-in infinite;
  }
  .img-screen:hover {
    animation-play-state: paused;
  }
  @keyframes slide {
    0%   { margin-left: 0; }
    45%  { margin-left: 0; }
    50%  { margin-left: -100%; }
    95%  { margin-left: -100%; }
    100% { margin-left: 0; }
  }
  /* Slide + scale keyframes */
  @keyframes slideScaleIn {
    0% {
      transform: translateX(100%) scale(0.8);
      opacity: 0;
    }
    100% {
      transform: translateX(0) scale(1);
      opacity: 1;
    }
  }
    .image-box {
        position: fixed;
        right: 0;
        bottom: 20px;
        z-index: 9999;
        text-align: right;
    }
    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 23px;
        border: none;
        background: none;
        cursor: pointer;
        color: #fffffe;
        outline: none !important;
        line-height: 26px;
        opacity: 1;
        background-color: #78292c;
        width: 25px;
        height: 25px;
        border-radius: 50px;
    }

    .close-btn:hover{
      color: #ff7937;
    }

    .toggle-btn {
      background: #f56565;
      color: #fff;
      border: none;
      border-radius: 100px 0 0 100px;
      cursor: pointer;
      outline: none !important;
      padding: 10px 10px 10px 16px;
      font-size: 14px;
      display: none;
      position: absolute;
      right: 0;
      bottom: 0;
    }
    @media (max-width: 767px){
      .popup {
          width: 300px;
      }
    }
    @media (max-width: 574px){
      .popup {
          width: 220px;
      }
    }