.gallery-img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
}

.gallery-img:hover {
  transform: scale(1.03);
}

.modal-img {
  width: 100%;
  height: auto;
}

.pagination {
  justify-content: center;
}

.modal-header {
  border-bottom: none;
}

.close {
  font-size: 2rem;
  color: white;
  opacity: 1;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

.modal-body {
  position: relative;
  padding: 0;
}

.close-overlay {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  padding: 0px 12px;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-overlay:hover {
  background: rgba(0, 0, 0, 0.8);
}

