@keyframes slideInLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
}



.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.modal-content {
  background-color:rgba(0,0,0,0.8);
  margin: 5% auto;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  max-height: 95vh;
  display: flex;
  color: white;
  border-radius: 7.5px;

}

.modal-body {
  flex: 1;
  display: flex;
  gap: 5px;
}

.image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96%;
}

.image-counter{
  position: relative;

}
.image-counter h1{
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

#modalImage {
  width: 98%;
  height: 60vh;
  object-fit: contain;
}
p{
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}
.bold{
  font-weight: 700;
}
.btn{
  width: 100%;
  padding: 10px;
  border-radius: 7.5px;
  background-color: rgb(248, 40, 3);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 550;
  position: absolute;
  bottom: 10px;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
    max-width: 90%;
  }

  .modal-body {
    gap: 15px;
    max-height: 80vh;  /* Adjust max-height for mobile */
    overflow-y: auto;  /* Enable scroll */
    flex-direction: column;
  }

  .image-container {
    margin-bottom: 15px;
  }

  #modalImage {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .image-counter h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .image-counter{
    margin-bottom: 30px;
  }
  .view-more-btn{
    margin-top: 80px;
  }

  .btn {
    padding: 8px;
    font-size: 14px;
  }
}

/* Tablet screens */
@media (min-width: 481px) and (max-width: 768px) {
  .modal-content {
   
    padding: 20px;
    max-width: 85%;
  }

  .modal-body {
    gap: 20px;
    max-height: 75vh;  /* Adjust max-height for tablet */
    overflow-y: auto;  /* Enable scroll */
    display: flex;
    flex-direction: column;
  }

  .image-container {
    margin-bottom: 20px;
  }

  #modalImage {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .image-counter h1 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .btn {
    padding: 10px;
    font-size: 15px;
  }
}