.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  display: none;
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2; 
  border-radius: 6px;
  background: #ddd; 
}


.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); 
  border-radius: 6px;
  z-index: 1054;
}


.custom-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  z-index: 1055;
}

.custom-spinner svg {
  animation: rotate 1s linear infinite;
}

.custom-spinner circle {
  fill: none;
  stroke: #6c757d;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 60;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  display: none;
}

.modal-content {
  background-color: #e9ecef;
  border-radius: 8px;
  position: relative;
  padding-top: 60px;
  overflow: hidden;
  min-height: 360px; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.custom-close {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f8f9fa;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 16px;
  z-index: 1060;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
    
.custom-close span {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #333;
  background-color: rgba(255, 255, 255, 0.6); 
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1056;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.nav-arrow.left {
  left: 16px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.nav-arrow.right {
  right: 16px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.modal-content:hover .nav-arrow {
  opacity: 1;
}