.leadership-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.leadership-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leadership-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 92, 167, 0.2);
}

.leadership-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.leadership-title {
  margin: 15px;
  padding: 10px 15px;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  text-align: center;
  background: #f8fbff;
  border-radius: 6px;
  font-weight: 500;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #fff;
  transition: all 0.3s ease;
  border: none;
}

.modal-close:hover {
  background: rgba(0, 92, 167, 0.8);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .leadership-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .leadership-item img {
    height: 250px;
  }

  .leadership-title {
    font-size: 13px;
    margin: 12px;
    padding: 8 12px;
  }
}

@media (max-width: 480px) {
  .leadership-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .leadership-item img {
    height: 200px;
  }

  .leadership-title {
    font-size: 12px;
    margin: 10px;
    padding: 6 10px;
  }
}
