
.cards-container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card1 {
  width: calc(33% - 40px); /* Four cards in a row */
  height: 400px;
  perspective: 1000px;
  margin: 20px;
  position: relative;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.card1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card1:hover img {
  transform: scale(1.1);
}

.caption1 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 16px;
  transform: translateY(-110%);
   
}

.captionpos {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 16px;
 
}

.captiondesc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.3s, opacity 0.3s;
   
}

/* Your existing CSS styles */

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
  align-items: center;
  justify-content: center;
}


.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}
/* ... Previous CSS ... */

.popup-content {
  position: relative;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: flex; /* Use flex display for a horizontal layout */
  max-width: 80%;
  text-align: center;
}
.popup-content p{
  display: inline;
  margin: 0;
}
.popup-image {
  max-width: 75%; /* Adjust the width of the image area */
  height: auto;
  object-fit: contain;
}


.popup-caption-container {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Center the caption vertically */
  overflow: hidden;
}
.popup-caption .popup-caption-pos .popup-caption-desc {
  margin: 0;
  font-size: 18px;
  color: #333;
  /* Remove the max-height and overflow properties */
  /* Adjust the text style and alignment */
  padding-top: 10px;
  white-space: pre-wrap;
}

 
.popup-content::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .card1 {
    width: calc(50% - 20px); /* Two cards in a row */
  }

  .cards-container1 {
    padding: 10px;
  }
}
