.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
  }
  
  .image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 500px;
  }
  
  .textbox {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    opacity: 0;
    width: 80%;
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
  }

  .float-none {
    opacity: 1;
  }
  
  .float-left {
    animation: floatInLeft 1s forwards;
  }
  
  .float-right {
    animation: floatInRight 1s forwards;
  }
      
  .float-top {
    animation: floatInTop 1s forwards;
  }
  
  .float-bottom {
    animation: floatInBottom 1s forwards;
  }
  
  @keyframes floatInLeft {
    0% {
      opacity: 0;
      transform: translateX(-100%);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes floatInRight {
    0% {
      opacity: 0;
      transform: translateX(100%);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes floatInTop {
    0% {
      opacity: 0;
      transform: translateY(-100%);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes floatInBottom {
    0% {
      opacity: 0;
      transform: translateY(100%);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @media screen and (max-width: 991px) {
    .textbox {
      width: 90% !important;
      height: 90% !important;
      padding: 15px 20px;
    }
  }