.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.image-container {
  overflow: hidden;
}

.image-container img {
max-width: 100%;
height: auto;
object-fit: cover;
transition: transform 0.3s ease-in-out;
}

.image-container img:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.fullscreen-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.98);
  display: none;
  z-index: 999;
  overflow: auto;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.popup-content img {
  max-width: 100%;
  max-height: 100vh;
  margin: 20px auto;
  cursor: zoom-in;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: #fff;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.prev-btn {
  left: 10px;
  padding: 30px;
}

.next-btn {
  right: 10px;
  padding: 30px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 32px;
  color: #fff;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.prev-btn:hover, .next-btn:hover, .close-btn:hover {
  color: #ccc;
}

@media (max-width: 768px) {
  .popup-content img {
    max-height: 80vh;
  }
  .prev-btn, .next-btn {
    font-size: 20px;
  }
  .close-btn {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .image-container img {
    max-height: 100vh;
	width: auto;
  }
  .popup-content img {
    max-height: 70vh;
  }
  .prev-btn, .next-btn {
    font-size: 18px;
  }
  .close-btn {
    font-size: 18px;
  }
}