.team-member img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.05);
}

.image-preview-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.preview-image {
  max-width: 80%;
  max-height: 70vh;
  border: 2px solid white;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.preview-info {
  margin-top: 20px;
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  border-radius: 8px;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-preview {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-preview:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
}
